blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
7
332
content_id
stringlengths
40
40
detected_licenses
listlengths
0
50
license_type
stringclasses
2 values
repo_name
stringlengths
7
115
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
557 values
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
5.85k
684M
star_events_count
int64
0
77.7k
fork_events_count
int64
0
48k
gha_license_id
stringclasses
17 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
82 values
src_encoding
stringclasses
28 values
language
stringclasses
1 value
is_vendor
bool
1 class
is_generated
bool
2 classes
length_bytes
int64
7
5.41M
extension
stringclasses
11 values
content
stringlengths
7
5.41M
authors
listlengths
1
1
author
stringlengths
0
161
9981897294344fdf069f41475abc6396d01a84f9
97c26418b239f8ce80af85cc94d9659c31120cac
/src/tree/symbols/TSBracketLeft.java
43cf5281c18612e8744927e00751f9e3d0181498
[ "MIT" ]
permissive
sparber/CComprehensiveDatatypes
a2e5a743dcfd131c04734b7ed45d0cc78145e74d
8c5a9174ed651e6cc71810bcdf700beaeece9b95
refs/heads/master
2021-01-10T19:24:11.219871
2015-08-17T19:31:04
2015-08-17T19:31:04
40,921,108
0
0
null
null
null
null
UTF-8
Java
false
false
243
java
package tree.symbols; import tree.DefaultTreeNodeSymbol; public class TSBracketLeft extends DefaultTreeNodeSymbol { public static int id = BRACKET_LEFT; public static String text = "["; public TSBracketLeft() { super(text, id); } }
[ "alexander@sparber.eu" ]
alexander@sparber.eu
cd1db8a9c779670bf14d0c89f37186115767f38e
4df08b3348c85ac45b9f9fcf9ab688d3338aa97e
/src/com/github/idragonfire/DragonAntiPvPLeaver/api/DFakePlayerManager.java
67ab6b39f29ae6d58169f1460af483902e92ee15
[]
no_license
IDragonfire/DragonAntiPvPLeaver
e20b7d4b2fe10185ea73aedcfb9f911f03fb9f2f
f14edb151aea36eccbb24220c21c9e9a93b9aecb
refs/heads/master
2016-09-06T13:09:55.171987
2014-08-11T20:27:18
2014-08-11T20:27:18
5,752,746
0
0
null
2014-08-11T20:27:18
2012-09-10T17:04:43
Java
UTF-8
Java
false
false
612
java
package com.github.idragonfire.DragonAntiPvPLeaver.api; import org.bukkit.entity.Entity; import org.bukkit.entity.Player; public interface DFakePlayerManager { public void spawnHumanNPC(Player player, int lifetime); public void despawnHumanByName(String name); public void addKillStatus(String name); public boolean wasKilled(String name); public void removeKilledStatus(String name); public boolean isMyNpc(Entity entity); public void npcAttackEvent(String name); public void addDaplPlayerListener(DPlayerListener listener); public void removeDaplPlayerListener(DPlayerListener listener); }
[ "bastian616-git@yahoo.de" ]
bastian616-git@yahoo.de
ba9c36f755a0acad0658286955eebb926cd0aacd
6b0dcff85194eddf0706e867162526b972b441eb
/extension/federated/fabric3-federation-deployment/src/main/java/org/fabric3/federation/deployment/command/DeploymentErrorResponse.java
2979767f2b8a9d79ac344664503a06352ff209fd
[]
no_license
jbaeck/fabric3-core
802ae3889169d7cc5c2f3e2704cfe3338931ec76
55aaa7b2228c9bf2c2630cc196938d48a71274ff
refs/heads/master
2021-01-18T15:27:25.959653
2012-11-04T00:36:36
2012-11-04T00:36:36
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,475
java
/* * Fabric3 * Copyright (c) 2009-2012 Metaform Systems * * Fabric3 is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as * published by the Free Software Foundation, either version 3 of * the License, or (at your option) any later version, with the * following exception: * * Linking this software statically or dynamically with other * modules is making a combined work based on this software. * Thus, the terms and conditions of the GNU General Public * License cover the whole combination. * * As a special exception, the copyright holders of this software * give you permission to link this software with independent * modules to produce an executable, regardless of the license * terms of these independent modules, and to copy and distribute * the resulting executable under terms of your choice, provided * that you also meet, for each linked independent module, the * terms and conditions of the license of that module. An * independent module is a module which is not derived from or * based on this software. If you modify this software, you may * extend this exception to your version of the software, but * you are not obligated to do so. If you do not wish to do so, * delete this exception statement from your version. * * Fabric3 is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * See the GNU General Public License for more details. * * You should have received a copy of the * GNU General Public License along with Fabric3. * If not, see <http://www.gnu.org/licenses/>. */ package org.fabric3.federation.deployment.command; import org.fabric3.spi.federation.ErrorResponse; /** * A response returned to the controller when a runtime raises an error processing a {@link DeploymentCommand}. */ public class DeploymentErrorResponse implements ErrorResponse { private static final long serialVersionUID = 411382659017602521L; private String runtimeName; private Exception exception; public DeploymentErrorResponse(Exception exception) { this.exception = exception; } public String getRuntimeName() { return runtimeName; } public void setRuntimeName(String runtimeName) { this.runtimeName = runtimeName; } public Exception getException() { return exception; } }
[ "jim.marino@gmail.com" ]
jim.marino@gmail.com
18bf06946301e6c03fe6ede161867e33bf3cf91c
84e4452d49b0ac0f1f2332ddd48c0efe0e9559f2
/src/by/it/radivonik/jd03_03/beans/SostavNaklad.java
d84392495ebd92f55c3fb8702701d236c2d3050d
[]
no_license
loktevalexey/JD2017-02-20
ea2c25203cefc2c139f1277f17d9999e5c8af522
f69c964dc9d651c2acef01e6f177aead182f83b6
refs/heads/master
2020-04-15T00:13:55.277294
2017-06-20T07:53:24
2017-06-20T07:53:24
86,786,465
0
1
null
2017-03-31T06:37:19
2017-03-31T06:37:19
null
UTF-8
Java
false
false
1,890
java
package by.it.radivonik.jd03_03.beans; import java.math.BigDecimal; /** * Created by Radivonik on 04.05.2017. */ public class SostavNaklad { private int id; private int npp; private BigDecimal count; private BigDecimal cena; private BigDecimal prnds; private int idNaklad; private int idTovar; public SostavNaklad() { } public SostavNaklad(int id, int npp, BigDecimal count, BigDecimal cena, BigDecimal prnds, int idNaklad, int idTovar) { this.id = id; this.npp = npp; this.count = count; this.cena = cena; this.prnds = prnds; this.idNaklad = idNaklad; this.idTovar = idTovar; } public int getId() { return id; } public void setId(int id) { this.id = id; } public int getNpp() { return npp; } public void setNpp(int npp) { this.npp = npp; } public BigDecimal getCount() { return count; } public void setCount(BigDecimal count) { this.count = count; } public BigDecimal getCena() { return cena; } public void setCena(BigDecimal cena) { this.cena = cena; } public BigDecimal getPrnds() { return prnds; } public void setPrnds(BigDecimal prnds) { this.prnds = prnds; } public int getIdNaklad() { return idNaklad; } public void setIdNaklad(int idNaklad) { this.idNaklad = idNaklad; } public int getIdTovar() { return idTovar; } public void setIdTovar(int idTovar) { this.idTovar = idTovar; } @Override public String toString() { return "SostavNaklad{id=" + id + ", npp=" + npp + ", count=" + count + ", cena=" + cena + ", prnds=" + prnds + ", " + "idNaklad=" + idNaklad + ", idTovar=" + idTovar + "}"; } }
[ "olsy@tut.by" ]
olsy@tut.by
cb79867ffe9ad40b6115c4c07ac8d85e3e6ad682
2e6e75fb9f26c0afae84c3b659f6fc03eed752f9
/KaraokeVewerGlobal/app/src/main/java/com/global/karaokevewer/Midi/event/meta/KeySignature.java
c0dd5255e314772d56d614b7b700e29813202d4e
[]
no_license
choiseungil29/karaoke-client
d2507ca4f5ca8432d4e09b66fd8ffb424a79741f
d602efbd133498bad2a22f4ed3dfb49a27535b2e
refs/heads/master
2021-01-10T13:40:39.585226
2016-05-04T13:51:40
2016-05-04T13:51:40
46,631,863
0
0
null
null
null
null
UTF-8
Java
false
false
3,327
java
////////////////////////////////////////////////////////////////////////////// // Copyright 2011 Alex Leffelman // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. ////////////////////////////////////////////////////////////////////////////// package com.global.karaokevewer.Midi.event.meta; import com.global.karaokevewer.Midi.event.MidiEvent; import com.global.karaokevewer.Midi.util.VariableLengthInt; import java.io.IOException; import java.io.OutputStream; public class KeySignature extends MetaEvent { public static final int SCALE_MAJOR = 0; public static final int SCALE_MINOR = 1; private int mKey; private int mScale; public KeySignature(long tick, long delta, int key, int scale) { super(tick, delta, MetaEvent.KEY_SIGNATURE, new VariableLengthInt(2)); this.setKey(key); mScale = scale; } public void setKey(int key) { mKey = (byte) key; if(mKey < -7) mKey = -7; else if(mKey > 7) mKey = 7; } public int getKey() { return mKey; } public void setScale(int scale) { mScale = scale; } public int getScale() { return mScale; } @Override protected int getEventSize() { return 5; } @Override public void writeToFile(OutputStream out) throws IOException { super.writeToFile(out); out.write(2); out.write(mKey); out.write(mScale); } public static MetaEvent parseKeySignature(long tick, long delta, MetaEventData info) { if(info.length.getValue() != 2) { return new GenericMetaEvent(tick, delta, info); } //Logger.i("" + info.data[0]); int key = info.data[0]; int scale = info.data[1]; return new KeySignature(tick, delta, key, scale); } @Override public String toString() { return "key: " + mKey + ", scale: " + mScale + " : " + this.getClass().getSimpleName(); } @Override public int compareTo(MidiEvent other) { if(mTick != other.getTick()) { return mTick < other.getTick() ? -1 : 1; } if(mDelta.getValue() != other.getDelta()) { return mDelta.getValue() < other.getDelta() ? 1 : -1; } if(!(other instanceof KeySignature)) { return 1; } KeySignature o = (KeySignature) other; if(mKey != o.mKey) { return mKey < o.mKey ? -1 : 1; } if(mScale != o.mScale) { return mKey < o.mScale ? -1 : 1; } return 0; } }
[ "xorud0524@gmail.com" ]
xorud0524@gmail.com
9a242178315ea5a0548283c2f26fd30fd2221f9c
b03463407c90f684cc8c8c2b0a476616800d56ad
/ClipMobile/src/main/java/com/migueljteixeira/clipmobile/ui/BaseViewPager.java
f3d30114fa0c701e8d2d654170e769e0e65d77a7
[ "Apache-2.0" ]
permissive
migueljteixeira/ClipMobile
40ed2e8407570fcf037900c4137f3ccf8d195d75
471bd49f106b1a89b1685843264cdf62b6912a5e
refs/heads/master
2020-04-05T22:57:14.618114
2015-09-06T15:29:29
2015-09-06T15:29:29
24,512,184
12
6
null
null
null
null
UTF-8
Java
false
false
1,638
java
package com.migueljteixeira.clipmobile.ui; import android.os.AsyncTask; import android.os.Bundle; import android.support.v4.app.Fragment; import android.support.v4.view.ViewPager; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.FrameLayout; import com.migueljteixeira.clipmobile.R; import butterknife.Bind; import butterknife.ButterKnife; public class BaseViewPager extends Fragment { @Bind(R.id.progress_spinner) FrameLayout mProgressSpinner; @Bind(R.id.view_pager) ViewPager mViewPager; protected View view; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // Retain this fragment across configuration changes. setRetainInstance(true); } @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View view = inflater.inflate(R.layout.fragment_viewpager, container, false); ButterKnife.bind(this, view); // Show progress spinner showProgressSpinnerOnly(true); return view; } /** * Shows the progress spinner */ protected void showProgressSpinnerOnly(final boolean show) { mProgressSpinner.setVisibility(show ? View.VISIBLE : View.GONE); } @Override public void onDestroyView() { super.onDestroyView(); ButterKnife.unbind(this); } protected void cancelTasks(AsyncTask mTask) { if (mTask != null && mTask.getStatus() != AsyncTask.Status.FINISHED) mTask.cancel(true); } }
[ "miguelj_5@hotmail.com" ]
miguelj_5@hotmail.com
c6b48511e6d9576713123947f168aaba254d75b5
c328c53477e094bae299dfa15468dbace853acd3
/MJCompiler/src/rs/ac/bg/etf/pp1/ast/NoExtend.java
4bbf8d06bb963cc5ae2358107c60a4606196ff00
[]
no_license
nikola314/MicroJava-Compiler
911083415b12232f0abf4b81af0f99f69e19d7b3
18b7bdc8a7006e90ed0611f54031d6e91b5b6483
refs/heads/master
2022-05-28T21:12:12.791379
2020-05-02T21:44:03
2020-05-02T21:44:03
260,778,973
0
0
null
null
null
null
UTF-8
Java
false
false
750
java
// generated with ast extension for cup // version 0.8 // 3/1/2020 0:13:50 package rs.ac.bg.etf.pp1.ast; public class NoExtend extends IfExtends { public NoExtend () { } public void accept(Visitor visitor) { visitor.visit(this); } public void childrenAccept(Visitor visitor) { } public void traverseTopDown(Visitor visitor) { accept(visitor); } public void traverseBottomUp(Visitor visitor) { accept(visitor); } public String toString(String tab) { StringBuffer buffer=new StringBuffer(); buffer.append(tab); buffer.append("NoExtend(\n"); buffer.append(tab); buffer.append(") [NoExtend]"); return buffer.toString(); } }
[ "nikola.kesic97@gmail.com" ]
nikola.kesic97@gmail.com
7e0068de60b0eaac15c968350fd924e0e08cad6f
d9550b8d28286f55629fb8012561fba06ebec032
/src/main/java/it/polimi/ingsw/gc12/view/client/socket/ClientOutHandler.java
b0fbd9207a9cf85f3acef949dcddbd0c43a09056
[]
no_license
ruggero95/LorenzoIlMagnifico
e87cb6c92d01917786e5112f8dd51ddb6748d3c9
a4db93d625b986c9d0497e7f79b226b817b493fe
refs/heads/master
2021-03-24T11:55:19.869459
2017-07-10T21:21:22
2017-07-10T21:22:21
86,580,953
0
0
null
null
null
null
UTF-8
Java
false
false
997
java
package it.polimi.ingsw.gc12.view.client.socket; import it.polimi.ingsw.gc12.view.client.ClientSender; import java.io.IOException; import java.io.ObjectOutputStream; import java.util.Observable; /** * Class responsible of sending the chosen message to the ServerSocketView through sockets. */ public class ClientOutHandler implements Runnable, ClientSender { private ObjectOutputStream socketOut; private String name; public ClientOutHandler(ObjectOutputStream socketOut, String name) { this.socketOut = socketOut; this.name = name; } @Override public void run() { sendObject(name); } public String getName() { return name; } @Override public void sendAction(int input){ sendObject(input); } @Override public void update(Observable o, Object arg) { sendObject(arg); } private void sendObject(Object object) { try { socketOut.writeObject(object); socketOut.flush(); socketOut.reset(); } catch (IOException e) { e.printStackTrace(); } } }
[ "marco.varrone@mail.polimi.it" ]
marco.varrone@mail.polimi.it
aa33cf96dc9063897566d1c4d632b14ec3044f2c
89972779259818d76e3d249a52153e4f42dd9501
/old/vnm-selfcare-webapps-mega2-master/vnm-selfcare-core-2.0/src/main/java/com/gnv/vnm/selfcare/core/adapter/rtbs/ws/PromisedPaymentResponse.java
b5bf00ffe51dbcce1eb50230e79d1837fddc47fe
[]
no_license
SM-Tiwari/Spring-Security
5514149eb7e082e04f04dab0cbcbf9fb1df5d84e
f0676d3a96748d476c226ba7e724896eab77fa71
refs/heads/master
2022-12-28T18:07:32.056655
2020-01-31T03:31:13
2020-01-31T03:31:13
237,351,143
0
0
null
2022-12-10T01:04:42
2020-01-31T03:10:35
Java
UTF-8
Java
false
false
1,793
java
package com.gnv.vnm.selfcare.core.adapter.rtbs.ws; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for anonymous complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * &lt;complexType&gt; * &lt;complexContent&gt; * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt; * &lt;sequence&gt; * &lt;element name="PromisedPaymentResult" type="{http://comverse-in.com/prepaid/ccws}PromisedPaymentResponse" minOccurs="0"/&gt; * &lt;/sequence&gt; * &lt;/restriction&gt; * &lt;/complexContent&gt; * &lt;/complexType&gt; * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "promisedPaymentResult" }) @XmlRootElement(name = "PromisedPaymentResponse") public class PromisedPaymentResponse { @XmlElement(name = "PromisedPaymentResult") protected PromisedPaymentResponse2 promisedPaymentResult; /** * Gets the value of the promisedPaymentResult property. * * @return * possible object is * {@link PromisedPaymentResponse2 } * */ public PromisedPaymentResponse2 getPromisedPaymentResult() { return promisedPaymentResult; } /** * Sets the value of the promisedPaymentResult property. * * @param value * allowed object is * {@link PromisedPaymentResponse2 } * */ public void setPromisedPaymentResult(PromisedPaymentResponse2 value) { this.promisedPaymentResult = value; } }
[ "siddhesh.mani@infotelgroup.in" ]
siddhesh.mani@infotelgroup.in
c9bf12493446a359178fda9d1a1b493d0507a31c
6624272416153adc76fdecd2a985fc8e697ae8d2
/src/main/java/wfy/jxnu/dao/OrderDaoImpl.java
fc592799edc29fca86de38b181ff6c6665f6027c
[]
no_license
daniel-0791/Ex0211.9
1e2e9da5c66e7afd21bac77292b933a7bc80f2ca
725f4b3f73d9d0a9633dc9eba20e5d198dfe74a0
refs/heads/master
2020-04-05T11:18:57.773006
2018-11-09T08:25:20
2018-11-09T08:25:20
null
0
0
null
null
null
null
UTF-8
Java
false
false
4,788
java
package wfy.jxnu.dao; import wfy.jxnu.mo.Customer; import wfy.jxnu.mo.Order; import wfy.jxnu.util.JdbcUtils; import wfy.jxnu.util.Mytools; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.util.ArrayList; import java.util.List; public class OrderDaoImpl implements OrderDao{ @Override public boolean addOrder(Order order,Connection connection) throws SQLException { boolean flag=false; PreparedStatement preparedStatement=null; try{ String sql="INSERT INTO ordert(order_code,cust_id,order_time,total_price,total_number,receiverinfo,paystate)\n" + "VALUES (?,?,?,?,?,?,?) "; preparedStatement= connection.prepareStatement(sql); preparedStatement.setString(1,order.getId()); preparedStatement.setInt(2,order.getUserId()); java.util.Date date = new java.util.Date(); // 获取当前时间 java.sql.Date sql_date = new java.sql.Date(date.getTime()); //转换成java.sql.Date preparedStatement.setDate(3, sql_date); preparedStatement.setFloat(4,order.getMoney()); preparedStatement.setInt(5,order.getTotalNum()); preparedStatement.setString(6,order.getReceiverinfo()); preparedStatement.setInt(7,order.getPaystate()); int intflag=preparedStatement.executeUpdate(); if (intflag==1) flag=true; return flag; }finally { JdbcUtils.closeStatement(preparedStatement); } } @Override public boolean addOrder(Order order) throws SQLException { boolean flag=false; Connection connection=null; PreparedStatement preparedStatement=null; try{ connection= JdbcUtils.getConn(); String sql="INSERT INTO ordert(order_code,cust_id,order_time,total_price,total_number,receiverinfo,paystate)\n" + "VALUES (?,?,?,?,?,?,?) "; preparedStatement= connection.prepareStatement(sql); preparedStatement.setString(1,order.getId()); preparedStatement.setInt(2,order.getUserId()); java.util.Date date = new java.util.Date(); // 获取当前时间 java.sql.Date sql_date = new java.sql.Date(date.getTime()); //转换成java.sql.Date preparedStatement.setDate(3, sql_date); preparedStatement.setFloat(4,order.getMoney()); preparedStatement.setInt(5,order.getTotalNum()); preparedStatement.setString(6,order.getReceiverinfo()); preparedStatement.setInt(7,order.getPaystate()); int intflag=preparedStatement.executeUpdate(); if (intflag==1) flag=true; return flag; }finally { JdbcUtils.closeStatement(preparedStatement); JdbcUtils.closeConn(connection); } } @Override public List<Order> findOrder(Customer user) throws SQLException { List<Order> orders=new ArrayList<Order>(); Connection connection=null; PreparedStatement preparedStatement=null; ResultSet resultSet=null; try{ connection=JdbcUtils.getConn(); String sql= "select order_code,cust_id,order_time,total_Number,total_price,receiverinfo,paystate,cust_no\n" + "from orderInfoView\n" + "where cust_id=?"; preparedStatement= connection.prepareStatement(sql); preparedStatement.setInt(1,user.getCustId()); resultSet=preparedStatement.executeQuery(); while (resultSet.next()){ Order order=new Order(); order.setId(resultSet.getString(1)); orders.add(order); } return orders; }finally { JdbcUtils.closeResultSet(resultSet); JdbcUtils.closeStatement(preparedStatement); JdbcUtils.closeConn(connection); } } @Override public boolean delOrderById(String id) throws SQLException { boolean flag=false; Connection connection=null; PreparedStatement preparedStatement=null; try{ connection= JdbcUtils.getConn(); String sql="delete from ordert\n" + "where order_code=?"; preparedStatement= connection.prepareStatement(sql); preparedStatement.setString(1,id); int intflag=preparedStatement.executeUpdate(); if (intflag==1) flag=true; return flag; }finally { JdbcUtils.closeStatement(preparedStatement); JdbcUtils.closeConn(connection); } } }
[ "42454843+daniel@users.noreply.github.com" ]
42454843+daniel@users.noreply.github.com
dfd45f78e55355f5c271e73e9d4ed42c46cbcecd
f0d25d83176909b18b9989e6fe34c414590c3599
/app/src/main/java/com/facebook/login/LoginClient.java
8d47914936fec3616c776e038f809b28e08d5c9a
[]
no_license
lycfr/lq
e8dd702263e6565486bea92f05cd93e45ef8defc
123914e7c0d45956184dc908e87f63870e46aa2e
refs/heads/master
2022-04-07T18:16:31.660038
2020-02-23T03:09:18
2020-02-23T03:09:18
null
0
0
null
null
null
null
UTF-8
Java
false
false
23,050
java
package com.facebook.login; import android.app.Activity; import android.content.Intent; import android.os.Parcel; import android.os.Parcelable; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentActivity; import android.text.TextUtils; import com.facebook.AccessToken; import com.facebook.FacebookException; import com.facebook.common.R; import com.facebook.internal.CallbackManagerImpl; import com.facebook.internal.NativeProtocol; import com.facebook.internal.Utility; import com.facebook.internal.Validate; import java.util.ArrayList; import java.util.Collection; import java.util.HashMap; import java.util.HashSet; import java.util.Map; import java.util.Set; import org.json.JSONException; import org.json.JSONObject; class LoginClient implements Parcelable { public static final Parcelable.Creator<LoginClient> CREATOR = new Parcelable.Creator<LoginClient>() { public LoginClient createFromParcel(Parcel source) { return new LoginClient(source); } public LoginClient[] newArray(int size) { return new LoginClient[size]; } }; BackgroundProcessingListener backgroundProcessingListener; boolean checkedInternetPermission; int currentHandler = -1; Fragment fragment; LoginMethodHandler[] handlersToTry; Map<String, String> loggingExtras; private LoginLogger loginLogger; OnCompletedListener onCompletedListener; Request pendingRequest; interface BackgroundProcessingListener { void onBackgroundProcessingStarted(); void onBackgroundProcessingStopped(); } public interface OnCompletedListener { void onCompleted(Result result); } public LoginClient(Fragment fragment2) { this.fragment = fragment2; } public Fragment getFragment() { return this.fragment; } /* access modifiers changed from: package-private */ public void setFragment(Fragment fragment2) { if (this.fragment != null) { throw new FacebookException("Can't set fragment once it is already set."); } this.fragment = fragment2; } /* access modifiers changed from: package-private */ public FragmentActivity getActivity() { return this.fragment.getActivity(); } public Request getPendingRequest() { return this.pendingRequest; } public static int getLoginRequestCode() { return CallbackManagerImpl.RequestCodeOffset.Login.toRequestCode(); } /* access modifiers changed from: package-private */ public void startOrContinueAuth(Request request) { if (!getInProgress()) { authorize(request); } } /* access modifiers changed from: package-private */ public void authorize(Request request) { if (request != null) { if (this.pendingRequest != null) { throw new FacebookException("Attempted to authorize while a request is pending."); } else if (!AccessToken.isCurrentAccessTokenActive() || checkInternetPermission()) { this.pendingRequest = request; this.handlersToTry = getHandlersToTry(request); tryNextHandler(); } } } /* access modifiers changed from: package-private */ public boolean getInProgress() { return this.pendingRequest != null && this.currentHandler >= 0; } /* access modifiers changed from: package-private */ public void cancelCurrentHandler() { if (this.currentHandler >= 0) { getCurrentHandler().cancel(); } } /* access modifiers changed from: package-private */ public LoginMethodHandler getCurrentHandler() { if (this.currentHandler >= 0) { return this.handlersToTry[this.currentHandler]; } return null; } public boolean onActivityResult(int requestCode, int resultCode, Intent data) { if (this.pendingRequest != null) { return getCurrentHandler().onActivityResult(requestCode, resultCode, data); } return false; } /* access modifiers changed from: protected */ public LoginMethodHandler[] getHandlersToTry(Request request) { ArrayList<LoginMethodHandler> handlers = new ArrayList<>(); LoginBehavior behavior = request.getLoginBehavior(); if (behavior.allowsGetTokenAuth()) { handlers.add(new GetTokenLoginMethodHandler(this)); } if (behavior.allowsKatanaAuth()) { handlers.add(new KatanaProxyLoginMethodHandler(this)); } if (behavior.allowsFacebookLiteAuth()) { handlers.add(new FacebookLiteLoginMethodHandler(this)); } if (behavior.allowsCustomTabAuth()) { handlers.add(new CustomTabLoginMethodHandler(this)); } if (behavior.allowsWebViewAuth()) { handlers.add(new WebViewLoginMethodHandler(this)); } if (behavior.allowsDeviceAuth()) { handlers.add(new DeviceAuthMethodHandler(this)); } LoginMethodHandler[] result = new LoginMethodHandler[handlers.size()]; handlers.toArray(result); return result; } /* access modifiers changed from: package-private */ public boolean checkInternetPermission() { if (this.checkedInternetPermission) { return true; } if (checkPermission("android.permission.INTERNET") != 0) { Activity activity = getActivity(); complete(Result.createErrorResult(this.pendingRequest, activity.getString(R.string.com_facebook_internet_permission_error_title), activity.getString(R.string.com_facebook_internet_permission_error_message))); return false; } this.checkedInternetPermission = true; return true; } /* access modifiers changed from: package-private */ public void tryNextHandler() { if (this.currentHandler >= 0) { logAuthorizationMethodComplete(getCurrentHandler().getNameForLogging(), "skipped", (String) null, (String) null, getCurrentHandler().methodLoggingExtras); } while (this.handlersToTry != null && this.currentHandler < this.handlersToTry.length - 1) { this.currentHandler++; if (tryCurrentHandler()) { return; } } if (this.pendingRequest != null) { completeWithFailure(); } } private void completeWithFailure() { complete(Result.createErrorResult(this.pendingRequest, "Login attempt failed.", (String) null)); } private void addLoggingExtra(String key, String value, boolean accumulate) { if (this.loggingExtras == null) { this.loggingExtras = new HashMap(); } if (this.loggingExtras.containsKey(key) && accumulate) { value = this.loggingExtras.get(key) + "," + value; } this.loggingExtras.put(key, value); } /* access modifiers changed from: package-private */ public boolean tryCurrentHandler() { boolean tried = false; LoginMethodHandler handler = getCurrentHandler(); if (!handler.needsInternetPermission() || checkInternetPermission()) { tried = handler.tryAuthorize(this.pendingRequest); if (tried) { getLogger().logAuthorizationMethodStart(this.pendingRequest.getAuthId(), handler.getNameForLogging()); } else { getLogger().logAuthorizationMethodNotTried(this.pendingRequest.getAuthId(), handler.getNameForLogging()); addLoggingExtra("not_tried", handler.getNameForLogging(), true); } } else { addLoggingExtra("no_internet_permission", "1", false); } return tried; } /* access modifiers changed from: package-private */ public void completeAndValidate(Result outcome) { if (outcome.token == null || !AccessToken.isCurrentAccessTokenActive()) { complete(outcome); } else { validateSameFbidAndFinish(outcome); } } /* access modifiers changed from: package-private */ public void complete(Result outcome) { LoginMethodHandler handler = getCurrentHandler(); if (handler != null) { logAuthorizationMethodComplete(handler.getNameForLogging(), outcome, handler.methodLoggingExtras); } if (this.loggingExtras != null) { outcome.loggingExtras = this.loggingExtras; } this.handlersToTry = null; this.currentHandler = -1; this.pendingRequest = null; this.loggingExtras = null; notifyOnCompleteListener(outcome); } /* access modifiers changed from: package-private */ public OnCompletedListener getOnCompletedListener() { return this.onCompletedListener; } /* access modifiers changed from: package-private */ public void setOnCompletedListener(OnCompletedListener onCompletedListener2) { this.onCompletedListener = onCompletedListener2; } /* access modifiers changed from: package-private */ public BackgroundProcessingListener getBackgroundProcessingListener() { return this.backgroundProcessingListener; } /* access modifiers changed from: package-private */ public void setBackgroundProcessingListener(BackgroundProcessingListener backgroundProcessingListener2) { this.backgroundProcessingListener = backgroundProcessingListener2; } /* access modifiers changed from: package-private */ public int checkPermission(String permission) { return getActivity().checkCallingOrSelfPermission(permission); } /* access modifiers changed from: package-private */ public void validateSameFbidAndFinish(Result pendingResult) { Result result; if (pendingResult.token == null) { throw new FacebookException("Can't validate without a token"); } AccessToken previousToken = AccessToken.getCurrentAccessToken(); AccessToken newToken = pendingResult.token; if (!(previousToken == null || newToken == null)) { try { if (previousToken.getUserId().equals(newToken.getUserId())) { result = Result.createTokenResult(this.pendingRequest, pendingResult.token); complete(result); } } catch (Exception ex) { complete(Result.createErrorResult(this.pendingRequest, "Caught exception", ex.getMessage())); return; } } result = Result.createErrorResult(this.pendingRequest, "User logged in as different Facebook user.", (String) null); complete(result); } private static AccessToken createFromTokenWithRefreshedPermissions(AccessToken token, Collection<String> grantedPermissions, Collection<String> declinedPermissions) { return new AccessToken(token.getToken(), token.getApplicationId(), token.getUserId(), grantedPermissions, declinedPermissions, token.getSource(), token.getExpires(), token.getLastRefresh()); } private LoginLogger getLogger() { if (this.loginLogger == null || !this.loginLogger.getApplicationId().equals(this.pendingRequest.getApplicationId())) { this.loginLogger = new LoginLogger(getActivity(), this.pendingRequest.getApplicationId()); } return this.loginLogger; } private void notifyOnCompleteListener(Result outcome) { if (this.onCompletedListener != null) { this.onCompletedListener.onCompleted(outcome); } } /* access modifiers changed from: package-private */ public void notifyBackgroundProcessingStart() { if (this.backgroundProcessingListener != null) { this.backgroundProcessingListener.onBackgroundProcessingStarted(); } } /* access modifiers changed from: package-private */ public void notifyBackgroundProcessingStop() { if (this.backgroundProcessingListener != null) { this.backgroundProcessingListener.onBackgroundProcessingStopped(); } } private void logAuthorizationMethodComplete(String method, Result result, Map<String, String> loggingExtras2) { logAuthorizationMethodComplete(method, result.code.getLoggingValue(), result.errorMessage, result.errorCode, loggingExtras2); } private void logAuthorizationMethodComplete(String method, String result, String errorMessage, String errorCode, Map<String, String> loggingExtras2) { if (this.pendingRequest == null) { getLogger().logUnexpectedError("fb_mobile_login_method_complete", "Unexpected call to logCompleteLogin with null pendingAuthorizationRequest.", method); } else { getLogger().logAuthorizationMethodComplete(this.pendingRequest.getAuthId(), method, result, errorMessage, errorCode, loggingExtras2); } } static String getE2E() { JSONObject e2e = new JSONObject(); try { e2e.put("init", System.currentTimeMillis()); } catch (JSONException e) { } return e2e.toString(); } public static class Request implements Parcelable { public static final Parcelable.Creator<Request> CREATOR = new Parcelable.Creator<Request>() { public Request createFromParcel(Parcel source) { return new Request(source); } public Request[] newArray(int size) { return new Request[size]; } }; private final String applicationId; private final String authId; private String authType; private final DefaultAudience defaultAudience; private String deviceRedirectUriString; private boolean isRerequest; private final LoginBehavior loginBehavior; private Set<String> permissions; Request(LoginBehavior loginBehavior2, Set<String> permissions2, DefaultAudience defaultAudience2, String authType2, String applicationId2, String authId2) { this.isRerequest = false; this.loginBehavior = loginBehavior2; this.permissions = permissions2 == null ? new HashSet<>() : permissions2; this.defaultAudience = defaultAudience2; this.authType = authType2; this.applicationId = applicationId2; this.authId = authId2; } /* access modifiers changed from: package-private */ public Set<String> getPermissions() { return this.permissions; } /* access modifiers changed from: package-private */ public void setPermissions(Set<String> permissions2) { Validate.notNull(permissions2, NativeProtocol.RESULT_ARGS_PERMISSIONS); this.permissions = permissions2; } /* access modifiers changed from: package-private */ public LoginBehavior getLoginBehavior() { return this.loginBehavior; } /* access modifiers changed from: package-private */ public DefaultAudience getDefaultAudience() { return this.defaultAudience; } /* access modifiers changed from: package-private */ public String getApplicationId() { return this.applicationId; } /* access modifiers changed from: package-private */ public String getAuthId() { return this.authId; } /* access modifiers changed from: package-private */ public boolean isRerequest() { return this.isRerequest; } /* access modifiers changed from: package-private */ public void setRerequest(boolean isRerequest2) { this.isRerequest = isRerequest2; } /* access modifiers changed from: package-private */ public String getDeviceRedirectUriString() { return this.deviceRedirectUriString; } /* access modifiers changed from: package-private */ public void setDeviceRedirectUriString(String deviceRedirectUriString2) { this.deviceRedirectUriString = deviceRedirectUriString2; } /* access modifiers changed from: package-private */ public String getAuthType() { return this.authType; } /* access modifiers changed from: package-private */ public void setAuthType(String authType2) { this.authType = authType2; } /* access modifiers changed from: package-private */ public boolean hasPublishPermission() { for (String permission : this.permissions) { if (LoginManager.isPublishPermission(permission)) { return true; } } return false; } private Request(Parcel parcel) { LoginBehavior loginBehavior2; boolean z; DefaultAudience defaultAudience2 = null; this.isRerequest = false; String enumValue = parcel.readString(); if (enumValue != null) { loginBehavior2 = LoginBehavior.valueOf(enumValue); } else { loginBehavior2 = null; } this.loginBehavior = loginBehavior2; ArrayList<String> permissionsList = new ArrayList<>(); parcel.readStringList(permissionsList); this.permissions = new HashSet(permissionsList); String enumValue2 = parcel.readString(); this.defaultAudience = enumValue2 != null ? DefaultAudience.valueOf(enumValue2) : defaultAudience2; this.applicationId = parcel.readString(); this.authId = parcel.readString(); if (parcel.readByte() != 0) { z = true; } else { z = false; } this.isRerequest = z; this.deviceRedirectUriString = parcel.readString(); this.authType = parcel.readString(); } public int describeContents() { return 0; } public void writeToParcel(Parcel dest, int flags) { String str = null; dest.writeString(this.loginBehavior != null ? this.loginBehavior.name() : null); dest.writeStringList(new ArrayList(this.permissions)); if (this.defaultAudience != null) { str = this.defaultAudience.name(); } dest.writeString(str); dest.writeString(this.applicationId); dest.writeString(this.authId); dest.writeByte((byte) (this.isRerequest ? 1 : 0)); dest.writeString(this.deviceRedirectUriString); dest.writeString(this.authType); } } public static class Result implements Parcelable { public static final Parcelable.Creator<Result> CREATOR = new Parcelable.Creator<Result>() { public Result createFromParcel(Parcel source) { return new Result(source); } public Result[] newArray(int size) { return new Result[size]; } }; final Code code; final String errorCode; final String errorMessage; public Map<String, String> loggingExtras; final Request request; final AccessToken token; enum Code { SUCCESS("success"), CANCEL("cancel"), ERROR("error"); private final String loggingValue; private Code(String loggingValue2) { this.loggingValue = loggingValue2; } /* access modifiers changed from: package-private */ public String getLoggingValue() { return this.loggingValue; } } Result(Request request2, Code code2, AccessToken token2, String errorMessage2, String errorCode2) { Validate.notNull(code2, "code"); this.request = request2; this.token = token2; this.errorMessage = errorMessage2; this.code = code2; this.errorCode = errorCode2; } static Result createTokenResult(Request request2, AccessToken token2) { return new Result(request2, Code.SUCCESS, token2, (String) null, (String) null); } static Result createCancelResult(Request request2, String message) { return new Result(request2, Code.CANCEL, (AccessToken) null, message, (String) null); } static Result createErrorResult(Request request2, String errorType, String errorDescription) { return createErrorResult(request2, errorType, errorDescription, (String) null); } static Result createErrorResult(Request request2, String errorType, String errorDescription, String errorCode2) { return new Result(request2, Code.ERROR, (AccessToken) null, TextUtils.join(": ", Utility.asListNoNulls(errorType, errorDescription)), errorCode2); } private Result(Parcel parcel) { this.code = Code.valueOf(parcel.readString()); this.token = (AccessToken) parcel.readParcelable(AccessToken.class.getClassLoader()); this.errorMessage = parcel.readString(); this.errorCode = parcel.readString(); this.request = (Request) parcel.readParcelable(Request.class.getClassLoader()); this.loggingExtras = Utility.readStringMapFromParcel(parcel); } public int describeContents() { return 0; } public void writeToParcel(Parcel dest, int flags) { dest.writeString(this.code.name()); dest.writeParcelable(this.token, flags); dest.writeString(this.errorMessage); dest.writeString(this.errorCode); dest.writeParcelable(this.request, flags); Utility.writeStringMapToParcel(dest, this.loggingExtras); } } public LoginClient(Parcel source) { Object[] o = source.readParcelableArray(LoginMethodHandler.class.getClassLoader()); this.handlersToTry = new LoginMethodHandler[o.length]; for (int i = 0; i < o.length; i++) { this.handlersToTry[i] = (LoginMethodHandler) o[i]; this.handlersToTry[i].setLoginClient(this); } this.currentHandler = source.readInt(); this.pendingRequest = (Request) source.readParcelable(Request.class.getClassLoader()); this.loggingExtras = Utility.readStringMapFromParcel(source); } public int describeContents() { return 0; } public void writeToParcel(Parcel dest, int flags) { dest.writeParcelableArray(this.handlersToTry, flags); dest.writeInt(this.currentHandler); dest.writeParcelable(this.pendingRequest, flags); Utility.writeStringMapToParcel(dest, this.loggingExtras); } }
[ "quyenlm.vn@gmail.com" ]
quyenlm.vn@gmail.com
ae8f5ac67cd53028d8e3bef77351ff9118b9f0e7
c3d77a52ea16a84a2a0b967d6b2633ad678168ea
/app/src/test/java/com/example/leo/footprint/ExampleUnitTest.java
e1b47bb1ba09a261e8251494509285f0bc5028c8
[]
no_license
leo191/FootPrintApp-Client
0fcb9a5f2af6222b63e39e1c3622ec4489796202
dad242e8d1b9316898060d675a4f5bdadff04b16
refs/heads/master
2020-12-03T00:06:14.832849
2017-08-10T16:34:04
2017-08-10T16:34:04
95,987,139
0
0
null
null
null
null
UTF-8
Java
false
false
403
java
package com.example.leo.footprint; import org.junit.Test; import static org.junit.Assert.*; /** * Example local unit test, which will execute on the development machine (host). * * @see <a href="http://d.android.com/tools/testing">Testing documentation</a> */ public class ExampleUnitTest { @Test public void addition_isCorrect() throws Exception { assertEquals(4, 2 + 2); } }
[ "subhadipbanerjee.527@gmail.com" ]
subhadipbanerjee.527@gmail.com
9b8c1dd3cbc4c92590600a7ddddb1626dd26a855
8d09189d10a9cd1a1ba402b52a7749097b04e4a8
/aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/model/TemplateResponse.java
04b8ffd72d963b41b4023499723cd6f2978b9555
[ "Apache-2.0" ]
permissive
hboutemy/aws-sdk-java
7b6b219479136cafbf348209a8e7e1b3f0e64d15
f04ef821eb2f10b55bec4e527b9dbbfc3847c5c3
refs/heads/master
2021-01-03T12:28:29.649460
2020-02-11T22:33:24
2020-02-11T22:33:24
240,073,241
0
0
Apache-2.0
2020-02-12T17:29:57
2020-02-12T17:29:56
null
UTF-8
Java
false
false
21,869
java
/* * Copyright 2015-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.pinpoint.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** * <p> * Provides information about a message template that's associated with your Amazon Pinpoint account. * </p> * * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/TemplateResponse" target="_top">AWS API * Documentation</a> */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class TemplateResponse implements Serializable, Cloneable, StructuredPojo { /** * <p> * The Amazon Resource Name (ARN) of the message template. * </p> */ private String arn; /** * <p> * The date, in ISO 8601 format, when the message template was created. * </p> */ private String creationDate; /** * <p> * The JSON object that specifies the default values that are used for message variables in the message template. * This object is a set of key-value pairs. Each key defines a message variable in the template. The corresponding * value defines the default value for that variable. * </p> */ private String defaultSubstitutions; /** * <p> * The date, in ISO 8601 format, when the message template was last modified. * </p> */ private String lastModifiedDate; /** * <p> * A string-to-string map of key-value pairs that identifies the tags that are associated with the message template. * Each tag consists of a required tag key and an associated tag value. * </p> */ private java.util.Map<String, String> tags; /** * <p> * The custom description of the message template. * </p> */ private String templateDescription; /** * <p> * The name of the message template. * </p> */ private String templateName; /** * <p> * The type of channel that the message template is designed for. Possible values are: EMAIL, PUSH, SMS, and VOICE. * </p> */ private String templateType; /** * <p> * The unique identifier, as an integer, for the active version of the message template. * </p> */ private String version; /** * <p> * The Amazon Resource Name (ARN) of the message template. * </p> * * @param arn * The Amazon Resource Name (ARN) of the message template. */ public void setArn(String arn) { this.arn = arn; } /** * <p> * The Amazon Resource Name (ARN) of the message template. * </p> * * @return The Amazon Resource Name (ARN) of the message template. */ public String getArn() { return this.arn; } /** * <p> * The Amazon Resource Name (ARN) of the message template. * </p> * * @param arn * The Amazon Resource Name (ARN) of the message template. * @return Returns a reference to this object so that method calls can be chained together. */ public TemplateResponse withArn(String arn) { setArn(arn); return this; } /** * <p> * The date, in ISO 8601 format, when the message template was created. * </p> * * @param creationDate * The date, in ISO 8601 format, when the message template was created. */ public void setCreationDate(String creationDate) { this.creationDate = creationDate; } /** * <p> * The date, in ISO 8601 format, when the message template was created. * </p> * * @return The date, in ISO 8601 format, when the message template was created. */ public String getCreationDate() { return this.creationDate; } /** * <p> * The date, in ISO 8601 format, when the message template was created. * </p> * * @param creationDate * The date, in ISO 8601 format, when the message template was created. * @return Returns a reference to this object so that method calls can be chained together. */ public TemplateResponse withCreationDate(String creationDate) { setCreationDate(creationDate); return this; } /** * <p> * The JSON object that specifies the default values that are used for message variables in the message template. * This object is a set of key-value pairs. Each key defines a message variable in the template. The corresponding * value defines the default value for that variable. * </p> * * @param defaultSubstitutions * The JSON object that specifies the default values that are used for message variables in the message * template. This object is a set of key-value pairs. Each key defines a message variable in the template. * The corresponding value defines the default value for that variable. */ public void setDefaultSubstitutions(String defaultSubstitutions) { this.defaultSubstitutions = defaultSubstitutions; } /** * <p> * The JSON object that specifies the default values that are used for message variables in the message template. * This object is a set of key-value pairs. Each key defines a message variable in the template. The corresponding * value defines the default value for that variable. * </p> * * @return The JSON object that specifies the default values that are used for message variables in the message * template. This object is a set of key-value pairs. Each key defines a message variable in the template. * The corresponding value defines the default value for that variable. */ public String getDefaultSubstitutions() { return this.defaultSubstitutions; } /** * <p> * The JSON object that specifies the default values that are used for message variables in the message template. * This object is a set of key-value pairs. Each key defines a message variable in the template. The corresponding * value defines the default value for that variable. * </p> * * @param defaultSubstitutions * The JSON object that specifies the default values that are used for message variables in the message * template. This object is a set of key-value pairs. Each key defines a message variable in the template. * The corresponding value defines the default value for that variable. * @return Returns a reference to this object so that method calls can be chained together. */ public TemplateResponse withDefaultSubstitutions(String defaultSubstitutions) { setDefaultSubstitutions(defaultSubstitutions); return this; } /** * <p> * The date, in ISO 8601 format, when the message template was last modified. * </p> * * @param lastModifiedDate * The date, in ISO 8601 format, when the message template was last modified. */ public void setLastModifiedDate(String lastModifiedDate) { this.lastModifiedDate = lastModifiedDate; } /** * <p> * The date, in ISO 8601 format, when the message template was last modified. * </p> * * @return The date, in ISO 8601 format, when the message template was last modified. */ public String getLastModifiedDate() { return this.lastModifiedDate; } /** * <p> * The date, in ISO 8601 format, when the message template was last modified. * </p> * * @param lastModifiedDate * The date, in ISO 8601 format, when the message template was last modified. * @return Returns a reference to this object so that method calls can be chained together. */ public TemplateResponse withLastModifiedDate(String lastModifiedDate) { setLastModifiedDate(lastModifiedDate); return this; } /** * <p> * A string-to-string map of key-value pairs that identifies the tags that are associated with the message template. * Each tag consists of a required tag key and an associated tag value. * </p> * * @return A string-to-string map of key-value pairs that identifies the tags that are associated with the message * template. Each tag consists of a required tag key and an associated tag value. */ public java.util.Map<String, String> getTags() { return tags; } /** * <p> * A string-to-string map of key-value pairs that identifies the tags that are associated with the message template. * Each tag consists of a required tag key and an associated tag value. * </p> * * @param tags * A string-to-string map of key-value pairs that identifies the tags that are associated with the message * template. Each tag consists of a required tag key and an associated tag value. */ public void setTags(java.util.Map<String, String> tags) { this.tags = tags; } /** * <p> * A string-to-string map of key-value pairs that identifies the tags that are associated with the message template. * Each tag consists of a required tag key and an associated tag value. * </p> * * @param tags * A string-to-string map of key-value pairs that identifies the tags that are associated with the message * template. Each tag consists of a required tag key and an associated tag value. * @return Returns a reference to this object so that method calls can be chained together. */ public TemplateResponse withTags(java.util.Map<String, String> tags) { setTags(tags); return this; } public TemplateResponse addTagsEntry(String key, String value) { if (null == this.tags) { this.tags = new java.util.HashMap<String, String>(); } if (this.tags.containsKey(key)) throw new IllegalArgumentException("Duplicated keys (" + key.toString() + ") are provided."); this.tags.put(key, value); return this; } /** * Removes all the entries added into Tags. * * @return Returns a reference to this object so that method calls can be chained together. */ public TemplateResponse clearTagsEntries() { this.tags = null; return this; } /** * <p> * The custom description of the message template. * </p> * * @param templateDescription * The custom description of the message template. */ public void setTemplateDescription(String templateDescription) { this.templateDescription = templateDescription; } /** * <p> * The custom description of the message template. * </p> * * @return The custom description of the message template. */ public String getTemplateDescription() { return this.templateDescription; } /** * <p> * The custom description of the message template. * </p> * * @param templateDescription * The custom description of the message template. * @return Returns a reference to this object so that method calls can be chained together. */ public TemplateResponse withTemplateDescription(String templateDescription) { setTemplateDescription(templateDescription); return this; } /** * <p> * The name of the message template. * </p> * * @param templateName * The name of the message template. */ public void setTemplateName(String templateName) { this.templateName = templateName; } /** * <p> * The name of the message template. * </p> * * @return The name of the message template. */ public String getTemplateName() { return this.templateName; } /** * <p> * The name of the message template. * </p> * * @param templateName * The name of the message template. * @return Returns a reference to this object so that method calls can be chained together. */ public TemplateResponse withTemplateName(String templateName) { setTemplateName(templateName); return this; } /** * <p> * The type of channel that the message template is designed for. Possible values are: EMAIL, PUSH, SMS, and VOICE. * </p> * * @param templateType * The type of channel that the message template is designed for. Possible values are: EMAIL, PUSH, SMS, and * VOICE. * @see TemplateType */ public void setTemplateType(String templateType) { this.templateType = templateType; } /** * <p> * The type of channel that the message template is designed for. Possible values are: EMAIL, PUSH, SMS, and VOICE. * </p> * * @return The type of channel that the message template is designed for. Possible values are: EMAIL, PUSH, SMS, and * VOICE. * @see TemplateType */ public String getTemplateType() { return this.templateType; } /** * <p> * The type of channel that the message template is designed for. Possible values are: EMAIL, PUSH, SMS, and VOICE. * </p> * * @param templateType * The type of channel that the message template is designed for. Possible values are: EMAIL, PUSH, SMS, and * VOICE. * @return Returns a reference to this object so that method calls can be chained together. * @see TemplateType */ public TemplateResponse withTemplateType(String templateType) { setTemplateType(templateType); return this; } /** * <p> * The type of channel that the message template is designed for. Possible values are: EMAIL, PUSH, SMS, and VOICE. * </p> * * @param templateType * The type of channel that the message template is designed for. Possible values are: EMAIL, PUSH, SMS, and * VOICE. * @return Returns a reference to this object so that method calls can be chained together. * @see TemplateType */ public TemplateResponse withTemplateType(TemplateType templateType) { this.templateType = templateType.toString(); return this; } /** * <p> * The unique identifier, as an integer, for the active version of the message template. * </p> * * @param version * The unique identifier, as an integer, for the active version of the message template. */ public void setVersion(String version) { this.version = version; } /** * <p> * The unique identifier, as an integer, for the active version of the message template. * </p> * * @return The unique identifier, as an integer, for the active version of the message template. */ public String getVersion() { return this.version; } /** * <p> * The unique identifier, as an integer, for the active version of the message template. * </p> * * @param version * The unique identifier, as an integer, for the active version of the message template. * @return Returns a reference to this object so that method calls can be chained together. */ public TemplateResponse withVersion(String version) { setVersion(version); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getArn() != null) sb.append("Arn: ").append(getArn()).append(","); if (getCreationDate() != null) sb.append("CreationDate: ").append(getCreationDate()).append(","); if (getDefaultSubstitutions() != null) sb.append("DefaultSubstitutions: ").append(getDefaultSubstitutions()).append(","); if (getLastModifiedDate() != null) sb.append("LastModifiedDate: ").append(getLastModifiedDate()).append(","); if (getTags() != null) sb.append("Tags: ").append(getTags()).append(","); if (getTemplateDescription() != null) sb.append("TemplateDescription: ").append(getTemplateDescription()).append(","); if (getTemplateName() != null) sb.append("TemplateName: ").append(getTemplateName()).append(","); if (getTemplateType() != null) sb.append("TemplateType: ").append(getTemplateType()).append(","); if (getVersion() != null) sb.append("Version: ").append(getVersion()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof TemplateResponse == false) return false; TemplateResponse other = (TemplateResponse) obj; if (other.getArn() == null ^ this.getArn() == null) return false; if (other.getArn() != null && other.getArn().equals(this.getArn()) == false) return false; if (other.getCreationDate() == null ^ this.getCreationDate() == null) return false; if (other.getCreationDate() != null && other.getCreationDate().equals(this.getCreationDate()) == false) return false; if (other.getDefaultSubstitutions() == null ^ this.getDefaultSubstitutions() == null) return false; if (other.getDefaultSubstitutions() != null && other.getDefaultSubstitutions().equals(this.getDefaultSubstitutions()) == false) return false; if (other.getLastModifiedDate() == null ^ this.getLastModifiedDate() == null) return false; if (other.getLastModifiedDate() != null && other.getLastModifiedDate().equals(this.getLastModifiedDate()) == false) return false; if (other.getTags() == null ^ this.getTags() == null) return false; if (other.getTags() != null && other.getTags().equals(this.getTags()) == false) return false; if (other.getTemplateDescription() == null ^ this.getTemplateDescription() == null) return false; if (other.getTemplateDescription() != null && other.getTemplateDescription().equals(this.getTemplateDescription()) == false) return false; if (other.getTemplateName() == null ^ this.getTemplateName() == null) return false; if (other.getTemplateName() != null && other.getTemplateName().equals(this.getTemplateName()) == false) return false; if (other.getTemplateType() == null ^ this.getTemplateType() == null) return false; if (other.getTemplateType() != null && other.getTemplateType().equals(this.getTemplateType()) == false) return false; if (other.getVersion() == null ^ this.getVersion() == null) return false; if (other.getVersion() != null && other.getVersion().equals(this.getVersion()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getArn() == null) ? 0 : getArn().hashCode()); hashCode = prime * hashCode + ((getCreationDate() == null) ? 0 : getCreationDate().hashCode()); hashCode = prime * hashCode + ((getDefaultSubstitutions() == null) ? 0 : getDefaultSubstitutions().hashCode()); hashCode = prime * hashCode + ((getLastModifiedDate() == null) ? 0 : getLastModifiedDate().hashCode()); hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); hashCode = prime * hashCode + ((getTemplateDescription() == null) ? 0 : getTemplateDescription().hashCode()); hashCode = prime * hashCode + ((getTemplateName() == null) ? 0 : getTemplateName().hashCode()); hashCode = prime * hashCode + ((getTemplateType() == null) ? 0 : getTemplateType().hashCode()); hashCode = prime * hashCode + ((getVersion() == null) ? 0 : getVersion().hashCode()); return hashCode; } @Override public TemplateResponse clone() { try { return (TemplateResponse) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.pinpoint.model.transform.TemplateResponseMarshaller.getInstance().marshall(this, protocolMarshaller); } }
[ "" ]
b8c289d1e48105fb4b0cf7089e6f6a803d1183b0
7240222c0c4aba0dc9b09c4bee4f09b93ef40db3
/app/build/generated/source/r/debug/android/support/v4/R.java
5153e91c5d0e99a08b819b139d3c951af41115ca
[]
no_license
AyushKshitij45/SafelyHackathon-master
fe0cae6262dcde791c4edbb8accfb3a59dbf5501
54208ca2be0fef0fb58a27216b8cc9f5935e8e52
refs/heads/master
2020-04-09T21:11:01.112365
2018-12-06T00:07:18
2018-12-06T00:07:18
160,594,227
0
0
null
null
null
null
UTF-8
Java
false
false
9,742
java
/* AUTO-GENERATED FILE. DO NOT MODIFY. * * This class was automatically generated by the * gradle plugin from the resource data it found. It * should not be modified by hand. */ package android.support.v4; public final class R { public static final class attr { public static final int font = 0x7f0400d5; public static final int fontProviderAuthority = 0x7f0400d7; public static final int fontProviderCerts = 0x7f0400d8; public static final int fontProviderFetchStrategy = 0x7f0400d9; public static final int fontProviderFetchTimeout = 0x7f0400da; public static final int fontProviderPackage = 0x7f0400db; public static final int fontProviderQuery = 0x7f0400dc; public static final int fontStyle = 0x7f0400dd; public static final int fontWeight = 0x7f0400de; } public static final class bool { public static final int abc_action_bar_embed_tabs = 0x7f050000; } public static final class color { public static final int notification_action_color_filter = 0x7f06007e; public static final int notification_icon_bg_color = 0x7f06007f; public static final int notification_material_background_media_default_color = 0x7f060080; public static final int primary_text_default_material_dark = 0x7f060085; public static final int ripple_material_light = 0x7f06008a; public static final int secondary_text_default_material_dark = 0x7f06008b; public static final int secondary_text_default_material_light = 0x7f06008c; } public static final class dimen { public static final int compat_button_inset_horizontal_material = 0x7f070081; public static final int compat_button_inset_vertical_material = 0x7f070082; public static final int compat_button_padding_horizontal_material = 0x7f070083; public static final int compat_button_padding_vertical_material = 0x7f070084; public static final int compat_control_corner_material = 0x7f070085; public static final int notification_action_icon_size = 0x7f0700bb; public static final int notification_action_text_size = 0x7f0700bc; public static final int notification_big_circle_margin = 0x7f0700bd; public static final int notification_content_margin_start = 0x7f0700be; public static final int notification_large_icon_height = 0x7f0700bf; public static final int notification_large_icon_width = 0x7f0700c0; public static final int notification_main_column_padding_top = 0x7f0700c1; public static final int notification_media_narrow_margin = 0x7f0700c2; public static final int notification_right_icon_size = 0x7f0700c3; public static final int notification_right_side_padding_top = 0x7f0700c4; public static final int notification_small_icon_background_padding = 0x7f0700c5; public static final int notification_small_icon_size_as_large = 0x7f0700c6; public static final int notification_subtext_size = 0x7f0700c7; public static final int notification_top_pad = 0x7f0700c8; public static final int notification_top_pad_large_text = 0x7f0700c9; } public static final class drawable { public static final int notification_action_background = 0x7f0800cd; public static final int notification_bg = 0x7f0800ce; public static final int notification_bg_low = 0x7f0800cf; public static final int notification_bg_low_normal = 0x7f0800d0; public static final int notification_bg_low_pressed = 0x7f0800d1; public static final int notification_bg_normal = 0x7f0800d2; public static final int notification_bg_normal_pressed = 0x7f0800d3; public static final int notification_icon_background = 0x7f0800d4; public static final int notification_template_icon_bg = 0x7f0800d5; public static final int notification_template_icon_low_bg = 0x7f0800d6; public static final int notification_tile_bg = 0x7f0800d7; public static final int notify_panel_notification_icon_bg = 0x7f0800d8; } public static final class id { public static final int action0 = 0x7f09000a; public static final int action_container = 0x7f090012; public static final int action_divider = 0x7f090014; public static final int action_image = 0x7f090015; public static final int action_text = 0x7f09001b; public static final int actions = 0x7f09001c; public static final int async = 0x7f09002c; public static final int blocking = 0x7f090034; public static final int cancel_action = 0x7f090040; public static final int chronometer = 0x7f090049; public static final int end_padder = 0x7f090093; public static final int forever = 0x7f0900a1; public static final int icon = 0x7f0900a7; public static final int icon_group = 0x7f0900a8; public static final int info = 0x7f0900af; public static final int italic = 0x7f0900b3; public static final int line1 = 0x7f0900bb; public static final int line3 = 0x7f0900bc; public static final int media_actions = 0x7f0900c5; public static final int normal = 0x7f0900e2; public static final int notification_background = 0x7f0900e3; public static final int notification_main_column = 0x7f0900e4; public static final int notification_main_column_container = 0x7f0900e5; public static final int right_icon = 0x7f0900f5; public static final int right_side = 0x7f0900f6; public static final int status_bar_latest_event_content = 0x7f090121; public static final int tag_transition_group = 0x7f090127; public static final int text = 0x7f090129; public static final int text2 = 0x7f09012a; public static final int time = 0x7f090131; public static final int title = 0x7f090132; } public static final class integer { public static final int cancel_button_image_alpha = 0x7f0a0004; public static final int status_bar_notification_info_maxnum = 0x7f0a000a; } public static final class layout { public static final int notification_action = 0x7f0b005f; public static final int notification_action_tombstone = 0x7f0b0060; public static final int notification_media_action = 0x7f0b0061; public static final int notification_media_cancel_action = 0x7f0b0062; public static final int notification_template_big_media = 0x7f0b0063; public static final int notification_template_big_media_custom = 0x7f0b0064; public static final int notification_template_big_media_narrow = 0x7f0b0065; public static final int notification_template_big_media_narrow_custom = 0x7f0b0066; public static final int notification_template_custom_big = 0x7f0b0067; public static final int notification_template_icon_group = 0x7f0b0068; public static final int notification_template_lines_media = 0x7f0b0069; public static final int notification_template_media = 0x7f0b006a; public static final int notification_template_media_custom = 0x7f0b006b; public static final int notification_template_part_chronometer = 0x7f0b006c; public static final int notification_template_part_time = 0x7f0b006d; } public static final class string { public static final int status_bar_notification_info_overflow = 0x7f0e00a7; } public static final class style { public static final int TextAppearance_Compat_Notification = 0x7f0f0127; public static final int TextAppearance_Compat_Notification_Info = 0x7f0f0128; public static final int TextAppearance_Compat_Notification_Info_Media = 0x7f0f0129; public static final int TextAppearance_Compat_Notification_Line2 = 0x7f0f012a; public static final int TextAppearance_Compat_Notification_Line2_Media = 0x7f0f012b; public static final int TextAppearance_Compat_Notification_Media = 0x7f0f012c; public static final int TextAppearance_Compat_Notification_Time = 0x7f0f012d; public static final int TextAppearance_Compat_Notification_Time_Media = 0x7f0f012e; public static final int TextAppearance_Compat_Notification_Title = 0x7f0f012f; public static final int TextAppearance_Compat_Notification_Title_Media = 0x7f0f0130; public static final int Widget_Compat_NotificationActionContainer = 0x7f0f01a7; public static final int Widget_Compat_NotificationActionText = 0x7f0f01a8; } public static final class styleable { public static final int[] FontFamily = { 0x7f0400d7, 0x7f0400d8, 0x7f0400d9, 0x7f0400da, 0x7f0400db, 0x7f0400dc }; public static final int FontFamily_fontProviderAuthority = 0; public static final int FontFamily_fontProviderCerts = 1; public static final int FontFamily_fontProviderFetchStrategy = 2; public static final int FontFamily_fontProviderFetchTimeout = 3; public static final int FontFamily_fontProviderPackage = 4; public static final int FontFamily_fontProviderQuery = 5; public static final int[] FontFamilyFont = { 0x01010532, 0x01010533, 0x0101053f, 0x7f0400d5, 0x7f0400dd, 0x7f0400de }; public static final int FontFamilyFont_android_font = 0; public static final int FontFamilyFont_android_fontWeight = 1; public static final int FontFamilyFont_android_fontStyle = 2; public static final int FontFamilyFont_font = 3; public static final int FontFamilyFont_fontStyle = 4; public static final int FontFamilyFont_fontWeight = 5; } }
[ "iayush45@gmail.com" ]
iayush45@gmail.com
7adda522ffc04e6dc25a5e4d8ebf3021f22ae167
d1a6d1e511df6db8d8dd0912526e3875c7e1797d
/genny_JavaWithoutLambdasApi21/applicationModule/src/test/java/applicationModulepackageJava14/Foo338Test.java
da38944b02cceb2c6ecaec8e04b78596cb634968
[]
no_license
NikitaKozlov/generated-project-for-desugaring
0bc1443ab3ddc84cd289331c726761585766aea7
81506b3711004185070ca4bb9a93482b70011d36
refs/heads/master
2020-03-20T00:35:06.996525
2018-06-12T09:30:37
2018-06-12T09:30:37
137,049,317
0
0
null
null
null
null
UTF-8
Java
false
false
482
java
package applicationModulepackageJava14; import org.junit.Test; public class Foo338Test { @Test public void testFoo0() { new Foo338().foo0(); } @Test public void testFoo1() { new Foo338().foo1(); } @Test public void testFoo2() { new Foo338().foo2(); } @Test public void testFoo3() { new Foo338().foo3(); } @Test public void testFoo4() { new Foo338().foo4(); } @Test public void testFoo5() { new Foo338().foo5(); } }
[ "nikita.e.kozlov@gmail.com" ]
nikita.e.kozlov@gmail.com
db650c0c05c598dd8cf06d04dde0731edb631948
55aa27e2ef05e2265cc6793f834489a01f4ab594
/src/androidTest/java/ayun/example/test/berita2halamanayun/ExampleInstrumentedTest.java
1632059775d359219f02fd3809a6e030fd9411c6
[]
no_license
khoiratulayun/KuisPertama
3f349b9ce4dc2751b7fa4908277579c72850f13e
cb7f2009bf719ad6b4cd0ed5d43fa8a688358857
refs/heads/master
2020-03-31T08:28:25.319138
2018-10-08T10:08:34
2018-10-08T10:08:34
152,058,217
0
0
null
null
null
null
UTF-8
Java
false
false
782
java
package ayun.example.test.berita2halamanayun; import android.content.Context; import android.support.test.InstrumentationRegistry; import android.support.test.runner.AndroidJUnit4; import org.junit.Test; import org.junit.runner.RunWith; import static org.junit.Assert.*; /** * Instrumented test, which will execute on an Android device. * * @see <a href="http://d.android.com/tools/testing">Testing documentation</a> */ @RunWith(AndroidJUnit4.class) public class ExampleInstrumentedTest { @Test public void useAppContext() { // Context of the app under test. Context appContext = InstrumentationRegistry.getTargetContext(); assertEquals("ayun.example.test.berita2halamanayun", appContext.getPackageName()); } }
[ "noreply@github.com" ]
noreply@github.com
ce8e516011b808cd932bba418fd71d0fc5baa6bc
db8f9bc59b2d464869f44556ccf639559cc65a7e
/TeamCode/src/main/java/org/firstinspires/ftc/teamcode/DriveCartesian2.java
de9b8366d4b02a6522d334fc03b452d7faf155b6
[ "BSD-3-Clause" ]
permissive
metalworksftc/UltimateGoal
0ff6fa2d7f8ef2d4777c36cdd0f37de028de7bae
c539dc47b28b85dda58567eefbc5eb528512bf77
refs/heads/master
2023-08-15T21:41:47.565929
2021-10-07T23:06:18
2021-10-07T23:06:18
299,081,241
2
0
null
null
null
null
UTF-8
Java
false
false
1,542
java
package org.firstinspires.ftc.teamcode; import com.qualcomm.robotcore.eventloop.opmode.OpMode; import com.qualcomm.robotcore.eventloop.opmode.TeleOp; import org.firstinspires.ftc.robotcore.external.Telemetry; @TeleOp(name = "DriveCartesion2") public class DriveCartesian2 extends OpMode { Wheels wheels; private Arm arm; Intake intake; @Override public void init() { wheels = new Wheels(hardwareMap, telemetry); arm = new Arm(hardwareMap,telemetry); intake = new Intake(hardwareMap,telemetry); intake.pushServo.setPosition(0); } @Override public void loop() { intake.intake(gamepad2.left_trigger); intake.flywheel(gamepad2.right_bumper); // intake.push(gamepad2.left_trigger); arm.setFingerPosition(gamepad2.right_trigger); arm.swing(-gamepad2.right_stick_y*0.75); if (intake.flywheelAtSpeed){ intake.push(gamepad2.left_bumper); } else { intake.push(false); } if (gamepad1.left_bumper) { wheels.reversePower(gamepad1.left_stick_x, gamepad1.left_stick_y, gamepad1.right_stick_x); } else { if (gamepad1.right_bumper) { wheels.driveCartesian(gamepad1.left_stick_x * 1, gamepad1.left_stick_y * 1, gamepad1.right_stick_x * 1); } else { wheels.driveCartesian(gamepad1.left_stick_x*0.5, gamepad1.left_stick_y*0.5, gamepad1.right_stick_x*0.5); } } } }
[ "github@ftc.rocks" ]
github@ftc.rocks
b43543fe23bcfec3e19578021ed148cf654a72b2
d207df0f03fbd902ab885454cef6f4d8cc7d917c
/src/test/java/br/com/allpereira/ApplicationTests.java
b9b20e2b0b8c1e71682eba030fb4d2986af48974
[ "Apache-2.0" ]
permissive
allpereira/base-app-java-10
4771cb11da421935c22e14f0a8b6934f72718b90
0b77018e1d7f08ff274b74cb45648beb241850d5
refs/heads/master
2020-03-26T16:51:13.061896
2018-08-20T18:42:01
2018-08-20T18:42:01
145,127,918
0
0
null
null
null
null
UTF-8
Java
false
false
328
java
package br.com.allpereira; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.test.context.junit4.SpringRunner; @RunWith(SpringRunner.class) @SpringBootTest public class ApplicationTests { @Test public void contextLoads() { } }
[ "eu@allpereira.com.br" ]
eu@allpereira.com.br
5bad9af441e68bb79b0f45f3a3c69962bbe8c004
d682f4383050ff7dfc0b45a17eb48d7e92791e75
/segmentstore/storage/src/main/java/io/pravega/segmentstore/storage/mocks/MockStorageMetadata.java
910f1f9ab4c05ab33357ebc001f66491d4ceaf84
[ "Apache-2.0" ]
permissive
pravega/pravega
be854c25c7345321055371e448970351a4cbaca9
e877b434909ed0f0eac496f288b0f5abfc0cd515
refs/heads/master
2023-09-02T02:02:37.243931
2023-09-01T04:54:04
2023-09-01T04:54:04
63,096,822
2,042
495
Apache-2.0
2023-09-14T21:46:00
2016-07-11T19:41:03
Java
UTF-8
Java
false
false
2,725
java
/** * Copyright Pravega Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package io.pravega.segmentstore.storage.mocks; import io.pravega.common.ObjectBuilder; import io.pravega.common.io.serialization.RevisionDataInput; import io.pravega.common.io.serialization.RevisionDataOutput; import io.pravega.common.io.serialization.VersionedSerializer; import io.pravega.segmentstore.storage.metadata.StorageMetadata; import lombok.Builder; import lombok.Data; import lombok.EqualsAndHashCode; import java.io.IOException; /** * Mock Test data. */ @Builder(toBuilder = true) @Data @EqualsAndHashCode(callSuper = true) public class MockStorageMetadata extends StorageMetadata { final private String key; private volatile String value; /** * Constructor. * * @param key Key. * @param value Value. */ public MockStorageMetadata(String key, String value) { this.key = key; this.value = value; } @Override public StorageMetadata deepCopy() { return toBuilder().build(); } /** * Builder that implements {@link ObjectBuilder}. */ public static class MockStorageMetadataBuilder implements ObjectBuilder<MockStorageMetadata> { } /** * Serializer that implements {@link VersionedSerializer}. */ public static class Serializer extends VersionedSerializer.WithBuilder<MockStorageMetadata, MockStorageMetadataBuilder> { @Override protected MockStorageMetadataBuilder newBuilder() { return MockStorageMetadata.builder(); } @Override protected byte getWriteVersion() { return 0; } @Override protected void declareVersions() { version(0).revision(0, this::write00, this::read00); } private void write00(MockStorageMetadata object, RevisionDataOutput target) throws IOException { target.writeUTF(object.key); target.writeUTF(object.value); } private void read00(RevisionDataInput source, MockStorageMetadataBuilder b) throws IOException { b.key(source.readUTF()); b.value(source.readUTF()); } } }
[ "noreply@github.com" ]
noreply@github.com
60ffe461ed9c593daf735ecbecefe73f5e6a8422
ab30df4b1585692472d32a9cbcf6c8ae107dc9a7
/generated-test-cases/Frame/8-run/SmellMOSA_Frame_ESTest.java
4ccdc716ab8f563d4f086d89740f7d906b1e952a
[ "Apache-2.0" ]
permissive
fpalomba/issta16-test-code-quality-matters
8d87b51ce1ca8305cf9ff67b2eb71899cbfb7d46
b18697fb7f3ed77a8875d39c6b81a1afa82d7245
refs/heads/master
2020-12-24T21:27:40.669676
2016-04-22T21:38:36
2016-04-22T21:38:36
56,882,946
0
0
null
null
null
null
UTF-8
Java
false
false
249,154
java
/* * This file was automatically generated by EvoSuite * Thu Dec 17 13:35:12 GMT 2015 */ package wheel.asm; import static org.junit.Assert.*; import org.junit.Test; import org.evosuite.runtime.EvoRunner; import org.evosuite.runtime.EvoRunnerParameters; import org.evosuite.runtime.testdata.EvoSuiteFile; import org.evosuite.runtime.testdata.EvoSuiteLocalAddress; import org.evosuite.runtime.testdata.EvoSuiteRemoteAddress; import org.evosuite.runtime.testdata.EvoSuiteURL; import org.evosuite.runtime.testdata.FileSystemHandling; import org.junit.runner.RunWith; import wheel.asm.ClassWriter; import wheel.asm.Frame; import wheel.asm.Item; import wheel.asm.Label; import wheel.asm.Type; @RunWith(EvoRunner.class) @EvoRunnerParameters(mockJVMNonDeterminism = true, useVFS = true, useVNET = true, resetStaticState = true) public class Frame_ESTest extends Frame_ESTest_scaffolding { //Test case number: 0 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 279 TABLESWITCH L829 Case 194 - true */ @Test public void test000() throws Throwable { Frame frame0 = new Frame(); assertNotNull(frame0); ClassWriter classWriter0 = new ClassWriter(194); assertNotNull(classWriter0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); // Undeclared exception! try { frame0.execute(194, 194, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 1 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 256 TABLESWITCH L829 Case 171 - true */ @Test public void test001() throws Throwable { ClassWriter classWriter0 = new ClassWriter(36); assertNotNull(classWriter0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Frame frame0 = new Frame(); assertNotNull(frame0); // Undeclared exception! try { frame0.execute(171, 36, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 2 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 124 TABLESWITCH L829 Case 39 - true */ @Test public void test002() throws Throwable { ClassWriter classWriter0 = new ClassWriter(39); assertNotNull(classWriter0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Frame frame0 = new Frame(); assertNotNull(frame0); // Undeclared exception! try { frame0.execute(39, 39, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 3 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 162 TABLESWITCH L829 Case 77 - true */ @Test public void test003() throws Throwable { ClassWriter classWriter0 = new ClassWriter(77); assertNotNull(classWriter0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Frame frame0 = new Frame(); assertNotNull(frame0); // Undeclared exception! try { frame0.execute(77, 77, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 4 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 283 TABLESWITCH L829 Case 198 - true */ @Test public void test004() throws Throwable { Frame frame0 = new Frame(); assertNotNull(frame0); ClassWriter classWriter0 = new ClassWriter((-3636)); assertNotNull(classWriter0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); // Undeclared exception! try { frame0.execute(198, 198, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 5 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 165 TABLESWITCH L829 Case 80 - true */ @Test public void test005() throws Throwable { ClassWriter classWriter0 = new ClassWriter(80); assertNotNull(classWriter0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Frame frame0 = new Frame(); assertNotNull(frame0); // Undeclared exception! try { frame0.execute(80, 80, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 6 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 211 TABLESWITCH L829 Case 126 - true */ @Test public void test006() throws Throwable { ClassWriter classWriter0 = new ClassWriter(126); assertNotNull(classWriter0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Frame frame0 = new Frame(); assertNotNull(frame0); // Undeclared exception! try { frame0.execute(126, 126, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 7 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 254 TABLESWITCH L829 Case 169 - true */ @Test public void test007() throws Throwable { Frame frame0 = new Frame(); assertNotNull(frame0); ClassWriter classWriter0 = new ClassWriter(57); assertNotNull(classWriter0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Item item0 = classWriter0.key2; assertNotNull(item0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); // Undeclared exception! try { frame0.execute(169, 57, classWriter0, item0); fail("Expecting exception: RuntimeException"); } catch(RuntimeException e) { // // JSR/RET are not supported with computeFrames option // } } //Test case number: 8 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 233 TABLESWITCH L829 Case 148 - true */ @Test public void test008() throws Throwable { Frame frame0 = new Frame(); assertNotNull(frame0); ClassWriter classWriter0 = new ClassWriter(148); assertNotNull(classWriter0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); // Undeclared exception! try { frame0.execute(148, 148, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 9 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 92 TABLESWITCH L829 Case 7 - true */ @Test public void test009() throws Throwable { Frame frame0 = new Frame(); assertNotNull(frame0); ClassWriter classWriter0 = new ClassWriter(7); assertNotNull(classWriter0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); // Undeclared exception! try { frame0.execute(7, 7, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 10 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 193 TABLESWITCH L829 Case 108 - true */ @Test public void test010() throws Throwable { ClassWriter classWriter0 = new ClassWriter(108); assertNotNull(classWriter0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Frame frame0 = new Frame(); assertNotNull(frame0); // Undeclared exception! try { frame0.execute(108, 108, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 11 /* * 2 covered goals: * Goal 1. wheel.asm.Frame.type(Lwheel/asm/ClassWriter;Ljava/lang/String;)I: I28 Branch 26 TABLESWITCH L610 Case 79 - true * Goal 2. wheel.asm.Frame.type(Lwheel/asm/ClassWriter;Ljava/lang/String;)I: I97 Branch 50 TABLESWITCH L637 Case 76 - true */ @Test public void test011() throws Throwable { Frame frame0 = new Frame(); assertNotNull(frame0); ClassWriter classWriter0 = new ClassWriter((-20)); assertNotNull(classWriter0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Item item0 = classWriter0.newConstItem("OLO, rZ7K"); assertNotNull(item0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); // Undeclared exception! try { frame0.execute(16777227, (-20), classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 12 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 221 TABLESWITCH L829 Case 136 - true */ @Test public void test012() throws Throwable { Frame frame0 = new Frame(); assertNotNull(frame0); ClassWriter classWriter0 = new ClassWriter((-3646)); assertNotNull(classWriter0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); // Undeclared exception! try { frame0.execute(136, (-3646), classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 13 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 248 TABLESWITCH L829 Case 163 - true */ @Test public void test013() throws Throwable { Frame frame0 = new Frame(); assertNotNull(frame0); ClassWriter classWriter0 = new ClassWriter(57); assertNotNull(classWriter0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Item item0 = classWriter0.newDouble(57); assertNotNull(item0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); // Undeclared exception! try { frame0.execute(163, 57, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 14 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 244 TABLESWITCH L829 Case 159 - true */ @Test public void test014() throws Throwable { ClassWriter classWriter0 = new ClassWriter(159); assertNotNull(classWriter0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Frame frame0 = new Frame(); assertNotNull(frame0); // Undeclared exception! try { frame0.execute(159, 159, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 15 /* * 4 covered goals: * Goal 1. wheel.asm.Frame.type(Lwheel/asm/ClassWriter;Ljava/lang/String;)I: I28 Branch 13 TABLESWITCH L610 Case 66 - true * Goal 2. wheel.asm.Frame.type(Lwheel/asm/ClassWriter;Ljava/lang/String;)I: I28 Branch 15 TABLESWITCH L610 Case 68 - true * Goal 3. wheel.asm.Frame.type(Lwheel/asm/ClassWriter;Ljava/lang/String;)I: I28 Branch 30 TABLESWITCH L610 Case 83 - true * Goal 4. wheel.asm.Frame.initInputFrame(Lwheel/asm/ClassWriter;I[Lwheel/asm/Type;I)V: I101 Branch 83 IF_ICMPNE L805 - false */ @Test public void test015() throws Throwable { ClassWriter classWriter0 = new ClassWriter(497); assertNotNull(classWriter0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Frame frame0 = new Frame(); assertNotNull(frame0); Type[] typeArray0 = new Type[20]; Type type0 = Type.DOUBLE_TYPE; assertNotNull(type0); assertEquals(8, type0.DOUBLE); assertEquals(7, type0.LONG); assertEquals(10, type0.OBJECT); assertEquals(2, type0.CHAR); assertEquals(3, type0.BYTE); assertEquals(6, type0.FLOAT); assertEquals(9, type0.ARRAY); assertEquals(5, type0.INT); assertEquals(0, type0.VOID); assertEquals(1, type0.BOOLEAN); assertEquals(4, type0.SHORT); assertEquals(8, type0.getSort()); assertEquals(2, type0.getSize()); typeArray0[0] = type0; Type type1 = Type.SHORT_TYPE; assertNotNull(type1); assertNotSame(type1, type0); assertEquals(7, type1.LONG); assertEquals(10, type1.OBJECT); assertEquals(1, type1.BOOLEAN); assertEquals(5, type1.INT); assertEquals(4, type1.SHORT); assertEquals(9, type1.ARRAY); assertEquals(8, type1.DOUBLE); assertEquals(0, type1.VOID); assertEquals(6, type1.FLOAT); assertEquals(3, type1.BYTE); assertEquals(2, type1.CHAR); assertEquals(4, type1.getSort()); assertEquals(1, type1.getSize()); assertFalse(type1.equals((Object)type0)); typeArray0[1] = type1; typeArray0[2] = type0; Type type2 = Type.BYTE_TYPE; assertNotNull(type2); assertNotSame(type2, type1); assertNotSame(type2, type0); assertEquals(8, type2.DOUBLE); assertEquals(1, type2.BOOLEAN); assertEquals(7, type2.LONG); assertEquals(10, type2.OBJECT); assertEquals(4, type2.SHORT); assertEquals(9, type2.ARRAY); assertEquals(0, type2.VOID); assertEquals(6, type2.FLOAT); assertEquals(3, type2.BYTE); assertEquals(5, type2.INT); assertEquals(2, type2.CHAR); assertEquals(3, type2.getSort()); assertEquals(1, type2.getSize()); assertFalse(type2.equals((Object)type1)); assertFalse(type2.equals((Object)type0)); typeArray0[3] = type2; // Undeclared exception! try { frame0.initInputFrame(classWriter0, (-133), typeArray0, 497); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 16 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 121 TABLESWITCH L829 Case 36 - true */ @Test public void test016() throws Throwable { ClassWriter classWriter0 = new ClassWriter(36); assertNotNull(classWriter0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Frame frame0 = new Frame(); assertNotNull(frame0); // Undeclared exception! try { frame0.execute(36, 36, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 17 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 199 TABLESWITCH L829 Case 114 - true */ @Test public void test017() throws Throwable { Frame frame0 = new Frame(); assertNotNull(frame0); ClassWriter classWriter0 = new ClassWriter(114); assertNotNull(classWriter0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Item item0 = classWriter0.key2; assertNotNull(item0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); // Undeclared exception! try { frame0.execute(114, 114, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 18 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 95 TABLESWITCH L829 Case 10 - true */ @Test public void test018() throws Throwable { ClassWriter classWriter0 = new ClassWriter(10); assertNotNull(classWriter0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Frame frame0 = new Frame(); assertNotNull(frame0); // Undeclared exception! try { frame0.execute(10, 10, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 19 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 138 TABLESWITCH L829 Case 53 - true */ @Test public void test019() throws Throwable { ClassWriter classWriter0 = new ClassWriter(53); assertNotNull(classWriter0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Frame frame0 = new Frame(); assertNotNull(frame0); // Undeclared exception! try { frame0.execute(53, 53, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 20 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 209 TABLESWITCH L829 Case 124 - true */ @Test public void test020() throws Throwable { Frame frame0 = new Frame(); assertNotNull(frame0); ClassWriter classWriter0 = new ClassWriter(151); assertNotNull(classWriter0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); // Undeclared exception! try { frame0.execute(124, 151, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 21 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 205 TABLESWITCH L829 Case 120 - true */ @Test public void test021() throws Throwable { Frame frame0 = new Frame(); assertNotNull(frame0); ClassWriter classWriter0 = new ClassWriter((-1745)); assertNotNull(classWriter0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); // Undeclared exception! try { frame0.execute(120, (-1745), classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 22 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 189 TABLESWITCH L829 Case 104 - true */ @Test public void test022() throws Throwable { ClassWriter classWriter0 = new ClassWriter(104); assertNotNull(classWriter0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Frame frame0 = new Frame(); assertNotNull(frame0); // Undeclared exception! try { frame0.execute(104, 104, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 23 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 176 TABLESWITCH L829 Case 91 - true */ @Test public void test023() throws Throwable { Frame frame0 = new Frame(); assertNotNull(frame0); ClassWriter classWriter0 = new ClassWriter(91); assertNotNull(classWriter0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); // Undeclared exception! try { frame0.execute(91, 91, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 24 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 185 TABLESWITCH L829 Case 100 - true */ @Test public void test024() throws Throwable { Frame frame0 = new Frame(); assertNotNull(frame0); ClassWriter classWriter0 = new ClassWriter(106); assertNotNull(classWriter0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); // Undeclared exception! try { frame0.execute(100, 100, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 25 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 214 TABLESWITCH L829 Case 129 - true */ @Test public void test025() throws Throwable { ClassWriter classWriter0 = new ClassWriter(59); assertNotNull(classWriter0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Item item0 = classWriter0.key2; assertNotNull(item0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Frame frame0 = new Frame(); assertNotNull(frame0); // Undeclared exception! try { frame0.execute(129, 59, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 26 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 246 TABLESWITCH L829 Case 161 - true */ @Test public void test026() throws Throwable { Frame frame0 = new Frame(); assertNotNull(frame0); ClassWriter classWriter0 = new ClassWriter(161); assertNotNull(classWriter0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); // Undeclared exception! try { frame0.execute(161, 161, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 27 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 108 TABLESWITCH L829 Case 23 - true */ @Test public void test027() throws Throwable { ClassWriter classWriter0 = new ClassWriter(23); assertNotNull(classWriter0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Frame frame0 = new Frame(); assertNotNull(frame0); // Undeclared exception! try { frame0.execute(23, 23, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 28 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.set(II)V: I27 Branch 5 IF_ICMPLT L548 - false */ @Test public void test028() throws Throwable { ClassWriter classWriter0 = new ClassWriter(44); assertNotNull(classWriter0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Frame frame0 = new Frame(); assertNotNull(frame0); frame0.execute(132, 44, classWriter0, item0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); } //Test case number: 29 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 183 TABLESWITCH L829 Case 98 - true */ @Test public void test029() throws Throwable { ClassWriter classWriter0 = new ClassWriter(98); assertNotNull(classWriter0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Frame frame0 = new Frame(); assertNotNull(frame0); // Undeclared exception! try { frame0.execute(98, 98, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 30 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 284 TABLESWITCH L829 Case 199 - true */ @Test public void test030() throws Throwable { ClassWriter classWriter0 = new ClassWriter(199); assertNotNull(classWriter0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Frame frame0 = new Frame(); assertNotNull(frame0); // Undeclared exception! try { frame0.execute(199, 199, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 31 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 107 TABLESWITCH L829 Case 22 - true */ @Test public void test031() throws Throwable { ClassWriter classWriter0 = new ClassWriter(22); assertNotNull(classWriter0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Frame frame0 = new Frame(); assertNotNull(frame0); // Undeclared exception! try { frame0.execute(22, 22, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 32 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 275 TABLESWITCH L829 Case 190 - true */ @Test public void test032() throws Throwable { Frame frame0 = new Frame(); assertNotNull(frame0); Item item0 = new Item(); assertNotNull(item0); // Undeclared exception! try { frame0.execute(190, 44, (ClassWriter) null, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 33 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 157 TABLESWITCH L829 Case 72 - true */ @Test public void test033() throws Throwable { ClassWriter classWriter0 = new ClassWriter(72); assertNotNull(classWriter0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Frame frame0 = new Frame(); assertNotNull(frame0); // Undeclared exception! try { frame0.execute(72, 72, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 34 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 136 TABLESWITCH L829 Case 51 - true */ @Test public void test034() throws Throwable { ClassWriter classWriter0 = new ClassWriter(51); assertNotNull(classWriter0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Frame frame0 = new Frame(); assertNotNull(frame0); // Undeclared exception! try { frame0.execute(51, 51, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 35 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.initInputFrame(Lwheel/asm/ClassWriter;I[Lwheel/asm/Type;I)V: I33 Branch 80 IFNE L796 - false */ @Test public void test035() throws Throwable { ClassWriter classWriter0 = new ClassWriter(82); assertNotNull(classWriter0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Frame frame0 = new Frame(); assertNotNull(frame0); Type[] typeArray0 = new Type[5]; // Undeclared exception! try { frame0.initInputFrame(classWriter0, 82, typeArray0, 82); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 36 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 264 TABLESWITCH L829 Case 179 - true */ @Test public void test036() throws Throwable { Frame frame0 = new Frame(); assertNotNull(frame0); ClassWriter classWriter0 = new ClassWriter(146); assertNotNull(classWriter0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); // Undeclared exception! try { frame0.execute(179, 146, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 37 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 94 TABLESWITCH L829 Case 9 - true */ @Test public void test037() throws Throwable { ClassWriter classWriter0 = new ClassWriter(9); assertNotNull(classWriter0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Frame frame0 = new Frame(); assertNotNull(frame0); // Undeclared exception! try { frame0.execute(9, 9, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 38 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 213 TABLESWITCH L829 Case 128 - true */ @Test public void test038() throws Throwable { Frame frame0 = new Frame(); assertNotNull(frame0); ClassWriter classWriter0 = new ClassWriter(146); assertNotNull(classWriter0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); // Undeclared exception! try { frame0.execute(128, 146, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 39 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 115 TABLESWITCH L829 Case 30 - true */ @Test public void test039() throws Throwable { ClassWriter classWriter0 = new ClassWriter(89); assertNotNull(classWriter0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Frame frame0 = new Frame(); assertNotNull(frame0); // Undeclared exception! try { frame0.execute(30, 30, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 40 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 200 TABLESWITCH L829 Case 115 - true */ @Test public void test040() throws Throwable { ClassWriter classWriter0 = new ClassWriter(115); assertNotNull(classWriter0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Frame frame0 = new Frame(); assertNotNull(frame0); // Undeclared exception! try { frame0.execute(115, 115, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 41 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 174 TABLESWITCH L829 Case 89 - true */ @Test public void test041() throws Throwable { ClassWriter classWriter0 = new ClassWriter(89); assertNotNull(classWriter0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Frame frame0 = new Frame(); assertNotNull(frame0); // Undeclared exception! try { frame0.execute(89, 89, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 42 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 167 TABLESWITCH L829 Case 82 - true */ @Test public void test042() throws Throwable { ClassWriter classWriter0 = new ClassWriter(82); assertNotNull(classWriter0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Frame frame0 = new Frame(); assertNotNull(frame0); // Undeclared exception! try { frame0.execute(82, 82, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 43 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 253 TABLESWITCH L829 Case 168 - true */ @Test public void test043() throws Throwable { Frame frame0 = new Frame(); assertNotNull(frame0); ClassWriter classWriter0 = new ClassWriter(168); assertNotNull(classWriter0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); // Undeclared exception! try { frame0.execute(168, 168, classWriter0, (Item) null); fail("Expecting exception: RuntimeException"); } catch(RuntimeException e) { // // JSR/RET are not supported with computeFrames option // } } //Test case number: 44 /* * 3 covered goals: * Goal 1. wheel.asm.Frame.set(II)V: I7 Branch 4 IFNONNULL L544 - false * Goal 2. wheel.asm.Frame.set(II)V: I27 Branch 5 IF_ICMPLT L548 - true * Goal 3. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 217 TABLESWITCH L829 Case 132 - true */ @Test public void test044() throws Throwable { Frame frame0 = new Frame(); assertNotNull(frame0); ClassWriter classWriter0 = new ClassWriter(91); assertNotNull(classWriter0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); // Undeclared exception! try { frame0.execute(132, (-1397), classWriter0, item0); fail("Expecting exception: ArrayIndexOutOfBoundsException"); } catch(ArrayIndexOutOfBoundsException e) { // // -1397 // } } //Test case number: 45 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 250 TABLESWITCH L829 Case 165 - true */ @Test public void test045() throws Throwable { Frame frame0 = new Frame(); assertNotNull(frame0); ClassWriter classWriter0 = new ClassWriter(165); assertNotNull(classWriter0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); // Undeclared exception! try { frame0.execute(165, (-3641), classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 46 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 232 TABLESWITCH L829 Case 147 - true */ @Test public void test046() throws Throwable { Frame frame0 = new Frame(); assertNotNull(frame0); ClassWriter classWriter0 = new ClassWriter(179); assertNotNull(classWriter0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); frame0.execute(147, 147, classWriter0, item0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); } //Test case number: 47 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 239 TABLESWITCH L829 Case 154 - true */ @Test public void test047() throws Throwable { Frame frame0 = new Frame(); assertNotNull(frame0); ClassWriter classWriter0 = new ClassWriter(106); assertNotNull(classWriter0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); // Undeclared exception! try { frame0.execute(154, 154, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 48 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 198 TABLESWITCH L829 Case 113 - true */ @Test public void test048() throws Throwable { Frame frame0 = new Frame(); assertNotNull(frame0); boolean boolean0 = FileSystemHandling.appendLineToFile((EvoSuiteFile) null, "HG%'-[S^XQuO~(;Hheq"); assertFalse(boolean0); ClassWriter classWriter0 = new ClassWriter(57); assertNotNull(classWriter0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Item item0 = classWriter0.newMethodItem("HG%'-[S^XQuO~(;Hheq", "HG%'-[S^XQuO~(;Hheq", "HG%'-[S^XQuO~(;Hheq", false); assertNotNull(item0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); // Undeclared exception! try { frame0.execute(113, 113, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 49 /* * 2 covered goals: * Goal 1. wheel.asm.Frame.type(Lwheel/asm/ClassWriter;Ljava/lang/String;)I: I28 Branch 14 TABLESWITCH L610 Case 67 - true * Goal 2. wheel.asm.Frame.type(Lwheel/asm/ClassWriter;Ljava/lang/String;)I: I28 Branch 17 TABLESWITCH L610 Case 70 - true */ @Test public void test049() throws Throwable { ClassWriter classWriter0 = new ClassWriter(62); assertNotNull(classWriter0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Frame frame0 = new Frame(); assertNotNull(frame0); Type type0 = Type.FLOAT_TYPE; assertNotNull(type0); assertEquals(7, type0.LONG); assertEquals(10, type0.OBJECT); assertEquals(1, type0.BOOLEAN); assertEquals(3, type0.BYTE); assertEquals(4, type0.SHORT); assertEquals(9, type0.ARRAY); assertEquals(6, type0.FLOAT); assertEquals(8, type0.DOUBLE); assertEquals(2, type0.CHAR); assertEquals(5, type0.INT); assertEquals(0, type0.VOID); assertEquals(6, type0.getSort()); assertEquals(1, type0.getSize()); Type type1 = Type.CHAR_TYPE; assertNotNull(type1); assertNotSame(type1, type0); assertEquals(2, type1.CHAR); assertEquals(4, type1.SHORT); assertEquals(5, type1.INT); assertEquals(3, type1.BYTE); assertEquals(1, type1.BOOLEAN); assertEquals(7, type1.LONG); assertEquals(10, type1.OBJECT); assertEquals(9, type1.ARRAY); assertEquals(0, type1.VOID); assertEquals(6, type1.FLOAT); assertEquals(8, type1.DOUBLE); assertEquals(2, type1.getSort()); assertEquals(1, type1.getSize()); assertFalse(type1.equals((Object)type0)); Type[] typeArray0 = new Type[6]; typeArray0[0] = type1; typeArray0[1] = type0; // Undeclared exception! try { frame0.initInputFrame(classWriter0, 62, typeArray0, 62); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 50 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 263 TABLESWITCH L829 Case 178 - true */ @Test public void test050() throws Throwable { Frame frame0 = new Frame(); assertNotNull(frame0); ClassWriter classWriter0 = new ClassWriter(70); assertNotNull(classWriter0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); // Undeclared exception! try { frame0.execute(178, 70, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 51 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 151 TABLESWITCH L829 Case 66 - true */ @Test public void test051() throws Throwable { ClassWriter classWriter0 = new ClassWriter(66); assertNotNull(classWriter0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Frame frame0 = new Frame(); assertNotNull(frame0); // Undeclared exception! try { frame0.execute(66, 66, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 52 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 97 TABLESWITCH L829 Case 12 - true */ @Test public void test052() throws Throwable { Frame frame0 = new Frame(); assertNotNull(frame0); ClassWriter classWriter0 = new ClassWriter(12); assertNotNull(classWriter0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); // Undeclared exception! try { frame0.execute(12, 179, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 53 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.type(Lwheel/asm/ClassWriter;Ljava/lang/String;)I: I97 Branch 42 TABLESWITCH L637 Case 68 - true */ @Test public void test053() throws Throwable { Frame frame0 = new Frame(); assertNotNull(frame0); ClassWriter classWriter0 = new ClassWriter(16777190); assertNotNull(classWriter0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Item item1 = classWriter0.newFieldItem("m\">", "6DXrq@fqiU$.%8|Gbp", "6DXrq@fqiU$.%8|Gbp"); assertNotNull(item1); assertNotSame(item1, item0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); assertFalse(item1.equals((Object)item0)); // Undeclared exception! try { frame0.execute(16777190, 0, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 54 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 245 TABLESWITCH L829 Case 160 - true */ @Test public void test054() throws Throwable { Frame frame0 = new Frame(); assertNotNull(frame0); ClassWriter classWriter0 = new ClassWriter(160); assertNotNull(classWriter0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); // Undeclared exception! try { frame0.execute(160, 160, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 55 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 208 TABLESWITCH L829 Case 123 - true */ @Test public void test055() throws Throwable { ClassWriter classWriter0 = new ClassWriter(123); assertNotNull(classWriter0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Frame frame0 = new Frame(); assertNotNull(frame0); // Undeclared exception! try { frame0.execute(123, 123, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 56 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 173 TABLESWITCH L829 Case 88 - true */ @Test public void test056() throws Throwable { ClassWriter classWriter0 = new ClassWriter(88); assertNotNull(classWriter0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Frame frame0 = new Frame(); assertNotNull(frame0); // Undeclared exception! try { frame0.execute(88, 88, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 57 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 187 TABLESWITCH L829 Case 102 - true */ @Test public void test057() throws Throwable { ClassWriter classWriter0 = new ClassWriter(114); assertNotNull(classWriter0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Frame frame0 = new Frame(); assertNotNull(frame0); // Undeclared exception! try { frame0.execute(102, 102, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 58 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 146 TABLESWITCH L829 Case 61 - true */ @Test public void test058() throws Throwable { ClassWriter classWriter0 = new ClassWriter(61); assertNotNull(classWriter0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Frame frame0 = new Frame(); assertNotNull(frame0); // Undeclared exception! try { frame0.execute(61, 61, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 59 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 132 TABLESWITCH L829 Case 47 - true */ @Test public void test059() throws Throwable { ClassWriter classWriter0 = new ClassWriter(47); assertNotNull(classWriter0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Frame frame0 = new Frame(); assertNotNull(frame0); // Undeclared exception! try { frame0.execute(47, 47, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 60 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 229 TABLESWITCH L829 Case 144 - true */ @Test public void test060() throws Throwable { Frame frame0 = new Frame(); assertNotNull(frame0); ClassWriter classWriter0 = new ClassWriter(144); assertNotNull(classWriter0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); // Undeclared exception! try { frame0.execute(144, 144, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 61 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 228 TABLESWITCH L829 Case 143 - true */ @Test public void test061() throws Throwable { ClassWriter classWriter0 = new ClassWriter(143); assertNotNull(classWriter0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Frame frame0 = new Frame(); assertNotNull(frame0); // Undeclared exception! try { frame0.execute(143, 143, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 62 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 204 TABLESWITCH L829 Case 119 - true */ @Test public void test062() throws Throwable { ClassWriter classWriter0 = new ClassWriter(119); assertNotNull(classWriter0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Frame frame0 = new Frame(); assertNotNull(frame0); frame0.execute(119, 119, classWriter0, item0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); } //Test case number: 63 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 100 TABLESWITCH L829 Case 15 - true */ @Test public void test063() throws Throwable { Frame frame0 = new Frame(); assertNotNull(frame0); ClassWriter classWriter0 = new ClassWriter(15); assertNotNull(classWriter0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); // Undeclared exception! try { frame0.execute(15, 15, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 64 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 139 TABLESWITCH L829 Case 54 - true */ @Test public void test064() throws Throwable { ClassWriter classWriter0 = new ClassWriter(100); assertNotNull(classWriter0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Frame frame0 = new Frame(); assertNotNull(frame0); // Undeclared exception! try { frame0.execute(54, 100, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 65 /* * 2 covered goals: * Goal 1. wheel.asm.Frame.type(Lwheel/asm/ClassWriter;Ljava/lang/String;)I: I28 Branch 21 TABLESWITCH L610 Case 74 - true * Goal 2. wheel.asm.Frame.initInputFrame(Lwheel/asm/ClassWriter;I[Lwheel/asm/Type;I)V: I95 Branch 82 IF_ICMPEQ L805 - true */ @Test public void test065() throws Throwable { Frame frame0 = new Frame(); assertNotNull(frame0); ClassWriter classWriter0 = new ClassWriter(237); assertNotNull(classWriter0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Type[] typeArray0 = new Type[2]; Type type0 = Type.INT_TYPE; assertNotNull(type0); assertEquals(2, type0.CHAR); assertEquals(5, type0.INT); assertEquals(4, type0.SHORT); assertEquals(3, type0.BYTE); assertEquals(7, type0.LONG); assertEquals(1, type0.BOOLEAN); assertEquals(10, type0.OBJECT); assertEquals(9, type0.ARRAY); assertEquals(0, type0.VOID); assertEquals(6, type0.FLOAT); assertEquals(8, type0.DOUBLE); assertEquals(5, type0.getSort()); assertEquals(1, type0.getSize()); typeArray0[0] = type0; Type type1 = Type.LONG_TYPE; assertNotNull(type1); assertNotSame(type1, type0); assertEquals(8, type1.DOUBLE); assertEquals(1, type1.BOOLEAN); assertEquals(5, type1.INT); assertEquals(0, type1.VOID); assertEquals(9, type1.ARRAY); assertEquals(3, type1.BYTE); assertEquals(6, type1.FLOAT); assertEquals(2, type1.CHAR); assertEquals(4, type1.SHORT); assertEquals(7, type1.LONG); assertEquals(10, type1.OBJECT); assertEquals(7, type1.getSort()); assertEquals(2, type1.getSize()); assertFalse(type1.equals((Object)type0)); typeArray0[1] = type1; frame0.initInputFrame(classWriter0, 237, typeArray0, 237); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); } //Test case number: 66 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 134 TABLESWITCH L829 Case 49 - true */ @Test public void test066() throws Throwable { ClassWriter classWriter0 = new ClassWriter(52); assertNotNull(classWriter0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Frame frame0 = new Frame(); assertNotNull(frame0); // Undeclared exception! try { frame0.execute(49, 52, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 67 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 282 TABLESWITCH L829 Case 197 - true */ @Test public void test067() throws Throwable { Frame frame0 = new Frame(); assertNotNull(frame0); ClassWriter classWriter0 = new ClassWriter(59); assertNotNull(classWriter0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); // Undeclared exception! try { frame0.execute(197, 197, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 68 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 104 TABLESWITCH L829 Case 19 - true */ @Test public void test068() throws Throwable { ClassWriter classWriter0 = new ClassWriter(19); assertNotNull(classWriter0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Frame frame0 = new Frame(); assertNotNull(frame0); // Undeclared exception! try { frame0.execute(19, 19, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 69 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 179 TABLESWITCH L829 Case 94 - true */ @Test public void test069() throws Throwable { ClassWriter classWriter0 = new ClassWriter(94); assertNotNull(classWriter0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Frame frame0 = new Frame(); assertNotNull(frame0); // Undeclared exception! try { frame0.execute(94, 94, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 70 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 182 TABLESWITCH L829 Case 97 - true */ @Test public void test070() throws Throwable { ClassWriter classWriter0 = new ClassWriter(0); assertNotNull(classWriter0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Frame frame0 = new Frame(); assertNotNull(frame0); // Undeclared exception! try { frame0.execute(97, 97, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 71 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 247 TABLESWITCH L829 Case 162 - true */ @Test public void test071() throws Throwable { Frame frame0 = new Frame(); assertNotNull(frame0); ClassWriter classWriter0 = new ClassWriter(162); assertNotNull(classWriter0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); // Undeclared exception! try { frame0.execute(162, (-3645), classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 72 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 230 TABLESWITCH L829 Case 145 - true */ @Test public void test072() throws Throwable { ClassWriter classWriter0 = new ClassWriter(44); assertNotNull(classWriter0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Frame frame0 = new Frame(); assertNotNull(frame0); frame0.execute(145, 44, classWriter0, item0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); } //Test case number: 73 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 236 TABLESWITCH L829 Case 151 - true */ @Test public void test073() throws Throwable { Frame frame0 = new Frame(); assertNotNull(frame0); ClassWriter classWriter0 = new ClassWriter(151); assertNotNull(classWriter0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); // Undeclared exception! try { frame0.execute(151, 151, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 74 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 225 TABLESWITCH L829 Case 140 - true */ @Test public void test074() throws Throwable { ClassWriter classWriter0 = new ClassWriter(59); assertNotNull(classWriter0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Frame frame0 = new Frame(); assertNotNull(frame0); // Undeclared exception! try { frame0.execute(140, 59, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 75 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 219 TABLESWITCH L829 Case 134 - true */ @Test public void test075() throws Throwable { Frame frame0 = new Frame(); assertNotNull(frame0); ClassWriter classWriter0 = new ClassWriter(57); assertNotNull(classWriter0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Item item0 = classWriter0.newMethodItem("", "", "", false); assertNotNull(item0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); // Undeclared exception! try { frame0.execute(134, 57, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 76 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 231 TABLESWITCH L829 Case 146 - true */ @Test public void test076() throws Throwable { Frame frame0 = new Frame(); assertNotNull(frame0); ClassWriter classWriter0 = new ClassWriter(146); assertNotNull(classWriter0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); frame0.execute(146, 146, classWriter0, item0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); } //Test case number: 77 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 188 TABLESWITCH L829 Case 103 - true */ @Test public void test077() throws Throwable { ClassWriter classWriter0 = new ClassWriter(103); assertNotNull(classWriter0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Frame frame0 = new Frame(); assertNotNull(frame0); // Undeclared exception! try { frame0.execute(103, 103, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 78 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 235 TABLESWITCH L829 Case 150 - true */ @Test public void test078() throws Throwable { Frame frame0 = new Frame(); assertNotNull(frame0); ClassWriter classWriter0 = new ClassWriter(40); assertNotNull(classWriter0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Item item0 = classWriter0.newInteger(40); assertNotNull(item0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); // Undeclared exception! try { frame0.execute(150, 40, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 79 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 218 TABLESWITCH L829 Case 133 - true */ @Test public void test079() throws Throwable { Frame frame0 = new Frame(); assertNotNull(frame0); ClassWriter classWriter0 = new ClassWriter(133); assertNotNull(classWriter0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); // Undeclared exception! try { frame0.execute(133, 133, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 80 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 119 TABLESWITCH L829 Case 34 - true */ @Test public void test080() throws Throwable { ClassWriter classWriter0 = new ClassWriter(67); assertNotNull(classWriter0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Frame frame0 = new Frame(); assertNotNull(frame0); Item item0 = new Item(); assertNotNull(item0); // Undeclared exception! try { frame0.execute(34, 67, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 81 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 262 TABLESWITCH L829 Case 177 - true */ @Test public void test081() throws Throwable { ClassWriter classWriter0 = new ClassWriter(101); assertNotNull(classWriter0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Frame frame0 = new Frame(); assertNotNull(frame0); frame0.execute(177, 101, classWriter0, item0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); } //Test case number: 82 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 197 TABLESWITCH L829 Case 112 - true */ @Test public void test082() throws Throwable { Frame frame0 = new Frame(); assertNotNull(frame0); ClassWriter classWriter0 = new ClassWriter(52); assertNotNull(classWriter0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); // Undeclared exception! try { frame0.execute(112, 112, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 83 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 175 TABLESWITCH L829 Case 90 - true */ @Test public void test083() throws Throwable { ClassWriter classWriter0 = new ClassWriter(90); assertNotNull(classWriter0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Frame frame0 = new Frame(); assertNotNull(frame0); // Undeclared exception! try { frame0.execute(90, 90, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 84 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 112 TABLESWITCH L829 Case 27 - true */ @Test public void test084() throws Throwable { ClassWriter classWriter0 = new ClassWriter(27); assertNotNull(classWriter0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Frame frame0 = new Frame(); assertNotNull(frame0); // Undeclared exception! try { frame0.execute(27, 27, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 85 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 215 TABLESWITCH L829 Case 130 - true */ @Test public void test085() throws Throwable { ClassWriter classWriter0 = new ClassWriter(55); assertNotNull(classWriter0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Frame frame0 = new Frame(); assertNotNull(frame0); Item item0 = classWriter0.newFieldItem("", "", ""); assertNotNull(item0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); // Undeclared exception! try { frame0.execute(130, 130, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 86 /* * 2 covered goals: * Goal 1. wheel.asm.Frame.type(Lwheel/asm/ClassWriter;Ljava/lang/String;)I: I84 Branch 39 IF_ICMPNE L634 - false * Goal 2. wheel.asm.Frame.type(Lwheel/asm/ClassWriter;Ljava/lang/String;)I: I97 Branch 65 TABLESWITCH L637 Default-Case - true */ @Test public void test086() throws Throwable { ClassWriter classWriter0 = new ClassWriter(67); assertNotNull(classWriter0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); int int0 = classWriter0.newClass("c[7x2d&<;<[D^YbyZ"); assertEquals(2, int0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Frame frame0 = new Frame(); assertNotNull(frame0); // Undeclared exception! try { frame0.execute(1103, (-1043), classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 87 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 126 TABLESWITCH L829 Case 41 - true */ @Test public void test087() throws Throwable { ClassWriter classWriter0 = new ClassWriter(73); assertNotNull(classWriter0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Frame frame0 = new Frame(); assertNotNull(frame0); // Undeclared exception! try { frame0.execute(41, 41, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 88 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 98 TABLESWITCH L829 Case 13 - true */ @Test public void test088() throws Throwable { Frame frame0 = new Frame(); assertNotNull(frame0); ClassWriter classWriter0 = new ClassWriter(0); assertNotNull(classWriter0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); // Undeclared exception! try { frame0.execute(13, 0, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 89 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 168 TABLESWITCH L829 Case 83 - true */ @Test public void test089() throws Throwable { ClassWriter classWriter0 = new ClassWriter(83); assertNotNull(classWriter0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Frame frame0 = new Frame(); assertNotNull(frame0); // Undeclared exception! try { frame0.execute(83, 83, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 90 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 133 TABLESWITCH L829 Case 48 - true */ @Test public void test090() throws Throwable { ClassWriter classWriter0 = new ClassWriter(48); assertNotNull(classWriter0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Frame frame0 = new Frame(); assertNotNull(frame0); // Undeclared exception! try { frame0.execute(48, 48, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 91 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 114 TABLESWITCH L829 Case 29 - true */ @Test public void test091() throws Throwable { ClassWriter classWriter0 = new ClassWriter(29); assertNotNull(classWriter0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Frame frame0 = new Frame(); assertNotNull(frame0); // Undeclared exception! try { frame0.execute(29, 29, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 92 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 131 TABLESWITCH L829 Case 46 - true */ @Test public void test092() throws Throwable { ClassWriter classWriter0 = new ClassWriter(46); assertNotNull(classWriter0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Frame frame0 = new Frame(); assertNotNull(frame0); // Undeclared exception! try { frame0.execute(46, 46, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 93 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 101 TABLESWITCH L829 Case 16 - true */ @Test public void test093() throws Throwable { Frame frame0 = new Frame(); assertNotNull(frame0); ClassWriter classWriter0 = new ClassWriter(16); assertNotNull(classWriter0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); // Undeclared exception! try { frame0.execute(16, 16, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 94 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 153 TABLESWITCH L829 Case 68 - true */ @Test public void test094() throws Throwable { ClassWriter classWriter0 = new ClassWriter(68); assertNotNull(classWriter0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Frame frame0 = new Frame(); assertNotNull(frame0); // Undeclared exception! try { frame0.execute(68, 68, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 95 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 159 TABLESWITCH L829 Case 74 - true */ @Test public void test095() throws Throwable { ClassWriter classWriter0 = new ClassWriter(74); assertNotNull(classWriter0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Frame frame0 = new Frame(); assertNotNull(frame0); // Undeclared exception! try { frame0.execute(74, 74, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 96 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 137 TABLESWITCH L829 Case 52 - true */ @Test public void test096() throws Throwable { ClassWriter classWriter0 = new ClassWriter(52); assertNotNull(classWriter0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Frame frame0 = new Frame(); assertNotNull(frame0); // Undeclared exception! try { frame0.execute(52, 52, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 97 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 260 TABLESWITCH L829 Case 175 - true */ @Test public void test097() throws Throwable { Frame frame0 = new Frame(); assertNotNull(frame0); ClassWriter classWriter0 = new ClassWriter(175); assertNotNull(classWriter0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); // Undeclared exception! try { frame0.execute(175, (-3610), classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 98 /* * 2 covered goals: * Goal 1. wheel.asm.Frame.type(Lwheel/asm/ClassWriter;Ljava/lang/String;)I: I28 Branch 16 TABLESWITCH L610 Case 69 - true * Goal 2. wheel.asm.Frame.type(Lwheel/asm/ClassWriter;Ljava/lang/String;)I: I97 Branch 44 TABLESWITCH L637 Case 70 - true */ @Test public void test098() throws Throwable { ClassWriter classWriter0 = new ClassWriter(43); assertNotNull(classWriter0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Frame frame0 = new Frame(); assertNotNull(frame0); classWriter0.visitOuterClass("EFFFFFFFFGGFFFGGFFFEEFGFGFEEEEEEEEEEEEEEEEEEEEDEDEDDDDDCDCDEEEEEEEEEEEEEEEEEEEEBABABBBBDCFFFGGGEDCDCDCDCDCDCDCDCDCDCEEEEDDDDDDDCDCDCEFEFDDEEFFDEDEEEBDDBBDDDDDDCCCCCCCCEFEDDDCDCDEEEEEEEEEEFEEEEEEDDEEDDEE", "EFFFFFFFFGGFFFGGFFFEEFGFGFEEEEEEEEEEEEEEEEEEEEDEDEDDDDDCDCDEEEEEEEEEEEEEEEEEEEEBABABBBBDCFFFGGGEDCDCDCDCDCDCDCDCDCDCEEEEDDDDDDDCDCDCEFEFDDEEFFDEDEEEBDDBBDDDDDDCCCCCCCCEFEDDDCDCDEEEEEEEEEEFEEEEEEDDEEDDEE", "EFFFFFFFFGGFFFGGFFFEEFGFGFEEEEEEEEEEEEEEEEEEEEDEDEDDDDDCDCDEEEEEEEEEEEEEEEEEEEEBABABBBBDCFFFGGGEDCDCDCDCDCDCDCDCDCDCEEEEDDDDDDDCDCDCEFEFDDEEFFDEDEEEBDDBBDDDDDDCCCCCCCCEFEDDDCDCDEEEEEEEEEEFEEEEEEDDEEDDEE"); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); // Undeclared exception! try { frame0.execute(43, (-198), classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 99 /* * 2 covered goals: * Goal 1. wheel.asm.Frame.get(I)I: I7 Branch 1 IFNULL L521 - true * Goal 2. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 110 TABLESWITCH L829 Case 25 - true */ @Test public void test099() throws Throwable { ClassWriter classWriter0 = new ClassWriter(25); assertNotNull(classWriter0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Frame frame0 = new Frame(); assertNotNull(frame0); // Undeclared exception! try { frame0.execute(25, 25, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 100 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 212 TABLESWITCH L829 Case 127 - true */ @Test public void test100() throws Throwable { ClassWriter classWriter0 = new ClassWriter(127); assertNotNull(classWriter0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Frame frame0 = new Frame(); assertNotNull(frame0); // Undeclared exception! try { frame0.execute(127, 127, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 101 /* * 2 covered goals: * Goal 1. wheel.asm.Frame.type(Lwheel/asm/ClassWriter;Ljava/lang/String;)I: I28 Branch 23 TABLESWITCH L610 Case 76 - true * Goal 2. wheel.asm.Frame.initInputFrame(Lwheel/asm/ClassWriter;I[Lwheel/asm/Type;I)V: I24 Branch 79 IFNE L795 - true */ @Test public void test101() throws Throwable { Frame frame0 = new Frame(); assertNotNull(frame0); ClassWriter classWriter0 = new ClassWriter(10); assertNotNull(classWriter0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Type type0 = Type.getObjectType("JSR/RE are not supported with computeFraes option"); assertNotNull(type0); assertEquals(0, type0.VOID); assertEquals(9, type0.ARRAY); assertEquals(2, type0.CHAR); assertEquals(3, type0.BYTE); assertEquals(6, type0.FLOAT); assertEquals(8, type0.DOUBLE); assertEquals(7, type0.LONG); assertEquals(10, type0.OBJECT); assertEquals(5, type0.INT); assertEquals(4, type0.SHORT); assertEquals(1, type0.BOOLEAN); assertEquals(1, type0.getSize()); assertEquals(1, type0.getDimensions()); assertEquals(10, type0.getSort()); Type[] typeArray0 = new Type[8]; typeArray0[0] = type0; // Undeclared exception! try { frame0.initInputFrame(classWriter0, 10, typeArray0, 10); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 102 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 117 TABLESWITCH L829 Case 32 - true */ @Test public void test102() throws Throwable { ClassWriter classWriter0 = new ClassWriter(88); assertNotNull(classWriter0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Frame frame0 = new Frame(); assertNotNull(frame0); // Undeclared exception! try { frame0.execute(32, 32, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 103 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 184 TABLESWITCH L829 Case 99 - true */ @Test public void test103() throws Throwable { ClassWriter classWriter0 = new ClassWriter(99); assertNotNull(classWriter0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Frame frame0 = new Frame(); assertNotNull(frame0); // Undeclared exception! try { frame0.execute(99, 99, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 104 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 206 TABLESWITCH L829 Case 121 - true */ @Test public void test104() throws Throwable { Frame frame0 = new Frame(); assertNotNull(frame0); ClassWriter classWriter0 = new ClassWriter(71); assertNotNull(classWriter0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); // Undeclared exception! try { frame0.execute(121, 121, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 105 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 234 TABLESWITCH L829 Case 149 - true */ @Test public void test105() throws Throwable { Frame frame0 = new Frame(); assertNotNull(frame0); ClassWriter classWriter0 = new ClassWriter(112); assertNotNull(classWriter0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); // Undeclared exception! try { frame0.execute(149, 112, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 106 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 160 TABLESWITCH L829 Case 75 - true */ @Test public void test106() throws Throwable { ClassWriter classWriter0 = new ClassWriter(44); assertNotNull(classWriter0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Frame frame0 = new Frame(); assertNotNull(frame0); // Undeclared exception! try { frame0.execute(75, 44, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 107 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 145 TABLESWITCH L829 Case 60 - true */ @Test public void test107() throws Throwable { ClassWriter classWriter0 = new ClassWriter(60); assertNotNull(classWriter0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Frame frame0 = new Frame(); assertNotNull(frame0); Item item0 = classWriter0.key2; assertNotNull(item0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); // Undeclared exception! try { frame0.execute(60, 60, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 108 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 203 TABLESWITCH L829 Case 118 - true */ @Test public void test108() throws Throwable { ClassWriter classWriter0 = new ClassWriter(118); assertNotNull(classWriter0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Frame frame0 = new Frame(); assertNotNull(frame0); frame0.execute(118, 118, classWriter0, item0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); } //Test case number: 109 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 192 TABLESWITCH L829 Case 107 - true */ @Test public void test109() throws Throwable { ClassWriter classWriter0 = new ClassWriter(44); assertNotNull(classWriter0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Frame frame0 = new Frame(); assertNotNull(frame0); // Undeclared exception! try { frame0.execute(107, 44, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 110 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 125 TABLESWITCH L829 Case 40 - true */ @Test public void test110() throws Throwable { Frame frame0 = new Frame(); assertNotNull(frame0); ClassWriter classWriter0 = new ClassWriter(40); assertNotNull(classWriter0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); // Undeclared exception! try { frame0.execute(40, 40, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 111 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 271 TABLESWITCH L829 Case 186 - true */ @Test public void test111() throws Throwable { Frame frame0 = new Frame(); assertNotNull(frame0); ClassWriter classWriter0 = new ClassWriter((-3612)); assertNotNull(classWriter0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); // Undeclared exception! try { frame0.execute(186, (-3612), classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 112 /* * 10 covered goals: * Goal 1. wheel.asm.Frame.merge(Lwheel/asm/ClassWriter;Lwheel/asm/Frame;I)Z: I23 Branch 311 IFNONNULL L1253 - false * Goal 2. wheel.asm.Frame.merge(Lwheel/asm/ClassWriter;Lwheel/asm/Frame;I)Z: I44 Branch 312 IF_ICMPGE L1258 - true * Goal 3. wheel.asm.Frame.merge(Lwheel/asm/ClassWriter;Lwheel/asm/Frame;I)Z: I44 Branch 312 IF_ICMPGE L1258 - false * Goal 4. wheel.asm.Frame.merge(Lwheel/asm/ClassWriter;Lwheel/asm/Frame;I)Z: I52 Branch 313 IFNULL L1259 - true * Goal 5. wheel.asm.Frame.merge(Lwheel/asm/ClassWriter;Lwheel/asm/Frame;I)Z: I172 Branch 318 IFNULL L1277 - true * Goal 6. wheel.asm.Frame.merge(Lwheel/asm/ClassWriter;Lwheel/asm/Frame;I)Z: I204 Branch 319 IFLE L1283 - true * Goal 7. wheel.asm.Frame.merge(Lwheel/asm/ClassWriter;I[II)Z: I13 Branch 329 IF_ICMPNE L1347 - true * Goal 8. wheel.asm.Frame.merge(Lwheel/asm/ClassWriter;I[II)Z: I13 Branch 329 IF_ICMPNE L1347 - false * Goal 9. wheel.asm.Frame.merge(Lwheel/asm/ClassWriter;I[II)Z: I27 Branch 330 IF_ICMPNE L1351 - true * Goal 10. wheel.asm.Frame.merge(Lwheel/asm/ClassWriter;I[II)Z: I50 Branch 332 IFNE L1357 - false */ @Test public void test112() throws Throwable { Frame frame0 = new Frame(); assertNotNull(frame0); int[] intArray0 = new int[6]; intArray0[0] = 1493; frame0.inputLocals = intArray0; frame0.inputStack = intArray0; ClassWriter classWriter0 = new ClassWriter(0); assertNotNull(classWriter0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Frame frame1 = new Frame(); assertNotNull(frame1); assertNotSame(frame1, frame0); assertFalse(frame1.equals((Object)frame0)); // Undeclared exception! try { boolean boolean0 = frame0.merge(classWriter0, frame1, 0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 113 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 259 TABLESWITCH L829 Case 174 - true */ @Test public void test113() throws Throwable { ClassWriter classWriter0 = new ClassWriter(174); assertNotNull(classWriter0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Frame frame0 = new Frame(); assertNotNull(frame0); // Undeclared exception! try { frame0.execute(174, 174, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 114 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 222 TABLESWITCH L829 Case 137 - true */ @Test public void test114() throws Throwable { Frame frame0 = new Frame(); assertNotNull(frame0); ClassWriter classWriter0 = new ClassWriter(10); assertNotNull(classWriter0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Item item0 = classWriter0.newFloat(10); assertNotNull(item0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); // Undeclared exception! try { frame0.execute(137, 10, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 115 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 99 TABLESWITCH L829 Case 14 - true */ @Test public void test115() throws Throwable { ClassWriter classWriter0 = new ClassWriter(87); assertNotNull(classWriter0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Frame frame0 = new Frame(); assertNotNull(frame0); // Undeclared exception! try { frame0.execute(14, 87, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 116 /* * 3 covered goals: * Goal 1. wheel.asm.Frame.push(I)V: I86 Branch 8 IF_ICMPLE L577 - true * Goal 2. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 130 TABLESWITCH L829 Case 45 - true * Goal 3. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 135 TABLESWITCH L829 Case 50 - true */ @Test public void test116() throws Throwable { Frame frame0 = new Frame(); assertNotNull(frame0); ClassWriter classWriter0 = new ClassWriter(50); assertNotNull(classWriter0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Frame frame1 = new Frame(); assertNotNull(frame1); assertNotSame(frame1, frame0); assertFalse(frame1.equals((Object)frame0)); Label label0 = new Label(); assertNotNull(label0); frame1.owner = label0; frame1.execute(50, 50, classWriter0, item0); assertNotSame(frame1, frame0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); assertFalse(frame1.equals((Object)frame0)); // Undeclared exception! try { frame0.execute(45, 179, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 117 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 127 TABLESWITCH L829 Case 42 - true */ @Test public void test117() throws Throwable { ClassWriter classWriter0 = new ClassWriter(42); assertNotNull(classWriter0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Frame frame0 = new Frame(); assertNotNull(frame0); // Undeclared exception! try { frame0.execute(42, 42, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 118 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 191 TABLESWITCH L829 Case 106 - true */ @Test public void test118() throws Throwable { ClassWriter classWriter0 = new ClassWriter(106); assertNotNull(classWriter0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Frame frame0 = new Frame(); assertNotNull(frame0); // Undeclared exception! try { frame0.execute(106, 106, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 119 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 141 TABLESWITCH L829 Case 56 - true */ @Test public void test119() throws Throwable { Frame frame0 = new Frame(); assertNotNull(frame0); ClassWriter classWriter0 = new ClassWriter(57); assertNotNull(classWriter0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Item item0 = classWriter0.key2; assertNotNull(item0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); // Undeclared exception! try { frame0.execute(56, 57, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 120 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 178 TABLESWITCH L829 Case 93 - true */ @Test public void test120() throws Throwable { ClassWriter classWriter0 = new ClassWriter(93); assertNotNull(classWriter0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Frame frame0 = new Frame(); assertNotNull(frame0); // Undeclared exception! try { frame0.execute(93, 93, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 121 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 216 TABLESWITCH L829 Case 131 - true */ @Test public void test121() throws Throwable { ClassWriter classWriter0 = new ClassWriter(108); assertNotNull(classWriter0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Frame frame0 = new Frame(); assertNotNull(frame0); // Undeclared exception! try { frame0.execute(131, 108, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 122 /* * 2 covered goals: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 85 TABLESWITCH L829 Case 0 - true * Goal 2. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 252 TABLESWITCH L829 Case 167 - true */ @Test public void test122() throws Throwable { ClassWriter classWriter0 = new ClassWriter(167); assertNotNull(classWriter0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Frame frame0 = new Frame(); assertNotNull(frame0); Item item0 = classWriter0.newFieldItem("EFFFFFFFFGGFFFGGFFFEEFGFGFEEEEEEEEEEEEEEEEEEEEDEDEDDDDDCDCDEEEEEEEEEEEEEEEEEEEEBABABBBBDCFFFGGGEDCDCDCDCDCDCDCDCDCDCEEEEDDDDDDDCDCDCEFEFDDEEFFDEDEEEBDDBBDDDDDDCCCCCCCCEFEDDDCDCDEEEEEEEEEEFEEEEEEDDEEDDEE", "EFFFFFFFFGGFFFGGFFFEEFGFGFEEEEEEEEEEEEEEEEEEEEDEDEDDDDDCDCDEEEEEEEEEEEEEEEEEEEEBABABBBBDCFFFGGGEDCDCDCDCDCDCDCDCDCDCEEEEDDDDDDDCDCDCEFEFDDEEFFDEDEEEBDDBBDDDDDDCCCCCCCCEFEDDDCDCDEEEEEEEEEEFEEEEEEDDEEDDEE", "EFFFFFFFFGGFFFGGFFFEEFGFGFEEEEEEEEEEEEEEEEEEEEDEDEDDDDDCDCDEEEEEEEEEEEEEEEEEEEEBABABBBBDCFFFGGGEDCDCDCDCDCDCDCDCDCDCEEEEDDDDDDDCDCDCEFEFDDEEFFDEDEEEBDDBBDDDDDDCCCCCCCCEFEDDDCDCDEEEEEEEEEEFEEEEEEDDEEDDEE"); assertNotNull(item0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); frame0.execute(167, 44, classWriter0, item0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); frame0.execute(0, 167, classWriter0, item0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); } //Test case number: 123 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 111 TABLESWITCH L829 Case 26 - true */ @Test public void test123() throws Throwable { ClassWriter classWriter0 = new ClassWriter(62); assertNotNull(classWriter0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Item item0 = classWriter0.key2; assertNotNull(item0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Frame frame0 = new Frame(); assertNotNull(frame0); // Undeclared exception! try { frame0.execute(26, 62, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 124 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 166 TABLESWITCH L829 Case 81 - true */ @Test public void test124() throws Throwable { ClassWriter classWriter0 = new ClassWriter(81); assertNotNull(classWriter0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Frame frame0 = new Frame(); assertNotNull(frame0); // Undeclared exception! try { frame0.execute(81, 81, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 125 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 154 TABLESWITCH L829 Case 69 - true */ @Test public void test125() throws Throwable { ClassWriter classWriter0 = new ClassWriter(646); assertNotNull(classWriter0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Frame frame0 = new Frame(); assertNotNull(frame0); // Undeclared exception! try { frame0.execute(69, 646, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 126 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 177 TABLESWITCH L829 Case 92 - true */ @Test public void test126() throws Throwable { Frame frame0 = new Frame(); assertNotNull(frame0); ClassWriter classWriter0 = new ClassWriter(92); assertNotNull(classWriter0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); // Undeclared exception! try { frame0.execute(92, 92, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 127 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 220 TABLESWITCH L829 Case 135 - true */ @Test public void test127() throws Throwable { ClassWriter classWriter0 = new ClassWriter(135); assertNotNull(classWriter0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Frame frame0 = new Frame(); assertNotNull(frame0); // Undeclared exception! try { frame0.execute(135, 135, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 128 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 109 TABLESWITCH L829 Case 24 - true */ @Test public void test128() throws Throwable { Frame frame0 = new Frame(); assertNotNull(frame0); ClassWriter classWriter0 = new ClassWriter(128); assertNotNull(classWriter0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); // Undeclared exception! try { frame0.execute(24, 128, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 129 /* * 3 covered goals: * Goal 1. wheel.asm.Frame.pop(Ljava/lang/String;)V: I13 Branch 68 IF_ICMPNE L712 - true * Goal 2. wheel.asm.Frame.pop(Ljava/lang/String;)V: I35 Branch 69 IF_ICMPEQ L714 - false * Goal 3. wheel.asm.Frame.pop(Ljava/lang/String;)V: I41 Branch 70 IF_ICMPNE L714 - true */ @Test public void test129() throws Throwable { ClassWriter classWriter0 = new ClassWriter(59); assertNotNull(classWriter0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Item item0 = classWriter0.newFieldItem("m>", "m>", "m>"); assertNotNull(item0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Frame frame0 = new Frame(); assertNotNull(frame0); // Undeclared exception! try { frame0.execute(184, 59, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 130 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 190 TABLESWITCH L829 Case 105 - true */ @Test public void test130() throws Throwable { ClassWriter classWriter0 = new ClassWriter(68); assertNotNull(classWriter0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Frame frame0 = new Frame(); assertNotNull(frame0); // Undeclared exception! try { frame0.execute(105, 105, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 131 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 202 TABLESWITCH L829 Case 117 - true */ @Test public void test131() throws Throwable { ClassWriter classWriter0 = new ClassWriter(117); assertNotNull(classWriter0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Frame frame0 = new Frame(); assertNotNull(frame0); frame0.execute(117, 117, classWriter0, item0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); } //Test case number: 132 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 91 TABLESWITCH L829 Case 6 - true */ @Test public void test132() throws Throwable { ClassWriter classWriter0 = new ClassWriter(6); assertNotNull(classWriter0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Frame frame0 = new Frame(); assertNotNull(frame0); // Undeclared exception! try { frame0.execute(6, 6, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 133 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 237 TABLESWITCH L829 Case 152 - true */ @Test public void test133() throws Throwable { Frame frame0 = new Frame(); assertNotNull(frame0); ClassWriter classWriter0 = new ClassWriter(152); assertNotNull(classWriter0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); // Undeclared exception! try { frame0.execute(152, 152, classWriter0, (Item) null); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 134 /* * 7 covered goals: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 103 TABLESWITCH L829 Case 18 - true * Goal 2. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I79 Branch 286 TABLESWITCH L875 Case 3 - false * Goal 3. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I79 Branch 287 TABLESWITCH L875 Case 4 - false * Goal 4. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I79 Branch 288 TABLESWITCH L875 Case 5 - false * Goal 5. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I79 Branch 289 TABLESWITCH L875 Case 6 - false * Goal 6. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I79 Branch 290 TABLESWITCH L875 Case 7 - false * Goal 7. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I79 Branch 291 TABLESWITCH L875 Default-Case - true */ @Test public void test134() throws Throwable { ClassWriter classWriter0 = new ClassWriter(1); assertNotNull(classWriter0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Frame frame0 = new Frame(); assertNotNull(frame0); // Undeclared exception! try { frame0.execute(18, 1, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 135 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 266 TABLESWITCH L829 Case 181 - true */ @Test public void test135() throws Throwable { Frame frame0 = new Frame(); assertNotNull(frame0); ClassWriter classWriter0 = new ClassWriter(181); assertNotNull(classWriter0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); // Undeclared exception! try { frame0.execute(181, 181, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 136 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 241 TABLESWITCH L829 Case 156 - true */ @Test public void test136() throws Throwable { ClassWriter classWriter0 = new ClassWriter(108); assertNotNull(classWriter0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Frame frame0 = new Frame(); assertNotNull(frame0); // Undeclared exception! try { frame0.execute(156, 108, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 137 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 224 TABLESWITCH L829 Case 139 - true */ @Test public void test137() throws Throwable { ClassWriter classWriter0 = new ClassWriter(44); assertNotNull(classWriter0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Frame frame0 = new Frame(); assertNotNull(frame0); // Undeclared exception! try { frame0.execute(139, 139, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 138 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 180 TABLESWITCH L829 Case 95 - true */ @Test public void test138() throws Throwable { Frame frame0 = new Frame(); assertNotNull(frame0); ClassWriter classWriter0 = new ClassWriter(95); assertNotNull(classWriter0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); // Undeclared exception! try { frame0.execute(95, 95, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 139 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 281 TABLESWITCH L829 Case 196 - true */ @Test public void test139() throws Throwable { Frame frame0 = new Frame(); assertNotNull(frame0); ClassWriter classWriter0 = new ClassWriter(57); assertNotNull(classWriter0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Item item0 = classWriter0.key2; assertNotNull(item0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); // Undeclared exception! try { frame0.execute(196, 57, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 140 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 161 TABLESWITCH L829 Case 76 - true */ @Test public void test140() throws Throwable { ClassWriter classWriter0 = new ClassWriter((-3636)); assertNotNull(classWriter0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Frame frame0 = new Frame(); assertNotNull(frame0); // Undeclared exception! try { frame0.execute(76, (-3636), classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 141 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 155 TABLESWITCH L829 Case 70 - true */ @Test public void test141() throws Throwable { ClassWriter classWriter0 = new ClassWriter(70); assertNotNull(classWriter0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Frame frame0 = new Frame(); assertNotNull(frame0); // Undeclared exception! try { frame0.execute(70, 70, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 142 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 88 TABLESWITCH L829 Case 3 - true */ @Test public void test142() throws Throwable { ClassWriter classWriter0 = new ClassWriter(3); assertNotNull(classWriter0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Frame frame0 = new Frame(); assertNotNull(frame0); // Undeclared exception! try { frame0.execute(3, 3, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 143 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.type(Lwheel/asm/ClassWriter;Ljava/lang/String;)I: I97 Branch 41 TABLESWITCH L637 Case 67 - true */ @Test public void test143() throws Throwable { Frame frame0 = new Frame(); assertNotNull(frame0); ClassWriter classWriter0 = new ClassWriter((-2845)); assertNotNull(classWriter0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Item item1 = classWriter0.newFieldItem("yC_pn{KoTaJg9", "yC_pn{KoTaJg9", "yC_pn{KoTaJg9"); assertNotNull(item1); assertNotSame(item1, item0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); assertFalse(item1.equals((Object)item0)); // Undeclared exception! try { frame0.execute((-2845), (-2845), classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 144 /* * 2 covered goals: * Goal 1. wheel.asm.Frame.type(Lwheel/asm/ClassWriter;Ljava/lang/String;)I: I28 Branch 19 TABLESWITCH L610 Case 72 - true * Goal 2. wheel.asm.Frame.type(Lwheel/asm/ClassWriter;Ljava/lang/String;)I: I97 Branch 45 TABLESWITCH L637 Case 71 - true */ @Test public void test144() throws Throwable { Frame frame0 = new Frame(); assertNotNull(frame0); boolean boolean0 = FileSystemHandling.appendLineToFile((EvoSuiteFile) null, "HG%'-[S^XQuO~(;Hheq"); assertFalse(boolean0); ClassWriter classWriter0 = new ClassWriter(16777221); assertNotNull(classWriter0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Item item0 = classWriter0.newMethodItem("HG%'-[S^XQuO~(;Hheq", "HG%'-[S^XQuO~(;Hheq", "HG%'-[S^XQuO~(;Hheq", false); assertNotNull(item0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); // Undeclared exception! try { frame0.execute(16777221, (-459), classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 145 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 142 TABLESWITCH L829 Case 57 - true */ @Test public void test145() throws Throwable { Frame frame0 = new Frame(); assertNotNull(frame0); ClassWriter classWriter0 = new ClassWriter(57); assertNotNull(classWriter0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Item item0 = classWriter0.key3; assertNotNull(item0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); // Undeclared exception! try { frame0.execute(57, 57, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 146 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 105 TABLESWITCH L829 Case 20 - true */ @Test public void test146() throws Throwable { ClassWriter classWriter0 = new ClassWriter(14); assertNotNull(classWriter0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Frame frame0 = new Frame(); assertNotNull(frame0); // Undeclared exception! try { frame0.execute(20, 14, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 147 /* * 2 covered goals: * Goal 1. wheel.asm.Frame.type(Lwheel/asm/ClassWriter;Ljava/lang/String;)I: I97 Branch 47 TABLESWITCH L637 Case 73 - false * Goal 2. wheel.asm.Frame.type(Lwheel/asm/ClassWriter;Ljava/lang/String;)I: I97 Branch 53 TABLESWITCH L637 Case 79 - true */ @Test public void test147() throws Throwable { Frame frame0 = new Frame(); assertNotNull(frame0); ClassWriter classWriter0 = new ClassWriter(110); assertNotNull(classWriter0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); classWriter0.visitOuterClass("Alp", "hOIm;,`86Igv!{", "hOIm;,`86Igv!{"); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); // Undeclared exception! try { frame0.execute((-1469), (-1469), classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 148 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 158 TABLESWITCH L829 Case 73 - true */ @Test public void test148() throws Throwable { ClassWriter classWriter0 = new ClassWriter(73); assertNotNull(classWriter0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Frame frame0 = new Frame(); assertNotNull(frame0); // Undeclared exception! try { frame0.execute(73, 73, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 149 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 87 TABLESWITCH L829 Case 2 - true */ @Test public void test149() throws Throwable { ClassWriter classWriter0 = new ClassWriter(58); assertNotNull(classWriter0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Frame frame0 = new Frame(); assertNotNull(frame0); // Undeclared exception! try { frame0.execute(2, 58, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 150 /* * 31 covered goals: * Goal 1. wheel.asm.Frame.push(I)V: I28 Branch 7 IF_ICMPLT L568 - false * Goal 2. wheel.asm.Frame.push(Lwheel/asm/ClassWriter;Ljava/lang/String;)V: I12 Branch 9 IFEQ L592 - false * Goal 3. wheel.asm.Frame.type(Lwheel/asm/ClassWriter;Ljava/lang/String;)I: I28 Branch 38 TABLESWITCH L610 Default-Case - true * Goal 4. wheel.asm.Frame.type(Lwheel/asm/ClassWriter;Ljava/lang/String;)I: I84 Branch 39 IF_ICMPNE L634 - true * Goal 5. wheel.asm.Frame.type(Lwheel/asm/ClassWriter;Ljava/lang/String;)I: I97 Branch 40 TABLESWITCH L637 Case 66 - false * Goal 6. wheel.asm.Frame.type(Lwheel/asm/ClassWriter;Ljava/lang/String;)I: I97 Branch 41 TABLESWITCH L637 Case 67 - false * Goal 7. wheel.asm.Frame.type(Lwheel/asm/ClassWriter;Ljava/lang/String;)I: I97 Branch 42 TABLESWITCH L637 Case 68 - false * Goal 8. wheel.asm.Frame.type(Lwheel/asm/ClassWriter;Ljava/lang/String;)I: I97 Branch 43 TABLESWITCH L637 Case 69 - false * Goal 9. wheel.asm.Frame.type(Lwheel/asm/ClassWriter;Ljava/lang/String;)I: I97 Branch 44 TABLESWITCH L637 Case 70 - false * Goal 10. wheel.asm.Frame.type(Lwheel/asm/ClassWriter;Ljava/lang/String;)I: I97 Branch 45 TABLESWITCH L637 Case 71 - false * Goal 11. wheel.asm.Frame.type(Lwheel/asm/ClassWriter;Ljava/lang/String;)I: I97 Branch 46 TABLESWITCH L637 Case 72 - false * Goal 12. wheel.asm.Frame.type(Lwheel/asm/ClassWriter;Ljava/lang/String;)I: I97 Branch 47 TABLESWITCH L637 Case 73 - true * Goal 13. wheel.asm.Frame.type(Lwheel/asm/ClassWriter;Ljava/lang/String;)I: I97 Branch 48 TABLESWITCH L637 Case 74 - false * Goal 14. wheel.asm.Frame.type(Lwheel/asm/ClassWriter;Ljava/lang/String;)I: I97 Branch 49 TABLESWITCH L637 Case 75 - false * Goal 15. wheel.asm.Frame.type(Lwheel/asm/ClassWriter;Ljava/lang/String;)I: I97 Branch 50 TABLESWITCH L637 Case 76 - false * Goal 16. wheel.asm.Frame.type(Lwheel/asm/ClassWriter;Ljava/lang/String;)I: I97 Branch 51 TABLESWITCH L637 Case 77 - false * Goal 17. wheel.asm.Frame.type(Lwheel/asm/ClassWriter;Ljava/lang/String;)I: I97 Branch 52 TABLESWITCH L637 Case 78 - false * Goal 18. wheel.asm.Frame.type(Lwheel/asm/ClassWriter;Ljava/lang/String;)I: I97 Branch 53 TABLESWITCH L637 Case 79 - false * Goal 19. wheel.asm.Frame.type(Lwheel/asm/ClassWriter;Ljava/lang/String;)I: I97 Branch 54 TABLESWITCH L637 Case 80 - false * Goal 20. wheel.asm.Frame.type(Lwheel/asm/ClassWriter;Ljava/lang/String;)I: I97 Branch 55 TABLESWITCH L637 Case 81 - false * Goal 21. wheel.asm.Frame.type(Lwheel/asm/ClassWriter;Ljava/lang/String;)I: I97 Branch 56 TABLESWITCH L637 Case 82 - false * Goal 22. wheel.asm.Frame.type(Lwheel/asm/ClassWriter;Ljava/lang/String;)I: I97 Branch 57 TABLESWITCH L637 Case 83 - false * Goal 23. wheel.asm.Frame.type(Lwheel/asm/ClassWriter;Ljava/lang/String;)I: I97 Branch 58 TABLESWITCH L637 Case 84 - false * Goal 24. wheel.asm.Frame.type(Lwheel/asm/ClassWriter;Ljava/lang/String;)I: I97 Branch 59 TABLESWITCH L637 Case 85 - false * Goal 25. wheel.asm.Frame.type(Lwheel/asm/ClassWriter;Ljava/lang/String;)I: I97 Branch 60 TABLESWITCH L637 Case 86 - false * Goal 26. wheel.asm.Frame.type(Lwheel/asm/ClassWriter;Ljava/lang/String;)I: I97 Branch 61 TABLESWITCH L637 Case 87 - false * Goal 27. wheel.asm.Frame.type(Lwheel/asm/ClassWriter;Ljava/lang/String;)I: I97 Branch 62 TABLESWITCH L637 Case 88 - false * Goal 28. wheel.asm.Frame.type(Lwheel/asm/ClassWriter;Ljava/lang/String;)I: I97 Branch 63 TABLESWITCH L637 Case 89 - false * Goal 29. wheel.asm.Frame.type(Lwheel/asm/ClassWriter;Ljava/lang/String;)I: I97 Branch 64 TABLESWITCH L637 Case 90 - false * Goal 30. wheel.asm.Frame.type(Lwheel/asm/ClassWriter;Ljava/lang/String;)I: I97 Branch 65 TABLESWITCH L637 Default-Case - false * Goal 31. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 147 TABLESWITCH L829 Case 62 - true */ @Test public void test150() throws Throwable { ClassWriter classWriter0 = new ClassWriter(62); assertNotNull(classWriter0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); int int0 = classWriter0.newClass("`I?Kp,y#'OzU'j-j5=j"); assertEquals(2, int0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Frame frame0 = new Frame(); assertNotNull(frame0); // Undeclared exception! try { frame0.execute(62, (-1043), classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 151 /* * 2 covered goals: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 201 TABLESWITCH L829 Case 116 - true * Goal 2. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 285 TABLESWITCH L829 Default-Case - true */ @Test public void test151() throws Throwable { Frame frame0 = new Frame(); assertNotNull(frame0); ClassWriter classWriter0 = new ClassWriter(116); assertNotNull(classWriter0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Item item0 = classWriter0.key2; assertNotNull(item0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); frame0.execute(116, 16777220, classWriter0, item0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); // Undeclared exception! try { frame0.execute(16777220, 16777220, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 152 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 156 TABLESWITCH L829 Case 71 - true */ @Test public void test152() throws Throwable { ClassWriter classWriter0 = new ClassWriter(71); assertNotNull(classWriter0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Frame frame0 = new Frame(); assertNotNull(frame0); // Undeclared exception! try { frame0.execute(71, 71, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 153 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 148 TABLESWITCH L829 Case 63 - true */ @Test public void test153() throws Throwable { ClassWriter classWriter0 = new ClassWriter(63); assertNotNull(classWriter0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Frame frame0 = new Frame(); assertNotNull(frame0); // Undeclared exception! try { frame0.execute(63, 63, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 154 /* * 2 covered goals: * Goal 1. wheel.asm.Frame.pop(I)V: I8 Branch 67 IF_ICMPLT L692 - false * Goal 2. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 123 TABLESWITCH L829 Case 38 - true */ @Test public void test154() throws Throwable { Frame frame0 = new Frame(); assertNotNull(frame0); ClassWriter classWriter0 = new ClassWriter((-2635)); assertNotNull(classWriter0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); // Undeclared exception! try { frame0.execute(38, (-2635), classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 155 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 89 TABLESWITCH L829 Case 4 - true */ @Test public void test155() throws Throwable { Frame frame0 = new Frame(); assertNotNull(frame0); ClassWriter classWriter0 = new ClassWriter(56); assertNotNull(classWriter0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); // Undeclared exception! try { frame0.execute(4, 4, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 156 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 268 TABLESWITCH L829 Case 183 - true */ @Test public void test156() throws Throwable { Frame frame0 = new Frame(); assertNotNull(frame0); ClassWriter classWriter0 = new ClassWriter(183); assertNotNull(classWriter0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); // Undeclared exception! try { frame0.execute(183, 183, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 157 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 265 TABLESWITCH L829 Case 180 - true */ @Test public void test157() throws Throwable { Frame frame0 = new Frame(); assertNotNull(frame0); ClassWriter classWriter0 = new ClassWriter(180); assertNotNull(classWriter0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); // Undeclared exception! try { frame0.execute(180, (-3096), classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 158 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 278 TABLESWITCH L829 Case 193 - true */ @Test public void test158() throws Throwable { Frame frame0 = new Frame(); assertNotNull(frame0); ClassWriter classWriter0 = new ClassWriter(57); assertNotNull(classWriter0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Item item0 = classWriter0.key3; assertNotNull(item0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); // Undeclared exception! try { frame0.execute(193, 57, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 159 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 243 TABLESWITCH L829 Case 158 - true */ @Test public void test159() throws Throwable { Frame frame0 = new Frame(); assertNotNull(frame0); ClassWriter classWriter0 = new ClassWriter(158); assertNotNull(classWriter0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); // Undeclared exception! try { frame0.execute(158, 158, classWriter0, (Item) null); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 160 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 90 TABLESWITCH L829 Case 5 - true */ @Test public void test160() throws Throwable { ClassWriter classWriter0 = new ClassWriter(5); assertNotNull(classWriter0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Frame frame0 = new Frame(); assertNotNull(frame0); // Undeclared exception! try { frame0.execute(5, 5, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 161 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 227 TABLESWITCH L829 Case 142 - true */ @Test public void test161() throws Throwable { Frame frame0 = new Frame(); assertNotNull(frame0); ClassWriter classWriter0 = new ClassWriter(146); assertNotNull(classWriter0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); // Undeclared exception! try { frame0.execute(142, 146, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 162 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 118 TABLESWITCH L829 Case 33 - true */ @Test public void test162() throws Throwable { ClassWriter classWriter0 = new ClassWriter(58); assertNotNull(classWriter0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Frame frame0 = new Frame(); assertNotNull(frame0); // Undeclared exception! try { frame0.execute(33, 58, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 163 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 251 TABLESWITCH L829 Case 166 - true */ @Test public void test163() throws Throwable { ClassWriter classWriter0 = new ClassWriter(166); assertNotNull(classWriter0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Frame frame0 = new Frame(); assertNotNull(frame0); // Undeclared exception! try { frame0.execute(166, 166, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 164 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 272 TABLESWITCH L829 Case 187 - true */ @Test public void test164() throws Throwable { ClassWriter classWriter0 = new ClassWriter(75); assertNotNull(classWriter0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Frame frame0 = new Frame(); assertNotNull(frame0); // Undeclared exception! try { frame0.execute(187, 187, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 165 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 257 TABLESWITCH L829 Case 172 - true */ @Test public void test165() throws Throwable { Frame frame0 = new Frame(); assertNotNull(frame0); ClassWriter classWriter0 = new ClassWriter(149); assertNotNull(classWriter0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); // Undeclared exception! try { frame0.execute(172, 172, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 166 /* * 38 covered goals: * Goal 1. wheel.asm.Frame.type(Lwheel/asm/ClassWriter;Ljava/lang/String;)I: I9 Branch 12 IF_ICMPNE L609 - true * Goal 2. wheel.asm.Frame.type(Lwheel/asm/ClassWriter;Ljava/lang/String;)I: I28 Branch 13 TABLESWITCH L610 Case 66 - false * Goal 3. wheel.asm.Frame.type(Lwheel/asm/ClassWriter;Ljava/lang/String;)I: I28 Branch 14 TABLESWITCH L610 Case 67 - false * Goal 4. wheel.asm.Frame.type(Lwheel/asm/ClassWriter;Ljava/lang/String;)I: I28 Branch 15 TABLESWITCH L610 Case 68 - false * Goal 5. wheel.asm.Frame.type(Lwheel/asm/ClassWriter;Ljava/lang/String;)I: I28 Branch 16 TABLESWITCH L610 Case 69 - false * Goal 6. wheel.asm.Frame.type(Lwheel/asm/ClassWriter;Ljava/lang/String;)I: I28 Branch 17 TABLESWITCH L610 Case 70 - false * Goal 7. wheel.asm.Frame.type(Lwheel/asm/ClassWriter;Ljava/lang/String;)I: I28 Branch 18 TABLESWITCH L610 Case 71 - false * Goal 8. wheel.asm.Frame.type(Lwheel/asm/ClassWriter;Ljava/lang/String;)I: I28 Branch 19 TABLESWITCH L610 Case 72 - false * Goal 9. wheel.asm.Frame.type(Lwheel/asm/ClassWriter;Ljava/lang/String;)I: I28 Branch 20 TABLESWITCH L610 Case 73 - true * Goal 10. wheel.asm.Frame.type(Lwheel/asm/ClassWriter;Ljava/lang/String;)I: I28 Branch 20 TABLESWITCH L610 Case 73 - false * Goal 11. wheel.asm.Frame.type(Lwheel/asm/ClassWriter;Ljava/lang/String;)I: I28 Branch 21 TABLESWITCH L610 Case 74 - false * Goal 12. wheel.asm.Frame.type(Lwheel/asm/ClassWriter;Ljava/lang/String;)I: I28 Branch 22 TABLESWITCH L610 Case 75 - false * Goal 13. wheel.asm.Frame.type(Lwheel/asm/ClassWriter;Ljava/lang/String;)I: I28 Branch 23 TABLESWITCH L610 Case 76 - false * Goal 14. wheel.asm.Frame.type(Lwheel/asm/ClassWriter;Ljava/lang/String;)I: I28 Branch 24 TABLESWITCH L610 Case 77 - false * Goal 15. wheel.asm.Frame.type(Lwheel/asm/ClassWriter;Ljava/lang/String;)I: I28 Branch 25 TABLESWITCH L610 Case 78 - false * Goal 16. wheel.asm.Frame.type(Lwheel/asm/ClassWriter;Ljava/lang/String;)I: I28 Branch 26 TABLESWITCH L610 Case 79 - false * Goal 17. wheel.asm.Frame.type(Lwheel/asm/ClassWriter;Ljava/lang/String;)I: I28 Branch 27 TABLESWITCH L610 Case 80 - false * Goal 18. wheel.asm.Frame.type(Lwheel/asm/ClassWriter;Ljava/lang/String;)I: I28 Branch 28 TABLESWITCH L610 Case 81 - false * Goal 19. wheel.asm.Frame.type(Lwheel/asm/ClassWriter;Ljava/lang/String;)I: I28 Branch 29 TABLESWITCH L610 Case 82 - false * Goal 20. wheel.asm.Frame.type(Lwheel/asm/ClassWriter;Ljava/lang/String;)I: I28 Branch 30 TABLESWITCH L610 Case 83 - false * Goal 21. wheel.asm.Frame.type(Lwheel/asm/ClassWriter;Ljava/lang/String;)I: I28 Branch 31 TABLESWITCH L610 Case 84 - false * Goal 22. wheel.asm.Frame.type(Lwheel/asm/ClassWriter;Ljava/lang/String;)I: I28 Branch 32 TABLESWITCH L610 Case 85 - false * Goal 23. wheel.asm.Frame.type(Lwheel/asm/ClassWriter;Ljava/lang/String;)I: I28 Branch 33 TABLESWITCH L610 Case 86 - true * Goal 24. wheel.asm.Frame.type(Lwheel/asm/ClassWriter;Ljava/lang/String;)I: I28 Branch 33 TABLESWITCH L610 Case 86 - false * Goal 25. wheel.asm.Frame.type(Lwheel/asm/ClassWriter;Ljava/lang/String;)I: I28 Branch 34 TABLESWITCH L610 Case 87 - false * Goal 26. wheel.asm.Frame.type(Lwheel/asm/ClassWriter;Ljava/lang/String;)I: I28 Branch 35 TABLESWITCH L610 Case 88 - false * Goal 27. wheel.asm.Frame.type(Lwheel/asm/ClassWriter;Ljava/lang/String;)I: I28 Branch 36 TABLESWITCH L610 Case 89 - false * Goal 28. wheel.asm.Frame.type(Lwheel/asm/ClassWriter;Ljava/lang/String;)I: I28 Branch 37 TABLESWITCH L610 Case 90 - true * Goal 29. wheel.asm.Frame.type(Lwheel/asm/ClassWriter;Ljava/lang/String;)I: I28 Branch 37 TABLESWITCH L610 Case 90 - false * Goal 30. wheel.asm.Frame.type(Lwheel/asm/ClassWriter;Ljava/lang/String;)I: I28 Branch 38 TABLESWITCH L610 Default-Case - false * Goal 31. wheel.asm.Frame.initInputFrame(Lwheel/asm/ClassWriter;I[Lwheel/asm/Type;I)V: I24 Branch 79 IFNE L795 - false * Goal 32. wheel.asm.Frame.initInputFrame(Lwheel/asm/ClassWriter;I[Lwheel/asm/Type;I)V: I33 Branch 80 IFNE L796 - true * Goal 33. wheel.asm.Frame.initInputFrame(Lwheel/asm/ClassWriter;I[Lwheel/asm/Type;I)V: I70 Branch 81 IF_ICMPGE L802 - true * Goal 34. wheel.asm.Frame.initInputFrame(Lwheel/asm/ClassWriter;I[Lwheel/asm/Type;I)V: I70 Branch 81 IF_ICMPGE L802 - false * Goal 35. wheel.asm.Frame.initInputFrame(Lwheel/asm/ClassWriter;I[Lwheel/asm/Type;I)V: I95 Branch 82 IF_ICMPEQ L805 - false * Goal 36. wheel.asm.Frame.initInputFrame(Lwheel/asm/ClassWriter;I[Lwheel/asm/Type;I)V: I101 Branch 83 IF_ICMPNE L805 - true * Goal 37. wheel.asm.Frame.initInputFrame(Lwheel/asm/ClassWriter;I[Lwheel/asm/Type;I)V: I124 Branch 84 IF_ICMPGE L809 - true * Goal 38. wheel.asm.Frame.initInputFrame(Lwheel/asm/ClassWriter;I[Lwheel/asm/Type;I)V: I124 Branch 84 IF_ICMPGE L809 - false */ @Test public void test166() throws Throwable { Frame frame0 = new Frame(); assertNotNull(frame0); ClassWriter classWriter0 = new ClassWriter(2881); assertNotNull(classWriter0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Type type0 = Type.BOOLEAN_TYPE; assertNotNull(type0); assertEquals(0, type0.VOID); assertEquals(9, type0.ARRAY); assertEquals(4, type0.SHORT); assertEquals(5, type0.INT); assertEquals(1, type0.BOOLEAN); assertEquals(7, type0.LONG); assertEquals(10, type0.OBJECT); assertEquals(8, type0.DOUBLE); assertEquals(2, type0.CHAR); assertEquals(3, type0.BYTE); assertEquals(6, type0.FLOAT); assertEquals(1, type0.getSize()); assertEquals(1, type0.getSort()); Type type1 = Type.VOID_TYPE; assertNotNull(type1); assertNotSame(type1, type0); assertEquals(9, type1.ARRAY); assertEquals(5, type1.INT); assertEquals(0, type1.VOID); assertEquals(2, type1.CHAR); assertEquals(6, type1.FLOAT); assertEquals(3, type1.BYTE); assertEquals(8, type1.DOUBLE); assertEquals(7, type1.LONG); assertEquals(10, type1.OBJECT); assertEquals(1, type1.BOOLEAN); assertEquals(4, type1.SHORT); assertEquals(1, type1.getSize()); assertEquals(0, type1.getSort()); assertFalse(type1.equals((Object)type0)); Type type2 = Type.INT_TYPE; assertNotNull(type2); assertNotSame(type2, type1); assertNotSame(type2, type0); assertEquals(2, type2.CHAR); assertEquals(5, type2.INT); assertEquals(4, type2.SHORT); assertEquals(9, type2.ARRAY); assertEquals(7, type2.LONG); assertEquals(0, type2.VOID); assertEquals(10, type2.OBJECT); assertEquals(1, type2.BOOLEAN); assertEquals(8, type2.DOUBLE); assertEquals(6, type2.FLOAT); assertEquals(3, type2.BYTE); assertEquals(1, type2.getSize()); assertEquals(5, type2.getSort()); assertFalse(type2.equals((Object)type1)); assertFalse(type2.equals((Object)type0)); Type[] typeArray0 = new Type[3]; typeArray0[0] = type2; typeArray0[1] = type2; typeArray0[2] = type1; typeArray0[0] = type0; frame0.initInputFrame(classWriter0, (-890), typeArray0, 2881); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); } //Test case number: 167 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 171 TABLESWITCH L829 Case 86 - true */ @Test public void test167() throws Throwable { ClassWriter classWriter0 = new ClassWriter(86); assertNotNull(classWriter0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Frame frame0 = new Frame(); assertNotNull(frame0); // Undeclared exception! try { frame0.execute(86, 86, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 168 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 149 TABLESWITCH L829 Case 64 - true */ @Test public void test168() throws Throwable { ClassWriter classWriter0 = new ClassWriter(64); assertNotNull(classWriter0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Frame frame0 = new Frame(); assertNotNull(frame0); // Undeclared exception! try { frame0.execute(64, 64, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 169 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 258 TABLESWITCH L829 Case 173 - true */ @Test public void test169() throws Throwable { ClassWriter classWriter0 = new ClassWriter(173); assertNotNull(classWriter0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Frame frame0 = new Frame(); assertNotNull(frame0); // Undeclared exception! try { frame0.execute(173, 173, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 170 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 186 TABLESWITCH L829 Case 101 - true */ @Test public void test170() throws Throwable { ClassWriter classWriter0 = new ClassWriter(166); assertNotNull(classWriter0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Frame frame0 = new Frame(); assertNotNull(frame0); // Undeclared exception! try { frame0.execute(101, 101, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 171 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 269 TABLESWITCH L829 Case 184 - true */ @Test public void test171() throws Throwable { ClassWriter classWriter0 = new ClassWriter(184); assertNotNull(classWriter0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Frame frame0 = new Frame(); assertNotNull(frame0); // Undeclared exception! try { frame0.execute(184, 184, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 172 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 261 TABLESWITCH L829 Case 176 - true */ @Test public void test172() throws Throwable { Frame frame0 = new Frame(); assertNotNull(frame0); ClassWriter classWriter0 = new ClassWriter(139); assertNotNull(classWriter0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); // Undeclared exception! try { frame0.execute(176, 139, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 173 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 195 TABLESWITCH L829 Case 110 - true */ @Test public void test173() throws Throwable { ClassWriter classWriter0 = new ClassWriter(110); assertNotNull(classWriter0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Frame frame0 = new Frame(); assertNotNull(frame0); // Undeclared exception! try { frame0.execute(110, 110, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 174 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 102 TABLESWITCH L829 Case 17 - true */ @Test public void test174() throws Throwable { Frame frame0 = new Frame(); assertNotNull(frame0); ClassWriter classWriter0 = new ClassWriter(17); assertNotNull(classWriter0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); // Undeclared exception! try { frame0.execute(17, 17, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 175 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 163 TABLESWITCH L829 Case 78 - true */ @Test public void test175() throws Throwable { Frame frame0 = new Frame(); assertNotNull(frame0); ClassWriter classWriter0 = new ClassWriter(78); assertNotNull(classWriter0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); // Undeclared exception! try { frame0.execute(78, 78, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 176 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 207 TABLESWITCH L829 Case 122 - true */ @Test public void test176() throws Throwable { ClassWriter classWriter0 = new ClassWriter(35); assertNotNull(classWriter0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Frame frame0 = new Frame(); assertNotNull(frame0); // Undeclared exception! try { frame0.execute(122, 122, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 177 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 93 TABLESWITCH L829 Case 8 - true */ @Test public void test177() throws Throwable { ClassWriter classWriter0 = new ClassWriter(99); assertNotNull(classWriter0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Frame frame0 = new Frame(); assertNotNull(frame0); Item item0 = new Item(8); assertNotNull(item0); // Undeclared exception! try { frame0.execute(8, 8, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 178 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 113 TABLESWITCH L829 Case 28 - true */ @Test public void test178() throws Throwable { ClassWriter classWriter0 = new ClassWriter(179); assertNotNull(classWriter0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Frame frame0 = new Frame(); assertNotNull(frame0); // Undeclared exception! try { frame0.execute(28, 179, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 179 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 164 TABLESWITCH L829 Case 79 - true */ @Test public void test179() throws Throwable { ClassWriter classWriter0 = new ClassWriter(79); assertNotNull(classWriter0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Frame frame0 = new Frame(); assertNotNull(frame0); // Undeclared exception! try { frame0.execute(79, 79, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 180 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 129 TABLESWITCH L829 Case 44 - true */ @Test public void test180() throws Throwable { ClassWriter classWriter0 = new ClassWriter(44); assertNotNull(classWriter0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Frame frame0 = new Frame(); assertNotNull(frame0); // Undeclared exception! try { frame0.execute(44, 44, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 181 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 210 TABLESWITCH L829 Case 125 - true */ @Test public void test181() throws Throwable { ClassWriter classWriter0 = new ClassWriter(125); assertNotNull(classWriter0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Frame frame0 = new Frame(); assertNotNull(frame0); // Undeclared exception! try { frame0.execute(125, 125, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 182 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 152 TABLESWITCH L829 Case 67 - true */ @Test public void test182() throws Throwable { ClassWriter classWriter0 = new ClassWriter(67); assertNotNull(classWriter0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Frame frame0 = new Frame(); assertNotNull(frame0); // Undeclared exception! try { frame0.execute(67, 67, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 183 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 274 TABLESWITCH L829 Case 189 - true */ @Test public void test183() throws Throwable { Frame frame0 = new Frame(); assertNotNull(frame0); ClassWriter classWriter0 = new ClassWriter(179); assertNotNull(classWriter0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); // Undeclared exception! try { frame0.execute(189, 179, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 184 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 116 TABLESWITCH L829 Case 31 - true */ @Test public void test184() throws Throwable { ClassWriter classWriter0 = new ClassWriter(31); assertNotNull(classWriter0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Frame frame0 = new Frame(); assertNotNull(frame0); // Undeclared exception! try { frame0.execute(31, 31, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 185 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 194 TABLESWITCH L829 Case 109 - true */ @Test public void test185() throws Throwable { Frame frame0 = new Frame(); assertNotNull(frame0); ClassWriter classWriter0 = new ClassWriter(109); assertNotNull(classWriter0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); // Undeclared exception! try { frame0.execute(109, 109, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 186 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 181 TABLESWITCH L829 Case 96 - true */ @Test public void test186() throws Throwable { ClassWriter classWriter0 = new ClassWriter(96); assertNotNull(classWriter0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Frame frame0 = new Frame(); assertNotNull(frame0); // Undeclared exception! try { frame0.execute(96, 96, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 187 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 96 TABLESWITCH L829 Case 11 - true */ @Test public void test187() throws Throwable { ClassWriter classWriter0 = new ClassWriter(116); assertNotNull(classWriter0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Frame frame0 = new Frame(); assertNotNull(frame0); Item item0 = classWriter0.key2; assertNotNull(item0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); // Undeclared exception! try { frame0.execute(11, 116, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 188 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 122 TABLESWITCH L829 Case 37 - true */ @Test public void test188() throws Throwable { ClassWriter classWriter0 = new ClassWriter(37); assertNotNull(classWriter0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Frame frame0 = new Frame(); assertNotNull(frame0); // Undeclared exception! try { frame0.execute(37, 37, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 189 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 240 TABLESWITCH L829 Case 155 - true */ @Test public void test189() throws Throwable { Frame frame0 = new Frame(); assertNotNull(frame0); ClassWriter classWriter0 = new ClassWriter(155); assertNotNull(classWriter0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); // Undeclared exception! try { frame0.execute(155, 55, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 190 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 150 TABLESWITCH L829 Case 65 - true */ @Test public void test190() throws Throwable { ClassWriter classWriter0 = new ClassWriter(65); assertNotNull(classWriter0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Frame frame0 = new Frame(); assertNotNull(frame0); // Undeclared exception! try { frame0.execute(65, 65, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 191 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 120 TABLESWITCH L829 Case 35 - true */ @Test public void test191() throws Throwable { ClassWriter classWriter0 = new ClassWriter(35); assertNotNull(classWriter0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Frame frame0 = new Frame(); assertNotNull(frame0); // Undeclared exception! try { frame0.execute(35, 35, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 192 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 169 TABLESWITCH L829 Case 84 - true */ @Test public void test192() throws Throwable { ClassWriter classWriter0 = new ClassWriter(84); assertNotNull(classWriter0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Frame frame0 = new Frame(); assertNotNull(frame0); // Undeclared exception! try { frame0.execute(84, 84, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 193 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 170 TABLESWITCH L829 Case 85 - true */ @Test public void test193() throws Throwable { ClassWriter classWriter0 = new ClassWriter(85); assertNotNull(classWriter0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Frame frame0 = new Frame(); assertNotNull(frame0); // Undeclared exception! try { frame0.execute(85, 85, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 194 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 196 TABLESWITCH L829 Case 111 - true */ @Test public void test194() throws Throwable { ClassWriter classWriter0 = new ClassWriter(114); assertNotNull(classWriter0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Frame frame0 = new Frame(); assertNotNull(frame0); // Undeclared exception! try { frame0.execute(111, 111, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 195 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 144 TABLESWITCH L829 Case 59 - true */ @Test public void test195() throws Throwable { ClassWriter classWriter0 = new ClassWriter(59); assertNotNull(classWriter0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Frame frame0 = new Frame(); assertNotNull(frame0); // Undeclared exception! try { frame0.execute(59, 59, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 196 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 140 TABLESWITCH L829 Case 55 - true */ @Test public void test196() throws Throwable { ClassWriter classWriter0 = new ClassWriter(55); assertNotNull(classWriter0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Frame frame0 = new Frame(); assertNotNull(frame0); // Undeclared exception! try { frame0.execute(55, 55, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 197 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 172 TABLESWITCH L829 Case 87 - true */ @Test public void test197() throws Throwable { ClassWriter classWriter0 = new ClassWriter(87); assertNotNull(classWriter0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Frame frame0 = new Frame(); assertNotNull(frame0); // Undeclared exception! try { frame0.execute(87, 87, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 198 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 143 TABLESWITCH L829 Case 58 - true */ @Test public void test198() throws Throwable { ClassWriter classWriter0 = new ClassWriter(58); assertNotNull(classWriter0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Frame frame0 = new Frame(); assertNotNull(frame0); // Undeclared exception! try { frame0.execute(58, 58, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 199 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 106 TABLESWITCH L829 Case 21 - true */ @Test public void test199() throws Throwable { Frame frame0 = new Frame(); assertNotNull(frame0); ClassWriter classWriter0 = new ClassWriter(21); assertNotNull(classWriter0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); // Undeclared exception! try { frame0.execute(21, 21, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 200 /* * 1 covered goal: * Goal 1. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 242 TABLESWITCH L829 Case 157 - true */ @Test public void test200() throws Throwable { Frame frame0 = new Frame(); assertNotNull(frame0); ClassWriter classWriter0 = new ClassWriter(157); assertNotNull(classWriter0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); // Undeclared exception! try { frame0.execute(157, 157, classWriter0, (Item) null); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 201 /* * 3 covered goals: * Goal 1. wheel.asm.Frame.push(I)V: I7 Branch 6 IFNONNULL L564 - false * Goal 2. wheel.asm.Frame.push(I)V: I28 Branch 7 IF_ICMPLT L568 - true * Goal 3. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 86 TABLESWITCH L829 Case 1 - true */ @Test public void test201() throws Throwable { ClassWriter classWriter0 = new ClassWriter(1); assertNotNull(classWriter0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Frame frame0 = new Frame(); assertNotNull(frame0); // Undeclared exception! try { frame0.execute(1, 1, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 202 /* * 3 covered goals: * Goal 1. wheel.asm.Frame.pop(I)V: I8 Branch 67 IF_ICMPLT L692 - true * Goal 2. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 128 TABLESWITCH L829 Case 43 - true * Goal 3. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 277 TABLESWITCH L829 Case 192 - false */ @Test public void test202() throws Throwable { ClassWriter classWriter0 = new ClassWriter(68); assertNotNull(classWriter0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(2, classWriter0.COMPUTE_FRAMES); assertEquals(1, classWriter0.COMPUTE_MAXS); Frame frame0 = new Frame(); assertNotNull(frame0); // Undeclared exception! try { frame0.execute(43, 68, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } //Test case number: 203 /* * 203 covered goals: * Goal 1. wheel.asm.Frame.<init>()V: root-Branch * Goal 2. wheel.asm.Frame.pop()I: I7 Branch 66 IFLE L678 - true * Goal 3. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 85 TABLESWITCH L829 Case 0 - false * Goal 4. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 86 TABLESWITCH L829 Case 1 - false * Goal 5. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 87 TABLESWITCH L829 Case 2 - false * Goal 6. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 88 TABLESWITCH L829 Case 3 - false * Goal 7. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 89 TABLESWITCH L829 Case 4 - false * Goal 8. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 90 TABLESWITCH L829 Case 5 - false * Goal 9. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 91 TABLESWITCH L829 Case 6 - false * Goal 10. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 92 TABLESWITCH L829 Case 7 - false * Goal 11. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 93 TABLESWITCH L829 Case 8 - false * Goal 12. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 94 TABLESWITCH L829 Case 9 - false * Goal 13. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 95 TABLESWITCH L829 Case 10 - false * Goal 14. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 96 TABLESWITCH L829 Case 11 - false * Goal 15. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 97 TABLESWITCH L829 Case 12 - false * Goal 16. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 98 TABLESWITCH L829 Case 13 - false * Goal 17. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 99 TABLESWITCH L829 Case 14 - false * Goal 18. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 100 TABLESWITCH L829 Case 15 - false * Goal 19. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 101 TABLESWITCH L829 Case 16 - false * Goal 20. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 102 TABLESWITCH L829 Case 17 - false * Goal 21. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 103 TABLESWITCH L829 Case 18 - false * Goal 22. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 104 TABLESWITCH L829 Case 19 - false * Goal 23. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 105 TABLESWITCH L829 Case 20 - false * Goal 24. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 106 TABLESWITCH L829 Case 21 - false * Goal 25. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 107 TABLESWITCH L829 Case 22 - false * Goal 26. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 108 TABLESWITCH L829 Case 23 - false * Goal 27. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 109 TABLESWITCH L829 Case 24 - false * Goal 28. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 110 TABLESWITCH L829 Case 25 - false * Goal 29. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 111 TABLESWITCH L829 Case 26 - false * Goal 30. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 112 TABLESWITCH L829 Case 27 - false * Goal 31. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 113 TABLESWITCH L829 Case 28 - false * Goal 32. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 114 TABLESWITCH L829 Case 29 - false * Goal 33. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 115 TABLESWITCH L829 Case 30 - false * Goal 34. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 116 TABLESWITCH L829 Case 31 - false * Goal 35. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 117 TABLESWITCH L829 Case 32 - false * Goal 36. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 118 TABLESWITCH L829 Case 33 - false * Goal 37. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 119 TABLESWITCH L829 Case 34 - false * Goal 38. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 120 TABLESWITCH L829 Case 35 - false * Goal 39. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 121 TABLESWITCH L829 Case 36 - false * Goal 40. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 122 TABLESWITCH L829 Case 37 - false * Goal 41. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 123 TABLESWITCH L829 Case 38 - false * Goal 42. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 124 TABLESWITCH L829 Case 39 - false * Goal 43. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 125 TABLESWITCH L829 Case 40 - false * Goal 44. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 126 TABLESWITCH L829 Case 41 - false * Goal 45. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 127 TABLESWITCH L829 Case 42 - false * Goal 46. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 128 TABLESWITCH L829 Case 43 - false * Goal 47. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 129 TABLESWITCH L829 Case 44 - false * Goal 48. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 130 TABLESWITCH L829 Case 45 - false * Goal 49. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 131 TABLESWITCH L829 Case 46 - false * Goal 50. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 132 TABLESWITCH L829 Case 47 - false * Goal 51. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 133 TABLESWITCH L829 Case 48 - false * Goal 52. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 134 TABLESWITCH L829 Case 49 - false * Goal 53. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 135 TABLESWITCH L829 Case 50 - false * Goal 54. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 136 TABLESWITCH L829 Case 51 - false * Goal 55. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 137 TABLESWITCH L829 Case 52 - false * Goal 56. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 138 TABLESWITCH L829 Case 53 - false * Goal 57. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 139 TABLESWITCH L829 Case 54 - false * Goal 58. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 140 TABLESWITCH L829 Case 55 - false * Goal 59. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 141 TABLESWITCH L829 Case 56 - false * Goal 60. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 142 TABLESWITCH L829 Case 57 - false * Goal 61. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 143 TABLESWITCH L829 Case 58 - false * Goal 62. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 144 TABLESWITCH L829 Case 59 - false * Goal 63. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 145 TABLESWITCH L829 Case 60 - false * Goal 64. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 146 TABLESWITCH L829 Case 61 - false * Goal 65. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 147 TABLESWITCH L829 Case 62 - false * Goal 66. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 148 TABLESWITCH L829 Case 63 - false * Goal 67. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 149 TABLESWITCH L829 Case 64 - false * Goal 68. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 150 TABLESWITCH L829 Case 65 - false * Goal 69. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 151 TABLESWITCH L829 Case 66 - false * Goal 70. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 152 TABLESWITCH L829 Case 67 - false * Goal 71. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 153 TABLESWITCH L829 Case 68 - false * Goal 72. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 154 TABLESWITCH L829 Case 69 - false * Goal 73. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 155 TABLESWITCH L829 Case 70 - false * Goal 74. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 156 TABLESWITCH L829 Case 71 - false * Goal 75. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 157 TABLESWITCH L829 Case 72 - false * Goal 76. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 158 TABLESWITCH L829 Case 73 - false * Goal 77. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 159 TABLESWITCH L829 Case 74 - false * Goal 78. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 160 TABLESWITCH L829 Case 75 - false * Goal 79. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 161 TABLESWITCH L829 Case 76 - false * Goal 80. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 162 TABLESWITCH L829 Case 77 - false * Goal 81. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 163 TABLESWITCH L829 Case 78 - false * Goal 82. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 164 TABLESWITCH L829 Case 79 - false * Goal 83. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 165 TABLESWITCH L829 Case 80 - false * Goal 84. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 166 TABLESWITCH L829 Case 81 - false * Goal 85. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 167 TABLESWITCH L829 Case 82 - false * Goal 86. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 168 TABLESWITCH L829 Case 83 - false * Goal 87. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 169 TABLESWITCH L829 Case 84 - false * Goal 88. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 170 TABLESWITCH L829 Case 85 - false * Goal 89. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 171 TABLESWITCH L829 Case 86 - false * Goal 90. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 172 TABLESWITCH L829 Case 87 - false * Goal 91. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 173 TABLESWITCH L829 Case 88 - false * Goal 92. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 174 TABLESWITCH L829 Case 89 - false * Goal 93. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 175 TABLESWITCH L829 Case 90 - false * Goal 94. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 176 TABLESWITCH L829 Case 91 - false * Goal 95. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 177 TABLESWITCH L829 Case 92 - false * Goal 96. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 178 TABLESWITCH L829 Case 93 - false * Goal 97. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 179 TABLESWITCH L829 Case 94 - false * Goal 98. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 180 TABLESWITCH L829 Case 95 - false * Goal 99. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 181 TABLESWITCH L829 Case 96 - false * Goal 100. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 182 TABLESWITCH L829 Case 97 - false * Goal 101. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 183 TABLESWITCH L829 Case 98 - false * Goal 102. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 184 TABLESWITCH L829 Case 99 - false * Goal 103. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 185 TABLESWITCH L829 Case 100 - false * Goal 104. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 186 TABLESWITCH L829 Case 101 - false * Goal 105. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 187 TABLESWITCH L829 Case 102 - false * Goal 106. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 188 TABLESWITCH L829 Case 103 - false * Goal 107. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 189 TABLESWITCH L829 Case 104 - false * Goal 108. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 190 TABLESWITCH L829 Case 105 - false * Goal 109. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 191 TABLESWITCH L829 Case 106 - false * Goal 110. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 192 TABLESWITCH L829 Case 107 - false * Goal 111. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 193 TABLESWITCH L829 Case 108 - false * Goal 112. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 194 TABLESWITCH L829 Case 109 - false * Goal 113. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 195 TABLESWITCH L829 Case 110 - false * Goal 114. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 196 TABLESWITCH L829 Case 111 - false * Goal 115. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 197 TABLESWITCH L829 Case 112 - false * Goal 116. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 198 TABLESWITCH L829 Case 113 - false * Goal 117. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 199 TABLESWITCH L829 Case 114 - false * Goal 118. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 200 TABLESWITCH L829 Case 115 - false * Goal 119. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 201 TABLESWITCH L829 Case 116 - false * Goal 120. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 202 TABLESWITCH L829 Case 117 - false * Goal 121. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 203 TABLESWITCH L829 Case 118 - false * Goal 122. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 204 TABLESWITCH L829 Case 119 - false * Goal 123. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 205 TABLESWITCH L829 Case 120 - false * Goal 124. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 206 TABLESWITCH L829 Case 121 - false * Goal 125. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 207 TABLESWITCH L829 Case 122 - false * Goal 126. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 208 TABLESWITCH L829 Case 123 - false * Goal 127. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 209 TABLESWITCH L829 Case 124 - false * Goal 128. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 210 TABLESWITCH L829 Case 125 - false * Goal 129. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 211 TABLESWITCH L829 Case 126 - false * Goal 130. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 212 TABLESWITCH L829 Case 127 - false * Goal 131. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 213 TABLESWITCH L829 Case 128 - false * Goal 132. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 214 TABLESWITCH L829 Case 129 - false * Goal 133. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 215 TABLESWITCH L829 Case 130 - false * Goal 134. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 216 TABLESWITCH L829 Case 131 - false * Goal 135. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 217 TABLESWITCH L829 Case 132 - false * Goal 136. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 218 TABLESWITCH L829 Case 133 - false * Goal 137. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 219 TABLESWITCH L829 Case 134 - false * Goal 138. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 220 TABLESWITCH L829 Case 135 - false * Goal 139. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 221 TABLESWITCH L829 Case 136 - false * Goal 140. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 222 TABLESWITCH L829 Case 137 - false * Goal 141. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 223 TABLESWITCH L829 Case 138 - false * Goal 142. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 224 TABLESWITCH L829 Case 139 - false * Goal 143. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 225 TABLESWITCH L829 Case 140 - false * Goal 144. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 226 TABLESWITCH L829 Case 141 - false * Goal 145. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 227 TABLESWITCH L829 Case 142 - false * Goal 146. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 228 TABLESWITCH L829 Case 143 - false * Goal 147. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 229 TABLESWITCH L829 Case 144 - false * Goal 148. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 230 TABLESWITCH L829 Case 145 - false * Goal 149. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 231 TABLESWITCH L829 Case 146 - false * Goal 150. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 232 TABLESWITCH L829 Case 147 - false * Goal 151. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 233 TABLESWITCH L829 Case 148 - false * Goal 152. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 234 TABLESWITCH L829 Case 149 - false * Goal 153. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 235 TABLESWITCH L829 Case 150 - false * Goal 154. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 236 TABLESWITCH L829 Case 151 - false * Goal 155. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 237 TABLESWITCH L829 Case 152 - false * Goal 156. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 238 TABLESWITCH L829 Case 153 - false * Goal 157. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 239 TABLESWITCH L829 Case 154 - false * Goal 158. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 240 TABLESWITCH L829 Case 155 - false * Goal 159. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 241 TABLESWITCH L829 Case 156 - false * Goal 160. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 242 TABLESWITCH L829 Case 157 - false * Goal 161. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 243 TABLESWITCH L829 Case 158 - false * Goal 162. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 244 TABLESWITCH L829 Case 159 - false * Goal 163. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 245 TABLESWITCH L829 Case 160 - false * Goal 164. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 246 TABLESWITCH L829 Case 161 - false * Goal 165. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 247 TABLESWITCH L829 Case 162 - false * Goal 166. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 248 TABLESWITCH L829 Case 163 - false * Goal 167. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 249 TABLESWITCH L829 Case 164 - false * Goal 168. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 250 TABLESWITCH L829 Case 165 - false * Goal 169. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 251 TABLESWITCH L829 Case 166 - false * Goal 170. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 252 TABLESWITCH L829 Case 167 - false * Goal 171. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 253 TABLESWITCH L829 Case 168 - false * Goal 172. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 254 TABLESWITCH L829 Case 169 - false * Goal 173. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 255 TABLESWITCH L829 Case 170 - false * Goal 174. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 256 TABLESWITCH L829 Case 171 - false * Goal 175. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 257 TABLESWITCH L829 Case 172 - false * Goal 176. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 258 TABLESWITCH L829 Case 173 - false * Goal 177. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 259 TABLESWITCH L829 Case 174 - false * Goal 178. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 260 TABLESWITCH L829 Case 175 - false * Goal 179. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 261 TABLESWITCH L829 Case 176 - false * Goal 180. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 262 TABLESWITCH L829 Case 177 - false * Goal 181. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 263 TABLESWITCH L829 Case 178 - false * Goal 182. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 264 TABLESWITCH L829 Case 179 - false * Goal 183. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 265 TABLESWITCH L829 Case 180 - false * Goal 184. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 266 TABLESWITCH L829 Case 181 - false * Goal 185. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 267 TABLESWITCH L829 Case 182 - false * Goal 186. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 268 TABLESWITCH L829 Case 183 - false * Goal 187. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 269 TABLESWITCH L829 Case 184 - false * Goal 188. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 270 TABLESWITCH L829 Case 185 - false * Goal 189. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 271 TABLESWITCH L829 Case 186 - false * Goal 190. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 272 TABLESWITCH L829 Case 187 - false * Goal 191. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 273 TABLESWITCH L829 Case 188 - false * Goal 192. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 274 TABLESWITCH L829 Case 189 - false * Goal 193. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 275 TABLESWITCH L829 Case 190 - false * Goal 194. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 276 TABLESWITCH L829 Case 191 - false * Goal 195. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 277 TABLESWITCH L829 Case 192 - true * Goal 196. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 278 TABLESWITCH L829 Case 193 - false * Goal 197. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 279 TABLESWITCH L829 Case 194 - false * Goal 198. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 280 TABLESWITCH L829 Case 195 - false * Goal 199. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 281 TABLESWITCH L829 Case 196 - false * Goal 200. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 282 TABLESWITCH L829 Case 197 - false * Goal 201. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 283 TABLESWITCH L829 Case 198 - false * Goal 202. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 284 TABLESWITCH L829 Case 199 - false * Goal 203. wheel.asm.Frame.execute(IILwheel/asm/ClassWriter;Lwheel/asm/Item;)V: I3 Branch 285 TABLESWITCH L829 Default-Case - false */ @Test public void test203() throws Throwable { ClassWriter classWriter0 = new ClassWriter(36); assertNotNull(classWriter0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Item item0 = classWriter0.key; assertNotNull(item0); assertEquals(1, classWriter0.COMPUTE_MAXS); assertEquals(2, classWriter0.COMPUTE_FRAMES); Frame frame0 = new Frame(); assertNotNull(frame0); // Undeclared exception! try { frame0.execute(192, 192, classWriter0, item0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } }
[ "fabio.palomba.89@gmail.com" ]
fabio.palomba.89@gmail.com
85523ce145731310f9dccc860d6a556b76c1a5a4
810ce777a9251e0b1bb83719b6a3c1810b06f355
/back-end/capstoneProject/src/main/java/com/capstone/project/services/CategoryService.java
8762a9488f1276e289427c20e116cda767c83870
[]
no_license
CDinatale/bits-to-bites-app
ae1b182e1e3abd1b58b403dcdcf0f89feff007e4
3457b757213b7eb357de251080aa2dbeeaebd219
refs/heads/main
2023-04-05T21:52:49.337036
2021-05-05T16:00:57
2021-05-05T16:00:57
362,601,976
0
0
null
null
null
null
UTF-8
Java
false
false
1,196
java
package com.capstone.project.services; import com.capstone.project.model.Category; import com.capstone.project.repositories.CategoryRepository; import org.springframework.stereotype.Service; import java.util.HashSet; import java.util.Set; @Service public class CategoryService implements CategoryServiceAbs{ private final CategoryRepository categoryRepository; public CategoryService(CategoryRepository categoryRepository) { this.categoryRepository = categoryRepository; } @Override public Category findByName(String name) { return categoryRepository.findByName(name); } @Override public Category save(Category category) { return categoryRepository.save(category); } @Override public Set<Category> findAll() { return new HashSet<>(categoryRepository.findAll()); } @Override public Category findById(Long aLong) { return categoryRepository.findById(aLong).orElse(null); } @Override public void delete(Category object) { categoryRepository.delete(object); } @Override public void deleteById(Long aLong) { categoryRepository.deleteById(aLong); } }
[ "cora.dinatale@gmail.com" ]
cora.dinatale@gmail.com
d45a23514ca7253eb21aa475b0dcadd19bfbbcef
f94f34e405c227ac7b175916534b2c5f45079102
/currency-exchange-service/src/main/java/urban/sandbox/springcloud/currencyexchangeservice/CurrencyExchange.java
5c20e2d74ccbe9fd2876c7b546b91da81ac3b3b0
[]
no_license
diegourban/springcloud-sandbox
4e80503b617a83018ae1a6f9555fc5143c036da7
82105beaae25693e848b371442619b219de9f777
refs/heads/main
2023-04-01T06:13:10.666310
2021-04-15T19:55:19
2021-04-15T19:55:19
332,898,478
0
0
null
null
null
null
UTF-8
Java
false
false
1,317
java
package urban.sandbox.springcloud.currencyexchangeservice; import java.math.BigDecimal; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.Id; @Entity public class CurrencyExchange { @Id private Long id; @Column(name = "currency_from") private String from; @Column(name = "currency_to") private String to; private BigDecimal conversionMultiple; private String environment; public CurrencyExchange() { } public CurrencyExchange(Long id, String from, String to, BigDecimal conversionMultiple) { super(); this.id = id; this.from = from; this.to = to; this.conversionMultiple = conversionMultiple; } public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getFrom() { return from; } public void setFrom(String from) { this.from = from; } public String getTo() { return to; } public void setTo(String to) { this.to = to; } public BigDecimal getConversionMultiple() { return conversionMultiple; } public void setConversionMultiple(BigDecimal conversionMultiple) { this.conversionMultiple = conversionMultiple; } public String getEnvironment() { return environment; } public void setEnvironment(String environment) { this.environment = environment; } }
[ "urban@dynamix.com.br" ]
urban@dynamix.com.br
83db348b608ddb50af6ce9e8e32c4c0320166182
733ce4154b0dcb39b168454fbb181ecd3a164ba9
/app/src/main/java/com/example/paint/splashscreen/HomeActivity.java
24e99ca8144cdba9cf9edf41b0a662ab1c305c05
[]
no_license
tharunchittimi/Paint
b07827af5e56ae770d22c37fc0c63410553def3e
7808917a288fee1ae183b7c93b5232834609a3e1
refs/heads/master
2021-01-07T05:56:35.675860
2020-03-11T12:03:16
2020-03-11T12:03:16
241,599,150
0
0
null
null
null
null
UTF-8
Java
false
false
1,414
java
package com.example.paint.splashscreen; import androidx.appcompat.app.AppCompatActivity; import android.content.Intent; import android.os.Bundle; import android.os.Handler; import android.view.animation.Animation; import android.view.animation.AnimationUtils; import android.widget.TextView; import com.example.paint.onboardingscreen.MainActivity; import com.example.paint.R; public class HomeActivity extends AppCompatActivity { public static int SPLASh_TIME_OUT = 7000; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_home); // Animation animation = AnimationUtils.loadAnimation(getApplicationContext(), R.anim.splash_screen_anim); // ImageView splash = (ImageView) findViewById(R.id.imageViewTwo); // splash.startAnimation(animation); Animation animation1 = AnimationUtils.loadAnimation(getApplicationContext(), R.anim.text_anim); TextView textView =(TextView) findViewById(R.id.textViewSplash); textView.startAnimation(animation1); new Handler().postDelayed(new Runnable() { @Override public void run() { Intent homeIntent = new Intent(HomeActivity.this, MainActivity.class); startActivity(homeIntent); finish(); } }, SPLASh_TIME_OUT); } }
[ "tharunkumarchittimi@gmail.com" ]
tharunkumarchittimi@gmail.com
690ade6c62a5cb89d6a1ff128dc4a4e27db4582c
dcf0b9ca5a09ab31aea29c7418af9e7ce57d8c20
/src/main/java/com/project/appManager/entity/AppQueryVersion.java
789e8ec75a71b7c6cdc607c8376e4934263b7231
[]
no_license
MMW1996/AppManager
a944fd9c28ae703dbe7d7f1d72761a268eb3f2b6
4fd7feee7f17971401d3de7a05f7d1d1b81b34c2
refs/heads/main
2023-06-27T17:40:20.522432
2021-08-02T14:12:20
2021-08-02T14:12:20
391,864,324
0
0
null
null
null
null
UTF-8
Java
false
false
700
java
package com.project.appManager.entity; /** * @author:MMW * @package: com.project.appManager.entity * @time: 2021/6/25 12:18 * @day: 星期五 */ public class AppQueryVersion extends AppVersion { // 软件名称 private String softwarename; // 发布状态 private String publishstatusname; public String getSoftwarename() { return softwarename; } public void setSoftwarename(String softwarename) { this.softwarename = softwarename; } public String getPublishstatusname() { return publishstatusname; } public void setPublishstatusname(String publishstatusname) { this.publishstatusname = publishstatusname; } }
[ "1251835319@qq.com" ]
1251835319@qq.com
7645acca340f9cf06afae0a87e999b9d60556f56
67fda72afb69e2beafcbd1b0f08c30cad45d20b8
/site/components/src/main/java/org/example/essentials/components/GogreenPageComponent.java
2746fe99b3f0241ad06953d119014ebc91e92d0b
[]
no_license
smanivasag/gogreen
a20b6fd61d020a1feb2f0dbedb2a34587f69a9a5
25e314c3d705e7ba4c900240356d4edc4a1f5547
refs/heads/master
2021-05-21T09:01:54.121516
2020-04-07T13:14:27
2020-04-07T13:14:27
252,628,474
0
0
null
null
null
null
UTF-8
Java
false
false
1,196
java
package org.example.essentials.components; import org.example.essentials.components.info.GogreenPageComponentInfo; import org.hippoecm.hst.container.RequestContextProvider; import org.hippoecm.hst.core.component.HstRequest; import org.hippoecm.hst.core.component.HstResponse; import org.hippoecm.hst.core.request.HstRequestContext; import org.onehippo.cms7.essentials.components.CommonComponent; //@ParametersInfo(type = GogreenPageComponentInfo.class) public class GogreenPageComponent extends CommonComponent { @Override public void doBeforeRender(final HstRequest request, final HstResponse response) { super.doBeforeRender(request, response); setComponentId(request, response); final GogreenPageComponentInfo paramInfo = getComponentParametersInfo(request); request.setAttribute(REQUEST_ATTR_PARAM_INFO, paramInfo); HstRequestContext requestContext = RequestContextProvider.get(); request.setModel(REQUEST_ATTR_DOCUMENT, requestContext.getContentBean()); // getLinkedBean("gogreen:image", Imageset.class); // request.setModel("imageBean", getHippoBeanForPath(paramInfo.getImage(), HippoDocument.class)); } }
[ "selvandhan.manivasagam@manifesto.co.uk" ]
selvandhan.manivasagam@manifesto.co.uk
e362b6264861660865a34cdedbbdd27d45f8a2d9
d653029a119100465a908e663bf795c4dedfe43a
/src/main/java/com/common/system/sys/service/impl/RcDeptServiceImpl.java
8a074bf2b45799cc81d2f2486bad993223704f1a
[]
no_license
MengleiZhao/bg_perfm-main
d59740a42995e3b39c5ddbd0df710d87798f3e80
38751d15947984159da0069b54c8db547c55bbb3
refs/heads/master
2023-05-01T01:54:00.791997
2021-05-08T05:51:39
2021-05-08T05:51:39
365,401,842
0
0
null
null
null
null
UTF-8
Java
false
false
1,833
java
package com.common.system.sys.service.impl; import com.baomidou.mybatisplus.service.impl.ServiceImpl; import com.common.system.sys.entity.RcDept; import com.common.system.sys.entity.RcDeptExample; import com.common.system.sys.mapper.RcDeptMapper; import com.common.system.sys.service.RcDeptService; import com.github.pagehelper.PageHelper; import com.github.pagehelper.PageInfo; import org.apache.commons.lang3.StringUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.util.List; /** * <p> * 部门表 服务实现类 * </p> * * @author 安达 * @since 2021-03-02 */ @Service public class RcDeptServiceImpl extends ServiceImpl<RcDeptMapper, RcDept> implements RcDeptService { @Autowired private RcDeptMapper rcDeptMapper; @Override public PageInfo<RcDept> listForPage(Integer pageNum, Integer pageSize) throws Exception{ if (null != pageNum && null != pageSize){ PageHelper.startPage(pageNum,pageSize); } List<RcDept> rcDeptList =findRcDeptList(null); return new PageInfo<>(rcDeptList); } /** * @Description: 根据条件查询部门列表 * @Author: 安达 * @Date: 2021/3/19 21:04 * @Param: * @Return: */ @Override public List<RcDept> findRcDeptList(RcDept rcDept) throws Exception{ RcDeptExample rcDeptExample = new RcDeptExample(); RcDeptExample.Criteria criteria = rcDeptExample.createCriteria(); if(StringUtils.isNotEmpty(rcDept.getFullName())){ criteria.andFullNameLike(rcDept.getFullName()); } if(StringUtils.isNotEmpty(rcDept.getSimpleName())){ criteria.andSimpleNameLike(rcDept.getSimpleName()); } if(rcDept.getPid() !=null){ criteria.andPidEqualTo(rcDept.getPid()); } List<RcDept> list = rcDeptMapper.selectByExample(rcDeptExample); return list; } }
[ "649387483@qq.com" ]
649387483@qq.com
5cd1fbc90ea9b4e836adffe04017adac33efa345
32387b9861f5aa79f733d15c2df87419fb84db7b
/code/app/android/LedPro/src/cn/fuego/led/util/qrcode/decode/RGBLuminanceSource.java
0f9f4f69844c541aef4524e5f3c74a48b306f316
[]
no_license
ggled0755/LedPro
105f736ea8e438bbda28ff7510cbc4a0dd0d3571
0ace79fb287aefb701200258ef138626be569e4f
refs/heads/master
2021-01-22T03:29:48.966845
2015-08-12T01:47:39
2015-08-12T01:47:39
39,113,353
0
0
null
null
null
null
UTF-8
Java
false
false
3,036
java
package cn.fuego.led.util.qrcode.decode; /* * Copyright 2009 ZXing authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ import java.io.FileNotFoundException; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import com.google.zxing.LuminanceSource; /** * This class is used to help decode images from files which arrive as RGB data * from Android bitmaps. It does not support cropping or rotation. * * @author dswitkin@google.com (Daniel Switkin) */ public final class RGBLuminanceSource extends LuminanceSource { private final byte[] luminances; public RGBLuminanceSource(String path) throws FileNotFoundException { this(loadBitmap(path)); } public RGBLuminanceSource(Bitmap bitmap) { super(bitmap.getWidth(), bitmap.getHeight()); int width = bitmap.getWidth(); int height = bitmap.getHeight(); int[] pixels = new int[width * height]; bitmap.getPixels(pixels, 0, width, 0, 0, width, height); // In order to measure pure decoding speed, we convert the entire image // to a greyscale array // up front, which is the same as the Y channel of the // YUVLuminanceSource in the real app. luminances = new byte[width * height]; for (int y = 0; y < height; y++) { int offset = y * width; for (int x = 0; x < width; x++) { int pixel = pixels[offset + x]; int r = (pixel >> 16) & 0xff; int g = (pixel >> 8) & 0xff; int b = pixel & 0xff; if (r == g && g == b) { // Image is already greyscale, so pick any channel. luminances[offset + x] = (byte) r; } else { // Calculate luminance cheaply, favoring green. luminances[offset + x] = (byte) ((r + g + g + b) >> 2); } } } } @Override public byte[] getRow(int y, byte[] row) { if (y < 0 || y >= getHeight()) { throw new IllegalArgumentException( "Requested row is outside the image: " + y); } int width = getWidth(); if (row == null || row.length < width) { row = new byte[width]; } System.arraycopy(luminances, y * width, row, 0, width); return row; } // Since this class does not support cropping, the underlying byte array // already contains // exactly what the caller is asking for, so give it to them without a copy. @Override public byte[] getMatrix() { return luminances; } private static Bitmap loadBitmap(String path) throws FileNotFoundException { Bitmap bitmap = BitmapFactory.decodeFile(path); if (bitmap == null) { throw new FileNotFoundException("Couldn't open " + path); } return bitmap; } }
[ "aether1989@gmail.com" ]
aether1989@gmail.com
db763ac5c5a5da293d773da1f6d04bd9b63b4b1a
3cd69da4d40f2d97130b5bf15045ba09c219f1fa
/sources/com/google/api/Http.java
c21e1d159c4b2320c2ab6dc8b328c0a01392cfa0
[]
no_license
TheWizard91/Album_base_source_from_JADX
946ea3a407b4815ac855ce4313b97bd42e8cab41
e1d228fc2ee550ac19eeac700254af8b0f96080a
refs/heads/master
2023-01-09T08:37:22.062350
2020-11-11T09:52:40
2020-11-11T09:52:40
311,927,971
0
0
null
null
null
null
UTF-8
Java
false
false
12,170
java
package com.google.api; import com.google.api.HttpRule; import com.google.protobuf.AbstractMessageLite; import com.google.protobuf.ByteString; import com.google.protobuf.CodedInputStream; import com.google.protobuf.ExtensionRegistryLite; import com.google.protobuf.GeneratedMessageLite; import com.google.protobuf.Internal; import com.google.protobuf.InvalidProtocolBufferException; import com.google.protobuf.Parser; import java.io.IOException; import java.io.InputStream; import java.nio.ByteBuffer; import java.util.Collections; import java.util.List; public final class Http extends GeneratedMessageLite<Http, Builder> implements HttpOrBuilder { /* access modifiers changed from: private */ public static final Http DEFAULT_INSTANCE; public static final int FULLY_DECODE_RESERVED_EXPANSION_FIELD_NUMBER = 2; private static volatile Parser<Http> PARSER = null; public static final int RULES_FIELD_NUMBER = 1; private boolean fullyDecodeReservedExpansion_; private Internal.ProtobufList<HttpRule> rules_ = emptyProtobufList(); private Http() { } public List<HttpRule> getRulesList() { return this.rules_; } public List<? extends HttpRuleOrBuilder> getRulesOrBuilderList() { return this.rules_; } public int getRulesCount() { return this.rules_.size(); } public HttpRule getRules(int index) { return (HttpRule) this.rules_.get(index); } public HttpRuleOrBuilder getRulesOrBuilder(int index) { return (HttpRuleOrBuilder) this.rules_.get(index); } private void ensureRulesIsMutable() { if (!this.rules_.isModifiable()) { this.rules_ = GeneratedMessageLite.mutableCopy(this.rules_); } } /* access modifiers changed from: private */ public void setRules(int index, HttpRule value) { value.getClass(); ensureRulesIsMutable(); this.rules_.set(index, value); } /* access modifiers changed from: private */ public void addRules(HttpRule value) { value.getClass(); ensureRulesIsMutable(); this.rules_.add(value); } /* access modifiers changed from: private */ public void addRules(int index, HttpRule value) { value.getClass(); ensureRulesIsMutable(); this.rules_.add(index, value); } /* access modifiers changed from: private */ public void addAllRules(Iterable<? extends HttpRule> values) { ensureRulesIsMutable(); AbstractMessageLite.addAll(values, this.rules_); } /* access modifiers changed from: private */ public void clearRules() { this.rules_ = emptyProtobufList(); } /* access modifiers changed from: private */ public void removeRules(int index) { ensureRulesIsMutable(); this.rules_.remove(index); } public boolean getFullyDecodeReservedExpansion() { return this.fullyDecodeReservedExpansion_; } /* access modifiers changed from: private */ public void setFullyDecodeReservedExpansion(boolean value) { this.fullyDecodeReservedExpansion_ = value; } /* access modifiers changed from: private */ public void clearFullyDecodeReservedExpansion() { this.fullyDecodeReservedExpansion_ = false; } public static Http parseFrom(ByteBuffer data) throws InvalidProtocolBufferException { return (Http) GeneratedMessageLite.parseFrom(DEFAULT_INSTANCE, data); } public static Http parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException { return (Http) GeneratedMessageLite.parseFrom(DEFAULT_INSTANCE, data, extensionRegistry); } public static Http parseFrom(ByteString data) throws InvalidProtocolBufferException { return (Http) GeneratedMessageLite.parseFrom(DEFAULT_INSTANCE, data); } public static Http parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException { return (Http) GeneratedMessageLite.parseFrom(DEFAULT_INSTANCE, data, extensionRegistry); } public static Http parseFrom(byte[] data) throws InvalidProtocolBufferException { return (Http) GeneratedMessageLite.parseFrom(DEFAULT_INSTANCE, data); } public static Http parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException { return (Http) GeneratedMessageLite.parseFrom(DEFAULT_INSTANCE, data, extensionRegistry); } public static Http parseFrom(InputStream input) throws IOException { return (Http) GeneratedMessageLite.parseFrom(DEFAULT_INSTANCE, input); } public static Http parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException { return (Http) GeneratedMessageLite.parseFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static Http parseDelimitedFrom(InputStream input) throws IOException { return (Http) parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static Http parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException { return (Http) parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static Http parseFrom(CodedInputStream input) throws IOException { return (Http) GeneratedMessageLite.parseFrom(DEFAULT_INSTANCE, input); } public static Http parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException { return (Http) GeneratedMessageLite.parseFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static Builder newBuilder() { return (Builder) DEFAULT_INSTANCE.createBuilder(); } public static Builder newBuilder(Http prototype) { return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } public static final class Builder extends GeneratedMessageLite.Builder<Http, Builder> implements HttpOrBuilder { /* synthetic */ Builder(C31951 x0) { this(); } private Builder() { super(Http.DEFAULT_INSTANCE); } public List<HttpRule> getRulesList() { return Collections.unmodifiableList(((Http) this.instance).getRulesList()); } public int getRulesCount() { return ((Http) this.instance).getRulesCount(); } public HttpRule getRules(int index) { return ((Http) this.instance).getRules(index); } public Builder setRules(int index, HttpRule value) { copyOnWrite(); ((Http) this.instance).setRules(index, value); return this; } public Builder setRules(int index, HttpRule.Builder builderForValue) { copyOnWrite(); ((Http) this.instance).setRules(index, (HttpRule) builderForValue.build()); return this; } public Builder addRules(HttpRule value) { copyOnWrite(); ((Http) this.instance).addRules(value); return this; } public Builder addRules(int index, HttpRule value) { copyOnWrite(); ((Http) this.instance).addRules(index, value); return this; } public Builder addRules(HttpRule.Builder builderForValue) { copyOnWrite(); ((Http) this.instance).addRules((HttpRule) builderForValue.build()); return this; } public Builder addRules(int index, HttpRule.Builder builderForValue) { copyOnWrite(); ((Http) this.instance).addRules(index, (HttpRule) builderForValue.build()); return this; } public Builder addAllRules(Iterable<? extends HttpRule> values) { copyOnWrite(); ((Http) this.instance).addAllRules(values); return this; } public Builder clearRules() { copyOnWrite(); ((Http) this.instance).clearRules(); return this; } public Builder removeRules(int index) { copyOnWrite(); ((Http) this.instance).removeRules(index); return this; } public boolean getFullyDecodeReservedExpansion() { return ((Http) this.instance).getFullyDecodeReservedExpansion(); } public Builder setFullyDecodeReservedExpansion(boolean value) { copyOnWrite(); ((Http) this.instance).setFullyDecodeReservedExpansion(value); return this; } public Builder clearFullyDecodeReservedExpansion() { copyOnWrite(); ((Http) this.instance).clearFullyDecodeReservedExpansion(); return this; } } /* renamed from: com.google.api.Http$1 */ static /* synthetic */ class C31951 { /* renamed from: $SwitchMap$com$google$protobuf$GeneratedMessageLite$MethodToInvoke */ static final /* synthetic */ int[] f1569xa1df5c61; static { int[] iArr = new int[GeneratedMessageLite.MethodToInvoke.values().length]; f1569xa1df5c61 = iArr; try { iArr[GeneratedMessageLite.MethodToInvoke.NEW_MUTABLE_INSTANCE.ordinal()] = 1; } catch (NoSuchFieldError e) { } try { f1569xa1df5c61[GeneratedMessageLite.MethodToInvoke.NEW_BUILDER.ordinal()] = 2; } catch (NoSuchFieldError e2) { } try { f1569xa1df5c61[GeneratedMessageLite.MethodToInvoke.BUILD_MESSAGE_INFO.ordinal()] = 3; } catch (NoSuchFieldError e3) { } try { f1569xa1df5c61[GeneratedMessageLite.MethodToInvoke.GET_DEFAULT_INSTANCE.ordinal()] = 4; } catch (NoSuchFieldError e4) { } try { f1569xa1df5c61[GeneratedMessageLite.MethodToInvoke.GET_PARSER.ordinal()] = 5; } catch (NoSuchFieldError e5) { } try { f1569xa1df5c61[GeneratedMessageLite.MethodToInvoke.GET_MEMOIZED_IS_INITIALIZED.ordinal()] = 6; } catch (NoSuchFieldError e6) { } try { f1569xa1df5c61[GeneratedMessageLite.MethodToInvoke.SET_MEMOIZED_IS_INITIALIZED.ordinal()] = 7; } catch (NoSuchFieldError e7) { } } } /* access modifiers changed from: protected */ public final Object dynamicMethod(GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) { switch (C31951.f1569xa1df5c61[method.ordinal()]) { case 1: return new Http(); case 2: return new Builder((C31951) null); case 3: return newMessageInfo(DEFAULT_INSTANCE, "\u0000\u0002\u0000\u0000\u0001\u0002\u0002\u0000\u0001\u0000\u0001\u001b\u0002\u0007", new Object[]{"rules_", HttpRule.class, "fullyDecodeReservedExpansion_"}); case 4: return DEFAULT_INSTANCE; case 5: Parser<Http> parser = PARSER; if (parser == null) { synchronized (Http.class) { parser = PARSER; if (parser == null) { parser = new GeneratedMessageLite.DefaultInstanceBasedParser<>(DEFAULT_INSTANCE); PARSER = parser; } } } return parser; case 6: return (byte) 1; case 7: return null; default: throw new UnsupportedOperationException(); } } static { Http defaultInstance = new Http(); DEFAULT_INSTANCE = defaultInstance; GeneratedMessageLite.registerDefaultInstance(Http.class, defaultInstance); } public static Http getDefaultInstance() { return DEFAULT_INSTANCE; } public static Parser<Http> parser() { return DEFAULT_INSTANCE.getParserForType(); } }
[ "agiapong@gmail.com" ]
agiapong@gmail.com
abde04d42403bb9955af644f9daea01b3be1b472
c885ef92397be9d54b87741f01557f61d3f794f3
/tests-without-trycatch/JxPath-14/org.apache.commons.jxpath.ri.compiler.CoreFunction/BBC-F0-opt-40/16/org/apache/commons/jxpath/ri/compiler/CoreFunction_ESTest.java
06b99fc2b6042c187751c03d0c58c157fe3e88f8
[ "CC-BY-4.0", "MIT" ]
permissive
pderakhshanfar/EMSE-BBC-experiment
f60ac5f7664dd9a85f755a00a57ec12c7551e8c6
fea1a92c2e7ba7080b8529e2052259c9b697bbda
refs/heads/main
2022-11-25T00:39:58.983828
2022-04-12T16:04:26
2022-04-12T16:04:26
309,335,889
0
1
null
2021-11-05T11:18:43
2020-11-02T10:30:38
null
UTF-8
Java
false
false
184,122
java
/* * This file was automatically generated by EvoSuite * Thu Oct 21 00:01:12 GMT 2021 */ package org.apache.commons.jxpath.ri.compiler; import org.junit.Test; import static org.junit.Assert.*; import static org.evosuite.shaded.org.mockito.Mockito.*; import static org.evosuite.runtime.EvoAssertions.*; import java.util.Locale; import java.util.function.Consumer; import org.apache.commons.jxpath.BasicNodeSet; import org.apache.commons.jxpath.BasicVariables; import org.apache.commons.jxpath.JXPathContext; import org.apache.commons.jxpath.Pointer; import org.apache.commons.jxpath.ri.EvalContext; import org.apache.commons.jxpath.ri.JXPathContextReferenceImpl; import org.apache.commons.jxpath.ri.QName; import org.apache.commons.jxpath.ri.axes.AncestorContext; import org.apache.commons.jxpath.ri.axes.AttributeContext; import org.apache.commons.jxpath.ri.axes.ChildContext; import org.apache.commons.jxpath.ri.axes.DescendantContext; import org.apache.commons.jxpath.ri.axes.InitialContext; import org.apache.commons.jxpath.ri.axes.NamespaceContext; import org.apache.commons.jxpath.ri.axes.NodeSetContext; import org.apache.commons.jxpath.ri.axes.ParentContext; import org.apache.commons.jxpath.ri.axes.PrecedingOrFollowingContext; import org.apache.commons.jxpath.ri.axes.PredicateContext; import org.apache.commons.jxpath.ri.axes.RootContext; import org.apache.commons.jxpath.ri.axes.SelfContext; import org.apache.commons.jxpath.ri.axes.UnionContext; import org.apache.commons.jxpath.ri.compiler.Constant; import org.apache.commons.jxpath.ri.compiler.CoreFunction; import org.apache.commons.jxpath.ri.compiler.CoreOperationAdd; import org.apache.commons.jxpath.ri.compiler.CoreOperationAnd; import org.apache.commons.jxpath.ri.compiler.CoreOperationDivide; import org.apache.commons.jxpath.ri.compiler.CoreOperationEqual; import org.apache.commons.jxpath.ri.compiler.CoreOperationGreaterThan; import org.apache.commons.jxpath.ri.compiler.CoreOperationGreaterThanOrEqual; import org.apache.commons.jxpath.ri.compiler.CoreOperationLessThan; import org.apache.commons.jxpath.ri.compiler.CoreOperationLessThanOrEqual; import org.apache.commons.jxpath.ri.compiler.CoreOperationMod; import org.apache.commons.jxpath.ri.compiler.CoreOperationMultiply; import org.apache.commons.jxpath.ri.compiler.CoreOperationNegate; import org.apache.commons.jxpath.ri.compiler.CoreOperationNotEqual; import org.apache.commons.jxpath.ri.compiler.CoreOperationOr; import org.apache.commons.jxpath.ri.compiler.CoreOperationSubtract; import org.apache.commons.jxpath.ri.compiler.CoreOperationUnion; import org.apache.commons.jxpath.ri.compiler.Expression; import org.apache.commons.jxpath.ri.compiler.ExpressionPath; import org.apache.commons.jxpath.ri.compiler.ExtensionFunction; import org.apache.commons.jxpath.ri.compiler.LocationPath; import org.apache.commons.jxpath.ri.compiler.NameAttributeTest; import org.apache.commons.jxpath.ri.compiler.NodeNameTest; import org.apache.commons.jxpath.ri.compiler.NodeTest; import org.apache.commons.jxpath.ri.compiler.NodeTypeTest; import org.apache.commons.jxpath.ri.compiler.ProcessingInstructionTest; import org.apache.commons.jxpath.ri.compiler.Step; import org.apache.commons.jxpath.ri.compiler.VariableReference; import org.apache.commons.jxpath.ri.model.NodePointer; import org.apache.commons.jxpath.ri.model.VariablePointer; import org.apache.commons.jxpath.ri.model.beans.BeanPointer; import org.apache.commons.jxpath.ri.model.beans.NullPointer; import org.evosuite.runtime.EvoRunner; import org.evosuite.runtime.EvoRunnerParameters; import org.evosuite.runtime.ViolatedAssumptionAnswer; import org.junit.runner.RunWith; @RunWith(EvoRunner.class) @EvoRunnerParameters(mockJVMNonDeterminism = true, useVFS = true, useVNET = true, resetStaticState = true, separateClassLoader = true) public class CoreFunction_ESTest extends CoreFunction_ESTest_scaffolding { @Test(timeout = 4000) public void test000() throws Throwable { Expression[] expressionArray0 = new Expression[4]; CoreFunction coreFunction0 = new CoreFunction(30, expressionArray0); EvalContext[] evalContextArray0 = new EvalContext[2]; UnionContext unionContext0 = new UnionContext((EvalContext) null, evalContextArray0); // Undeclared exception! // try { coreFunction0.computeValue(unionContext0); // fail("Expecting exception: RuntimeException"); // } catch(RuntimeException e) { // // // // Incorrect number of arguments: format-number(null, null, null, null) // // // verifyException("org.apache.commons.jxpath.ri.compiler.CoreFunction", e); // } } @Test(timeout = 4000) public void test001() throws Throwable { CoreFunction coreFunction0 = new CoreFunction(6, (Expression[]) null); ExpressionPath expressionPath0 = new ExpressionPath(coreFunction0, (Expression[]) null, (Step[]) null); NodeTypeTest nodeTypeTest0 = new NodeTypeTest(6); PrecedingOrFollowingContext precedingOrFollowingContext0 = new PrecedingOrFollowingContext((EvalContext) null, nodeTypeTest0, true); EvalContext evalContext0 = expressionPath0.createContextForStep(precedingOrFollowingContext0, 6, nodeTypeTest0); BasicNodeSet basicNodeSet0 = new BasicNodeSet(); NodeSetContext nodeSetContext0 = new NodeSetContext(evalContext0, basicNodeSet0); nodeSetContext0.toString(); Object object0 = coreFunction0.functionLast(nodeSetContext0); assertEquals(1, nodeSetContext0.getPosition()); assertEquals(0.0, object0); } @Test(timeout = 4000) public void test002() throws Throwable { Expression[] expressionArray0 = new Expression[0]; CoreFunction coreFunction0 = new CoreFunction(30, expressionArray0); boolean boolean0 = coreFunction0.computeContextDependent(); assertFalse(boolean0); assertEquals(30, coreFunction0.getFunctionCode()); } @Test(timeout = 4000) public void test003() throws Throwable { CoreFunction coreFunction0 = new CoreFunction((-929), (Expression[]) null); ProcessingInstructionTest processingInstructionTest0 = new ProcessingInstructionTest("Y'bV"); AttributeContext attributeContext0 = new AttributeContext((EvalContext) null, processingInstructionTest0); coreFunction0.functionStringLength(attributeContext0); assertEquals((-929), coreFunction0.getFunctionCode()); } @Test(timeout = 4000) public void test004() throws Throwable { CoreFunction coreFunction0 = new CoreFunction((-929), (Expression[]) null); ProcessingInstructionTest processingInstructionTest0 = new ProcessingInstructionTest("Y'bV"); AttributeContext attributeContext0 = new AttributeContext((EvalContext) null, processingInstructionTest0); PrecedingOrFollowingContext precedingOrFollowingContext0 = new PrecedingOrFollowingContext(attributeContext0, processingInstructionTest0, false); coreFunction0.functionPosition(precedingOrFollowingContext0); assertEquals((-929), coreFunction0.getFunctionCode()); } @Test(timeout = 4000) public void test005() throws Throwable { Expression[] expressionArray0 = new Expression[8]; CoreFunction coreFunction0 = new CoreFunction((-231), expressionArray0); Expression[] expressionArray1 = new Expression[1]; expressionArray1[0] = (Expression) coreFunction0; CoreFunction coreFunction1 = new CoreFunction(9, expressionArray1); coreFunction1.functionNumber((EvalContext) null); assertEquals(9, coreFunction1.getFunctionCode()); } @Test(timeout = 4000) public void test006() throws Throwable { CoreFunction coreFunction0 = new CoreFunction((-4069), (Expression[]) null); coreFunction0.functionTrue((EvalContext) null); assertEquals((-4069), coreFunction0.getFunctionCode()); } @Test(timeout = 4000) public void test007() throws Throwable { Expression[] expressionArray0 = new Expression[1]; Byte byte0 = new Byte((byte) (-58)); Constant constant0 = new Constant(byte0); expressionArray0[0] = (Expression) constant0; CoreFunction coreFunction0 = new CoreFunction(2, expressionArray0); Object object0 = coreFunction0.functionRound((EvalContext) null); assertEquals((-58.0), object0); assertEquals(2, coreFunction0.getFunctionCode()); } @Test(timeout = 4000) public void test008() throws Throwable { CoreFunction coreFunction0 = new CoreFunction((-2409), (Expression[]) null); NodeTypeTest nodeTypeTest0 = new NodeTypeTest((-2409)); PrecedingOrFollowingContext precedingOrFollowingContext0 = new PrecedingOrFollowingContext((EvalContext) null, nodeTypeTest0, false); NamespaceContext namespaceContext0 = new NamespaceContext(precedingOrFollowingContext0, nodeTypeTest0); // Undeclared exception! // try { coreFunction0.functionLocalName(namespaceContext0); // fail("Expecting exception: NullPointerException"); // } catch(NullPointerException e) { // // // // no message in exception (getMessage() returned null) // // // verifyException("org.apache.commons.jxpath.ri.compiler.CoreFunction", e); // } } @Test(timeout = 4000) public void test009() throws Throwable { Expression[] expressionArray0 = new Expression[1]; Byte byte0 = new Byte((byte) (-58)); Constant constant0 = new Constant(byte0); expressionArray0[0] = (Expression) constant0; CoreFunction coreFunction0 = new CoreFunction(2, expressionArray0); Object object0 = coreFunction0.functionFloor((EvalContext) null); assertEquals((-58.0), object0); assertEquals(2, coreFunction0.getFunctionCode()); } @Test(timeout = 4000) public void test010() throws Throwable { CoreFunction coreFunction0 = new CoreFunction(2254, (Expression[]) null); coreFunction0.functionFalse((EvalContext) null); assertEquals(2254, coreFunction0.getFunctionCode()); } @Test(timeout = 4000) public void test011() throws Throwable { Expression[] expressionArray0 = new Expression[1]; Constant constant0 = new Constant("round"); expressionArray0[0] = (Expression) constant0; CoreFunction coreFunction0 = new CoreFunction(0, expressionArray0); JXPathContextReferenceImpl jXPathContextReferenceImpl0 = mock(JXPathContextReferenceImpl.class, new ViolatedAssumptionAnswer()); RootContext rootContext0 = new RootContext(jXPathContextReferenceImpl0, (NodePointer) null); Object object0 = coreFunction0.functionCeiling(rootContext0); assertEquals(Double.NaN, object0); } @Test(timeout = 4000) public void test012() throws Throwable { Expression[] expressionArray0 = new Expression[4]; CoreFunction coreFunction0 = new CoreFunction(0, expressionArray0); int int0 = coreFunction0.getFunctionCode(); assertEquals(0, int0); } @Test(timeout = 4000) public void test013() throws Throwable { Expression[] expressionArray0 = new Expression[8]; CoreFunction coreFunction0 = new CoreFunction((-643), expressionArray0); int int0 = coreFunction0.getFunctionCode(); assertEquals((-643), int0); } @Test(timeout = 4000) public void test014() throws Throwable { Expression[] expressionArray0 = new Expression[1]; CoreFunction coreFunction0 = new CoreFunction(590, expressionArray0); coreFunction0.getArgumentCount(); assertEquals(590, coreFunction0.getFunctionCode()); } @Test(timeout = 4000) public void test015() throws Throwable { Expression[] expressionArray0 = new Expression[5]; Constant constant0 = new Constant(""); CoreOperationMod coreOperationMod0 = new CoreOperationMod(constant0, constant0); expressionArray0[2] = (Expression) coreOperationMod0; CoreFunction coreFunction0 = new CoreFunction((-1187), expressionArray0); Expression expression0 = coreFunction0.getArg3(); assertNotNull(expression0); assertEquals((-1187), coreFunction0.getFunctionCode()); } @Test(timeout = 4000) public void test016() throws Throwable { Expression[] expressionArray0 = new Expression[2]; Constant constant0 = new Constant((String) null); CoreOperationSubtract coreOperationSubtract0 = new CoreOperationSubtract(constant0, expressionArray0[0]); expressionArray0[1] = (Expression) coreOperationSubtract0; CoreFunction coreFunction0 = new CoreFunction(3, expressionArray0); Expression expression0 = coreFunction0.getArg2(); assertEquals(3, coreFunction0.getFunctionCode()); assertNotNull(expression0); } @Test(timeout = 4000) public void test017() throws Throwable { Expression[] expressionArray0 = new Expression[8]; CoreFunction coreFunction0 = new CoreFunction((-31), expressionArray0); coreFunction0.getArg1(); assertEquals((-31), coreFunction0.getFunctionCode()); } @Test(timeout = 4000) public void test018() throws Throwable { Expression[] expressionArray0 = new Expression[2]; CoreOperationOr coreOperationOr0 = new CoreOperationOr(expressionArray0); CoreOperationNegate coreOperationNegate0 = new CoreOperationNegate(coreOperationOr0); expressionArray0[0] = (Expression) coreOperationNegate0; CoreFunction coreFunction0 = new CoreFunction(0, expressionArray0); CoreOperationNegate coreOperationNegate1 = (CoreOperationNegate)coreFunction0.getArg1(); assertEquals("-", coreOperationNegate1.getSymbol()); } @Test(timeout = 4000) public void test019() throws Throwable { Expression[] expressionArray0 = new Expression[1]; Byte byte0 = new Byte((byte) (-58)); Constant constant0 = new Constant(byte0); expressionArray0[0] = (Expression) constant0; CoreFunction coreFunction0 = new CoreFunction(2, expressionArray0); coreFunction0.functionString((EvalContext) null); assertEquals(2, coreFunction0.getFunctionCode()); } @Test(timeout = 4000) public void test020() throws Throwable { Expression[] expressionArray0 = new Expression[0]; CoreFunction coreFunction0 = new CoreFunction(0, expressionArray0); Object object0 = coreFunction0.functionNull((EvalContext) null); assertNull(object0); } @Test(timeout = 4000) public void test021() throws Throwable { CoreFunction coreFunction0 = new CoreFunction((-2409), (Expression[]) null); coreFunction0.compute((EvalContext) null); assertEquals((-2409), coreFunction0.getFunctionCode()); } @Test(timeout = 4000) public void test022() throws Throwable { Expression[] expressionArray0 = new Expression[5]; Constant constant0 = new Constant(""); Step[] stepArray0 = new Step[9]; ExpressionPath expressionPath0 = new ExpressionPath(constant0, expressionArray0, stepArray0); expressionArray0[1] = (Expression) expressionPath0; CoreFunction coreFunction0 = new CoreFunction(2, expressionArray0); // Undeclared exception! coreFunction0.toString(); } @Test(timeout = 4000) public void test023() throws Throwable { Expression[] expressionArray0 = new Expression[1]; QName qName0 = new QName("org.apache.commons.jxpath.ri.axes.PredicateContext"); ExtensionFunction extensionFunction0 = new ExtensionFunction(qName0, expressionArray0); expressionArray0[0] = (Expression) extensionFunction0; CoreFunction coreFunction0 = new CoreFunction(1652, expressionArray0); // Undeclared exception! // try { coreFunction0.toString(); // fail("Expecting exception: StackOverflowError"); // } catch(StackOverflowError e) { // // // // no message in exception (getMessage() returned null) // // // } } @Test(timeout = 4000) public void test024() throws Throwable { Expression[] expressionArray0 = new Expression[5]; CoreOperationEqual coreOperationEqual0 = new CoreOperationEqual((Expression) null, (Expression) null); expressionArray0[0] = (Expression) coreOperationEqual0; CoreFunction coreFunction0 = new CoreFunction(64, expressionArray0); // Undeclared exception! // try { coreFunction0.toString(); // fail("Expecting exception: NullPointerException"); // } catch(NullPointerException e) { // // // // no message in exception (getMessage() returned null) // // // verifyException("org.evosuite.runtime.System", e); // } } @Test(timeout = 4000) public void test025() throws Throwable { CoreFunction coreFunction0 = new CoreFunction((-2409), (Expression[]) null); // Undeclared exception! // try { coreFunction0.getArg3(); // fail("Expecting exception: NullPointerException"); // } catch(NullPointerException e) { // // // // no message in exception (getMessage() returned null) // // // verifyException("org.apache.commons.jxpath.ri.compiler.CoreFunction", e); // } } @Test(timeout = 4000) public void test026() throws Throwable { Expression[] expressionArray0 = new Expression[1]; CoreFunction coreFunction0 = new CoreFunction((-1172), expressionArray0); // Undeclared exception! // try { coreFunction0.getArg3(); // fail("Expecting exception: ArrayIndexOutOfBoundsException"); // } catch(ArrayIndexOutOfBoundsException e) { // // // // 2 // // // verifyException("org.apache.commons.jxpath.ri.compiler.CoreFunction", e); // } } @Test(timeout = 4000) public void test027() throws Throwable { CoreFunction coreFunction0 = new CoreFunction(0, (Expression[]) null); // Undeclared exception! // try { coreFunction0.getArg2(); // fail("Expecting exception: NullPointerException"); // } catch(NullPointerException e) { // // // // no message in exception (getMessage() returned null) // // // verifyException("org.apache.commons.jxpath.ri.compiler.CoreFunction", e); // } } @Test(timeout = 4000) public void test028() throws Throwable { Expression[] expressionArray0 = new Expression[1]; CoreFunction coreFunction0 = new CoreFunction(2, expressionArray0); // Undeclared exception! // try { coreFunction0.getArg2(); // fail("Expecting exception: ArrayIndexOutOfBoundsException"); // } catch(ArrayIndexOutOfBoundsException e) { // // // // 1 // // // verifyException("org.apache.commons.jxpath.ri.compiler.CoreFunction", e); // } } @Test(timeout = 4000) public void test029() throws Throwable { Expression[] expressionArray0 = new Expression[0]; CoreFunction coreFunction0 = new CoreFunction(16, expressionArray0); // Undeclared exception! // try { coreFunction0.getArg1(); // fail("Expecting exception: ArrayIndexOutOfBoundsException"); // } catch(ArrayIndexOutOfBoundsException e) { // // // // 0 // // // verifyException("org.apache.commons.jxpath.ri.compiler.CoreFunction", e); // } } @Test(timeout = 4000) public void test030() throws Throwable { Expression[] expressionArray0 = new Expression[4]; QName qName0 = new QName("$deYD%"); ExtensionFunction extensionFunction0 = new ExtensionFunction(qName0, expressionArray0); expressionArray0[2] = (Expression) extensionFunction0; CoreFunction coreFunction0 = new CoreFunction(8, expressionArray0); // Undeclared exception! coreFunction0.functionTrue((EvalContext) null); } @Test(timeout = 4000) public void test031() throws Throwable { Expression[] expressionArray0 = new Expression[8]; CoreOperationMod coreOperationMod0 = new CoreOperationMod((Expression) null, (Expression) null); expressionArray0[0] = (Expression) coreOperationMod0; CoreFunction coreFunction0 = new CoreFunction(9, expressionArray0); // Undeclared exception! // try { coreFunction0.functionTrue((EvalContext) null); // fail("Expecting exception: NullPointerException"); // } catch(NullPointerException e) { // // // // no message in exception (getMessage() returned null) // // // verifyException("org.evosuite.runtime.System", e); // } } @Test(timeout = 4000) public void test032() throws Throwable { Expression[] expressionArray0 = new Expression[5]; ExtensionFunction extensionFunction0 = new ExtensionFunction((QName) null, expressionArray0); expressionArray0[2] = (Expression) extensionFunction0; CoreFunction coreFunction0 = new CoreFunction(40, expressionArray0); // Undeclared exception! coreFunction0.functionTranslate((EvalContext) null); } @Test(timeout = 4000) public void test033() throws Throwable { Expression[] expressionArray0 = new Expression[8]; CoreFunction coreFunction0 = new CoreFunction(9, expressionArray0); // Undeclared exception! // try { coreFunction0.functionTranslate((EvalContext) null); // fail("Expecting exception: RuntimeException"); // } catch(RuntimeException e) { // // // // Incorrect number of arguments: concat(null, null, null, null, null, null, null, null) // // // verifyException("org.apache.commons.jxpath.ri.compiler.CoreFunction", e); // } } @Test(timeout = 4000) public void test034() throws Throwable { Expression[] expressionArray0 = new Expression[8]; CoreOperationSubtract coreOperationSubtract0 = new CoreOperationSubtract((Expression) null, (Expression) null); expressionArray0[0] = (Expression) coreOperationSubtract0; CoreFunction coreFunction0 = new CoreFunction(18, expressionArray0); // Undeclared exception! // try { coreFunction0.functionTranslate((EvalContext) null); // fail("Expecting exception: NullPointerException"); // } catch(NullPointerException e) { // // // // no message in exception (getMessage() returned null) // // // verifyException("org.evosuite.runtime.System", e); // } } @Test(timeout = 4000) public void test035() throws Throwable { Expression[] expressionArray0 = new Expression[3]; Constant constant0 = new Constant("X=jagroiUfi"); NameAttributeTest nameAttributeTest0 = new NameAttributeTest(constant0, constant0); CoreOperationMod coreOperationMod0 = new CoreOperationMod(nameAttributeTest0, nameAttributeTest0); expressionArray0[0] = (Expression) coreOperationMod0; CoreFunction coreFunction0 = new CoreFunction((-3930), expressionArray0); // Undeclared exception! // try { coreFunction0.functionTranslate((EvalContext) null); // fail("Expecting exception: ArithmeticException"); // } catch(ArithmeticException e) { // // // // no message in exception (getMessage() returned null) // // // } } @Test(timeout = 4000) public void test036() throws Throwable { Expression[] expressionArray0 = new Expression[5]; Step[] stepArray0 = new Step[5]; ProcessingInstructionTest processingInstructionTest0 = new ProcessingInstructionTest("@*D=qLJ_Z*[}MLl"); Step step0 = new Step(32, processingInstructionTest0, expressionArray0); stepArray0[0] = step0; LocationPath locationPath0 = new LocationPath(true, stepArray0); expressionArray0[1] = (Expression) locationPath0; CoreFunction coreFunction0 = new CoreFunction(8, expressionArray0); // Undeclared exception! // try { coreFunction0.functionSum((EvalContext) null); // fail("Expecting exception: StackOverflowError"); // } catch(StackOverflowError e) { // // // // no message in exception (getMessage() returned null) // // // } } @Test(timeout = 4000) public void test037() throws Throwable { Expression[] expressionArray0 = new Expression[1]; CoreFunction coreFunction0 = new CoreFunction(0, expressionArray0); // Undeclared exception! // try { coreFunction0.functionSum((EvalContext) null); // fail("Expecting exception: NullPointerException"); // } catch(NullPointerException e) { // // // // no message in exception (getMessage() returned null) // // // verifyException("org.apache.commons.jxpath.ri.compiler.CoreFunction", e); // } } @Test(timeout = 4000) public void test038() throws Throwable { Expression[] expressionArray0 = new Expression[8]; CoreFunction coreFunction0 = new CoreFunction(9, expressionArray0); // Undeclared exception! // try { coreFunction0.functionSubstringBefore((EvalContext) null); // fail("Expecting exception: RuntimeException"); // } catch(RuntimeException e) { // // // // Incorrect number of arguments: concat(null, null, null, null, null, null, null, null) // // // verifyException("org.apache.commons.jxpath.ri.compiler.CoreFunction", e); // } } @Test(timeout = 4000) public void test039() throws Throwable { Expression[] expressionArray0 = new Expression[3]; QName qName0 = new QName(""); ExtensionFunction extensionFunction0 = new ExtensionFunction(qName0, expressionArray0); expressionArray0[0] = (Expression) extensionFunction0; CoreFunction coreFunction0 = new CoreFunction(13, expressionArray0); JXPathContextReferenceImpl jXPathContextReferenceImpl0 = (JXPathContextReferenceImpl)JXPathContext.newContext((JXPathContext) null, (Object) null); InitialContext initialContext0 = (InitialContext)jXPathContextReferenceImpl0.getAbsoluteRootContext(); // Undeclared exception! // try { coreFunction0.functionSubstringBefore(initialContext0); // fail("Expecting exception: StackOverflowError"); // } catch(StackOverflowError e) { // // // // no message in exception (getMessage() returned null) // // // } } @Test(timeout = 4000) public void test040() throws Throwable { Expression[] expressionArray0 = new Expression[2]; CoreFunction coreFunction0 = new CoreFunction(20, expressionArray0); // Undeclared exception! // try { coreFunction0.functionSubstringBefore((EvalContext) null); // fail("Expecting exception: NullPointerException"); // } catch(NullPointerException e) { // // // // no message in exception (getMessage() returned null) // // // verifyException("org.apache.commons.jxpath.ri.compiler.CoreFunction", e); // } } @Test(timeout = 4000) public void test041() throws Throwable { Expression[] expressionArray0 = new Expression[4]; CoreOperationOr coreOperationOr0 = new CoreOperationOr(expressionArray0); expressionArray0[0] = (Expression) coreOperationOr0; Constant constant0 = new Constant("[DocType: "); expressionArray0[1] = (Expression) constant0; CoreOperationNotEqual coreOperationNotEqual0 = new CoreOperationNotEqual(expressionArray0[0], expressionArray0[0]); expressionArray0[2] = (Expression) coreOperationNotEqual0; Step[] stepArray0 = new Step[6]; ExpressionPath expressionPath0 = new ExpressionPath(expressionArray0[1], expressionArray0, stepArray0); expressionArray0[3] = (Expression) expressionPath0; CoreFunction coreFunction0 = new CoreFunction(215, expressionArray0); // Undeclared exception! coreFunction0.functionSubstringAfter((EvalContext) null); } @Test(timeout = 4000) public void test042() throws Throwable { CoreFunction coreFunction0 = new CoreFunction((-2409), (Expression[]) null); NodeTypeTest nodeTypeTest0 = new NodeTypeTest((-2409)); PrecedingOrFollowingContext precedingOrFollowingContext0 = new PrecedingOrFollowingContext((EvalContext) null, nodeTypeTest0, true); // Undeclared exception! // try { coreFunction0.functionSubstringAfter(precedingOrFollowingContext0); // fail("Expecting exception: RuntimeException"); // } catch(RuntimeException e) { // // // // Incorrect number of arguments: unknownFunction-2409()() // // // verifyException("org.apache.commons.jxpath.ri.compiler.CoreFunction", e); // } } @Test(timeout = 4000) public void test043() throws Throwable { Expression[] expressionArray0 = new Expression[2]; QName qName0 = new QName("A'-iE.mP6=k"); ExtensionFunction extensionFunction0 = new ExtensionFunction(qName0, expressionArray0); CoreOperationLessThan coreOperationLessThan0 = new CoreOperationLessThan(extensionFunction0, extensionFunction0); expressionArray0[0] = (Expression) coreOperationLessThan0; CoreFunction coreFunction0 = new CoreFunction((-5423), expressionArray0); EvalContext[] evalContextArray0 = new EvalContext[0]; UnionContext unionContext0 = new UnionContext((EvalContext) null, evalContextArray0); // Undeclared exception! // try { coreFunction0.functionSubstringAfter(unionContext0); // fail("Expecting exception: StackOverflowError"); // } catch(StackOverflowError e) { // // // // no message in exception (getMessage() returned null) // // // } } @Test(timeout = 4000) public void test044() throws Throwable { Expression[] expressionArray0 = new Expression[2]; CoreFunction coreFunction0 = new CoreFunction(10, expressionArray0); // Undeclared exception! // try { coreFunction0.functionSubstringAfter((EvalContext) null); // fail("Expecting exception: NullPointerException"); // } catch(NullPointerException e) { // // // // no message in exception (getMessage() returned null) // // // verifyException("org.apache.commons.jxpath.ri.compiler.CoreFunction", e); // } } @Test(timeout = 4000) public void test045() throws Throwable { Expression[] expressionArray0 = new Expression[4]; Double double0 = Expression.NOT_A_NUMBER; Constant constant0 = new Constant(double0); Step[] stepArray0 = new Step[1]; QName qName0 = new QName("", ""); NodeNameTest nodeNameTest0 = new NodeNameTest(qName0, "[A"); ExpressionPath expressionPath0 = new ExpressionPath(constant0, expressionArray0, stepArray0); expressionArray0[3] = (Expression) expressionPath0; CoreFunction coreFunction0 = new CoreFunction(30, expressionArray0); SelfContext selfContext0 = new SelfContext((EvalContext) null, nodeNameTest0); // Undeclared exception! coreFunction0.functionSubstring(selfContext0); } @Test(timeout = 4000) public void test046() throws Throwable { CoreFunction coreFunction0 = new CoreFunction((-929), (Expression[]) null); // Undeclared exception! // try { coreFunction0.functionSubstring((EvalContext) null); // fail("Expecting exception: RuntimeException"); // } catch(RuntimeException e) { // // // // Incorrect number of arguments: unknownFunction-929()() // // // verifyException("org.apache.commons.jxpath.ri.compiler.CoreFunction", e); // } } @Test(timeout = 4000) public void test047() throws Throwable { Expression[] expressionArray0 = new Expression[3]; CoreOperationAnd coreOperationAnd0 = new CoreOperationAnd(expressionArray0); CoreOperationNegate coreOperationNegate0 = new CoreOperationNegate(coreOperationAnd0); CoreOperationMod coreOperationMod0 = new CoreOperationMod(coreOperationNegate0, (Expression) null); CoreOperationDivide coreOperationDivide0 = new CoreOperationDivide(coreOperationMod0, (Expression) null); expressionArray0[0] = (Expression) coreOperationDivide0; QName qName0 = new QName("", ""); NodeNameTest nodeNameTest0 = new NodeNameTest(qName0, "[A"); CoreFunction coreFunction0 = new CoreFunction(30, expressionArray0); SelfContext selfContext0 = new SelfContext((EvalContext) null, nodeNameTest0); // Undeclared exception! // try { coreFunction0.functionSubstring(selfContext0); // fail("Expecting exception: StackOverflowError"); // } catch(StackOverflowError e) { // // // // no message in exception (getMessage() returned null) // // // } } @Test(timeout = 4000) public void test048() throws Throwable { Expression[] expressionArray0 = new Expression[0]; CoreFunction coreFunction0 = new CoreFunction(2576, expressionArray0); QName qName0 = new QName("?y|/"); Integer integer0 = new Integer(2576); NodePointer nodePointer0 = NodePointer.newNodePointer(qName0, integer0, (Locale) null); JXPathContextReferenceImpl jXPathContextReferenceImpl0 = new JXPathContextReferenceImpl((JXPathContext) null, (Object) null, nodePointer0); RootContext rootContext0 = new RootContext(jXPathContextReferenceImpl0, nodePointer0); EvalContext evalContext0 = rootContext0.getVariableContext(qName0); // Undeclared exception! // try { coreFunction0.functionStringLength(evalContext0); // fail("Expecting exception: RuntimeException"); // } catch(RuntimeException e) { // // // // Undefined variable: ?y|/ // // // verifyException("org.apache.commons.jxpath.ri.model.VariablePointer$1", e); // } } @Test(timeout = 4000) public void test049() throws Throwable { Expression[] expressionArray0 = new Expression[8]; CoreFunction coreFunction0 = new CoreFunction((-31), expressionArray0); // Undeclared exception! // try { coreFunction0.functionStringLength((EvalContext) null); // fail("Expecting exception: RuntimeException"); // } catch(RuntimeException e) { // // // // Incorrect number of arguments: unknownFunction-31()(null, null, null, null, null, null, null, null) // // // verifyException("org.apache.commons.jxpath.ri.compiler.CoreFunction", e); // } } @Test(timeout = 4000) public void test050() throws Throwable { CoreFunction coreFunction0 = new CoreFunction(2, (Expression[]) null); // Undeclared exception! // try { coreFunction0.functionStringLength((EvalContext) null); // fail("Expecting exception: NullPointerException"); // } catch(NullPointerException e) { // // // // no message in exception (getMessage() returned null) // // // verifyException("org.apache.commons.jxpath.ri.compiler.CoreFunction", e); // } } @Test(timeout = 4000) public void test051() throws Throwable { CoreFunction coreFunction0 = new CoreFunction(23, (Expression[]) null); BasicNodeSet basicNodeSet0 = new BasicNodeSet(); NodeSetContext nodeSetContext0 = new NodeSetContext((EvalContext) null, basicNodeSet0); coreFunction0.functionLast(nodeSetContext0); // Undeclared exception! // try { coreFunction0.functionStringLength(nodeSetContext0); // fail("Expecting exception: IndexOutOfBoundsException"); // } catch(IndexOutOfBoundsException e) { // // // // Index: 0, Size: 0 // // // verifyException("java.util.ArrayList", e); // } } @Test(timeout = 4000) public void test052() throws Throwable { CoreFunction coreFunction0 = new CoreFunction(8, (Expression[]) null); JXPathContextReferenceImpl jXPathContextReferenceImpl0 = (JXPathContextReferenceImpl)JXPathContext.newContext((Object) coreFunction0); QName qName0 = new QName("]", "]"); BasicVariables basicVariables0 = new BasicVariables(); VariablePointer variablePointer0 = new VariablePointer(basicVariables0, qName0); RootContext rootContext0 = new RootContext(jXPathContextReferenceImpl0, variablePointer0); // Undeclared exception! // try { coreFunction0.functionStringLength(rootContext0); // fail("Expecting exception: IllegalArgumentException"); // } catch(IllegalArgumentException e) { // // // // No such variable: ']:]' // // // verifyException("org.apache.commons.jxpath.BasicVariables", e); // } } @Test(timeout = 4000) public void test053() throws Throwable { CoreFunction coreFunction0 = new CoreFunction(8, (Expression[]) null); JXPathContextReferenceImpl jXPathContextReferenceImpl0 = (JXPathContextReferenceImpl)JXPathContext.newContext((Object) coreFunction0); QName qName0 = new QName("", ""); VariablePointer variablePointer0 = new VariablePointer(qName0); BeanPointer beanPointer0 = (BeanPointer)NodePointer.newNodePointer(qName0, variablePointer0, (Locale) null); RootContext rootContext0 = new RootContext(jXPathContextReferenceImpl0, beanPointer0); // Undeclared exception! // try { coreFunction0.functionString(rootContext0); // fail("Expecting exception: RuntimeException"); // } catch(RuntimeException e) { // // // // Undefined variable: : // // // verifyException("org.apache.commons.jxpath.ri.model.VariablePointer$1", e); // } } @Test(timeout = 4000) public void test054() throws Throwable { Expression[] expressionArray0 = new Expression[2]; CoreFunction coreFunction0 = new CoreFunction(5, expressionArray0); // Undeclared exception! // try { coreFunction0.functionString((EvalContext) null); // fail("Expecting exception: RuntimeException"); // } catch(RuntimeException e) { // // // // Incorrect number of arguments: local-name(null, null) // // // verifyException("org.apache.commons.jxpath.ri.compiler.CoreFunction", e); // } } @Test(timeout = 4000) public void test055() throws Throwable { CoreFunction coreFunction0 = new CoreFunction(68, (Expression[]) null); JXPathContextReferenceImpl jXPathContextReferenceImpl0 = (JXPathContextReferenceImpl)JXPathContext.newContext((Object) coreFunction0); QName qName0 = new QName(";'"); VariablePointer variablePointer0 = new VariablePointer(qName0); RootContext rootContext0 = new RootContext(jXPathContextReferenceImpl0, variablePointer0); InitialContext initialContext0 = new InitialContext(rootContext0); ChildContext childContext0 = new ChildContext(initialContext0, (NodeTest) null, true, true); EvalContext[] evalContextArray0 = new EvalContext[2]; evalContextArray0[0] = (EvalContext) rootContext0; UnionContext unionContext0 = new UnionContext(childContext0, evalContextArray0); // Undeclared exception! // try { coreFunction0.functionString(unionContext0); // fail("Expecting exception: UnsupportedOperationException"); // } catch(UnsupportedOperationException e) { // // // // no message in exception (getMessage() returned null) // // // verifyException("org.apache.commons.jxpath.ri.axes.RootContext", e); // } } @Test(timeout = 4000) public void test056() throws Throwable { Expression[] expressionArray0 = new Expression[1]; CoreOperationUnion coreOperationUnion0 = new CoreOperationUnion(expressionArray0); CoreOperationSubtract coreOperationSubtract0 = new CoreOperationSubtract(coreOperationUnion0, coreOperationUnion0); CoreOperationNotEqual coreOperationNotEqual0 = new CoreOperationNotEqual(coreOperationSubtract0, coreOperationSubtract0); expressionArray0[0] = (Expression) coreOperationNotEqual0; CoreFunction coreFunction0 = new CoreFunction((-1895), expressionArray0); QName qName0 = new QName("}WY 2>9#0K1Mn<_zeM", "}WY 2>9#0K1Mn<_zeM"); NodeNameTest nodeNameTest0 = new NodeNameTest(qName0); DescendantContext descendantContext0 = new DescendantContext((EvalContext) null, false, nodeNameTest0); // Undeclared exception! // try { coreFunction0.functionString(descendantContext0); // fail("Expecting exception: StackOverflowError"); // } catch(StackOverflowError e) { // // // // no message in exception (getMessage() returned null) // // // } } @Test(timeout = 4000) public void test057() throws Throwable { Expression[] expressionArray0 = new Expression[0]; CoreFunction coreFunction0 = new CoreFunction(20, expressionArray0); BasicNodeSet basicNodeSet0 = new BasicNodeSet(); NodeSetContext nodeSetContext0 = new NodeSetContext((EvalContext) null, basicNodeSet0); coreFunction0.functionLast(nodeSetContext0); // Undeclared exception! // try { coreFunction0.functionString(nodeSetContext0); // fail("Expecting exception: IndexOutOfBoundsException"); // } catch(IndexOutOfBoundsException e) { // // // // Index: 0, Size: 0 // // // verifyException("java.util.ArrayList", e); // } } @Test(timeout = 4000) public void test058() throws Throwable { Expression[] expressionArray0 = new Expression[5]; QName qName0 = new QName((String) null, (String) null); ExtensionFunction extensionFunction0 = new ExtensionFunction(qName0, expressionArray0); Step[] stepArray0 = new Step[8]; ExpressionPath expressionPath0 = new ExpressionPath(extensionFunction0, expressionArray0, stepArray0); expressionArray0[0] = (Expression) expressionPath0; CoreFunction coreFunction0 = new CoreFunction(5188, expressionArray0); JXPathContextReferenceImpl jXPathContextReferenceImpl0 = (JXPathContextReferenceImpl)JXPathContext.newContext((Object) expressionPath0); VariablePointer variablePointer0 = new VariablePointer(qName0); RootContext rootContext0 = new RootContext(jXPathContextReferenceImpl0, variablePointer0); // Undeclared exception! // try { coreFunction0.functionStartsWith(rootContext0); // fail("Expecting exception: StackOverflowError"); // } catch(StackOverflowError e) { // // // // no message in exception (getMessage() returned null) // // // } } @Test(timeout = 4000) public void test059() throws Throwable { Expression[] expressionArray0 = new Expression[4]; CoreOperationMod coreOperationMod0 = new CoreOperationMod((Expression) null, (Expression) null); expressionArray0[0] = (Expression) coreOperationMod0; CoreFunction coreFunction0 = new CoreFunction(0, expressionArray0); // Undeclared exception! // try { coreFunction0.functionStartsWith((EvalContext) null); // fail("Expecting exception: NullPointerException"); // } catch(NullPointerException e) { // // // // no message in exception (getMessage() returned null) // // // verifyException("org.evosuite.runtime.System", e); // } } @Test(timeout = 4000) public void test060() throws Throwable { Expression[] expressionArray0 = new Expression[1]; QName qName0 = new QName("J{ `k'$UXmbq%1_Jl5"); ExtensionFunction extensionFunction0 = new ExtensionFunction(qName0, expressionArray0); CoreOperationNegate coreOperationNegate0 = new CoreOperationNegate(extensionFunction0); CoreOperationNotEqual coreOperationNotEqual0 = new CoreOperationNotEqual(coreOperationNegate0, coreOperationNegate0); CoreOperationDivide coreOperationDivide0 = new CoreOperationDivide(coreOperationNotEqual0, coreOperationNegate0); expressionArray0[0] = (Expression) coreOperationDivide0; CoreFunction coreFunction0 = new CoreFunction(764, expressionArray0); // Undeclared exception! // try { coreFunction0.functionRound((EvalContext) null); // fail("Expecting exception: StackOverflowError"); // } catch(StackOverflowError e) { // // // // no message in exception (getMessage() returned null) // // // } } @Test(timeout = 4000) public void test061() throws Throwable { Expression[] expressionArray0 = new Expression[1]; CoreFunction coreFunction0 = new CoreFunction(47, expressionArray0); // Undeclared exception! // try { coreFunction0.functionRound((EvalContext) null); // fail("Expecting exception: NullPointerException"); // } catch(NullPointerException e) { // // // // no message in exception (getMessage() returned null) // // // verifyException("org.apache.commons.jxpath.ri.compiler.CoreFunction", e); // } } @Test(timeout = 4000) public void test062() throws Throwable { Expression[] expressionArray0 = new Expression[4]; CoreFunction coreFunction0 = new CoreFunction(36, expressionArray0); // Undeclared exception! // try { coreFunction0.functionPosition((EvalContext) null); // fail("Expecting exception: RuntimeException"); // } catch(RuntimeException e) { // // // // Incorrect number of arguments: unknownFunction36()(null, null, null, null) // // // verifyException("org.apache.commons.jxpath.ri.compiler.CoreFunction", e); // } } @Test(timeout = 4000) public void test063() throws Throwable { CoreFunction coreFunction0 = new CoreFunction(8, (Expression[]) null); JXPathContextReferenceImpl jXPathContextReferenceImpl0 = (JXPathContextReferenceImpl)JXPathContext.newContext((Object) coreFunction0); QName qName0 = new QName("", ""); VariablePointer variablePointer0 = new VariablePointer(qName0); BeanPointer beanPointer0 = (BeanPointer)NodePointer.newNodePointer(qName0, variablePointer0, (Locale) null); RootContext rootContext0 = new RootContext(jXPathContextReferenceImpl0, beanPointer0); // Undeclared exception! // try { coreFunction0.functionPosition(rootContext0); // fail("Expecting exception: UnsupportedOperationException"); // } catch(UnsupportedOperationException e) { // // // // no message in exception (getMessage() returned null) // // // verifyException("org.apache.commons.jxpath.ri.axes.RootContext", e); // } } @Test(timeout = 4000) public void test064() throws Throwable { Expression[] expressionArray0 = new Expression[1]; Step[] stepArray0 = new Step[2]; ProcessingInstructionTest processingInstructionTest0 = new ProcessingInstructionTest("NaN(xQ,Lpm`"); Step step0 = new Step((-2535), processingInstructionTest0, expressionArray0); stepArray0[0] = step0; LocationPath locationPath0 = new LocationPath(true, stepArray0); expressionArray0[0] = (Expression) locationPath0; CoreFunction coreFunction0 = new CoreFunction((-2535), expressionArray0); PredicateContext predicateContext0 = new PredicateContext((EvalContext) null, locationPath0); NamespaceContext namespaceContext0 = new NamespaceContext(predicateContext0, processingInstructionTest0); // Undeclared exception! // try { coreFunction0.functionPosition(namespaceContext0); // fail("Expecting exception: StackOverflowError"); // } catch(StackOverflowError e) { // // // // no message in exception (getMessage() returned null) // // // } } @Test(timeout = 4000) public void test065() throws Throwable { CoreFunction coreFunction0 = new CoreFunction(6, (Expression[]) null); EvalContext evalContext0 = null; // Undeclared exception! // try { coreFunction0.functionPosition(evalContext0); // fail("Expecting exception: NullPointerException"); // } catch(NullPointerException e) { // // // // no message in exception (getMessage() returned null) // // // verifyException("org.apache.commons.jxpath.ri.compiler.CoreFunction", e); // } } @Test(timeout = 4000) public void test066() throws Throwable { Expression[] expressionArray0 = new Expression[2]; CoreFunction coreFunction0 = new CoreFunction(20, expressionArray0); // Undeclared exception! // try { coreFunction0.functionNumber((EvalContext) null); // fail("Expecting exception: RuntimeException"); // } catch(RuntimeException e) { // // // // Incorrect number of arguments: true(null, null) // // // verifyException("org.apache.commons.jxpath.ri.compiler.CoreFunction", e); // } } @Test(timeout = 4000) public void test067() throws Throwable { Expression[] expressionArray0 = new Expression[4]; QName qName0 = new QName((String) null, "Z1]#-z}RKUsH3LoS"); ExtensionFunction extensionFunction0 = new ExtensionFunction(qName0, expressionArray0); expressionArray0[0] = (Expression) extensionFunction0; CoreFunction coreFunction0 = new CoreFunction((-690), expressionArray0); // Undeclared exception! // try { coreFunction0.functionNumber((EvalContext) null); // fail("Expecting exception: StackOverflowError"); // } catch(StackOverflowError e) { // // // // no message in exception (getMessage() returned null) // // // } } @Test(timeout = 4000) public void test068() throws Throwable { CoreFunction coreFunction0 = new CoreFunction(9, (Expression[]) null); // Undeclared exception! // try { coreFunction0.functionNumber((EvalContext) null); // fail("Expecting exception: NullPointerException"); // } catch(NullPointerException e) { // // // // no message in exception (getMessage() returned null) // // // verifyException("org.apache.commons.jxpath.ri.compiler.CoreFunction", e); // } } @Test(timeout = 4000) public void test069() throws Throwable { CoreFunction coreFunction0 = new CoreFunction(6, (Expression[]) null); ExpressionPath expressionPath0 = new ExpressionPath(coreFunction0, (Expression[]) null, (Step[]) null); NodeTypeTest nodeTypeTest0 = new NodeTypeTest(6); PrecedingOrFollowingContext precedingOrFollowingContext0 = new PrecedingOrFollowingContext((EvalContext) null, nodeTypeTest0, true); EvalContext evalContext0 = expressionPath0.createContextForStep(precedingOrFollowingContext0, 6, nodeTypeTest0); BasicNodeSet basicNodeSet0 = new BasicNodeSet(); NodeSetContext nodeSetContext0 = new NodeSetContext(evalContext0, basicNodeSet0); coreFunction0.functionLast(nodeSetContext0); // Undeclared exception! // try { coreFunction0.functionNumber(nodeSetContext0); // fail("Expecting exception: IndexOutOfBoundsException"); // } catch(IndexOutOfBoundsException e) { // // // // Index: 0, Size: 0 // // // verifyException("java.util.ArrayList", e); // } } @Test(timeout = 4000) public void test070() throws Throwable { CoreFunction coreFunction0 = new CoreFunction(68, (Expression[]) null); JXPathContextReferenceImpl jXPathContextReferenceImpl0 = (JXPathContextReferenceImpl)JXPathContext.newContext((Object) coreFunction0); QName qName0 = new QName("l"); BasicVariables basicVariables0 = new BasicVariables(); VariablePointer variablePointer0 = new VariablePointer(basicVariables0, qName0); RootContext rootContext0 = new RootContext(jXPathContextReferenceImpl0, variablePointer0); // Undeclared exception! // try { coreFunction0.functionNumber(rootContext0); // fail("Expecting exception: IllegalArgumentException"); // } catch(IllegalArgumentException e) { // // // // No such variable: 'l' // // // verifyException("org.apache.commons.jxpath.BasicVariables", e); // } } @Test(timeout = 4000) public void test071() throws Throwable { Expression[] expressionArray0 = new Expression[8]; CoreOperationAdd coreOperationAdd0 = new CoreOperationAdd(expressionArray0); expressionArray0[0] = (Expression) coreOperationAdd0; CoreOperationOr coreOperationOr0 = new CoreOperationOr(expressionArray0); expressionArray0[1] = (Expression) coreOperationOr0; CoreOperationNotEqual coreOperationNotEqual0 = new CoreOperationNotEqual(expressionArray0[1], expressionArray0[1]); expressionArray0[2] = (Expression) coreOperationNotEqual0; QName qName0 = new QName("3x>?A8=t5CU%-Vvw", "O\"< MoF[gQp!h"); VariableReference variableReference0 = new VariableReference(qName0); expressionArray0[3] = (Expression) variableReference0; Step[] stepArray0 = new Step[6]; NodeNameTest nodeNameTest0 = new NodeNameTest(qName0, "0F]fmkgo<9jP=ZN^{x"); Step step0 = new Step(0, nodeNameTest0, expressionArray0); stepArray0[0] = step0; ExpressionPath expressionPath0 = new ExpressionPath(expressionArray0[0], expressionArray0, stepArray0); CoreOperationDivide coreOperationDivide0 = new CoreOperationDivide(expressionPath0, expressionArray0[1]); expressionArray0[4] = (Expression) coreOperationDivide0; LocationPath locationPath0 = new LocationPath(false, stepArray0); expressionArray0[5] = (Expression) locationPath0; CoreOperationLessThanOrEqual coreOperationLessThanOrEqual0 = new CoreOperationLessThanOrEqual(expressionArray0[3], expressionArray0[2]); CoreOperationMultiply coreOperationMultiply0 = new CoreOperationMultiply(expressionArray0[4], coreOperationLessThanOrEqual0); expressionArray0[6] = (Expression) coreOperationMultiply0; expressionArray0[7] = (Expression) coreOperationMultiply0; CoreFunction coreFunction0 = new CoreFunction(40, expressionArray0); // Undeclared exception! coreFunction0.functionNull((EvalContext) null); } @Test(timeout = 4000) public void test072() throws Throwable { Expression[] expressionArray0 = new Expression[4]; CoreFunction coreFunction0 = new CoreFunction(25, expressionArray0); PredicateContext predicateContext0 = new PredicateContext((EvalContext) null, coreFunction0); // Undeclared exception! // try { coreFunction0.functionNull(predicateContext0); // fail("Expecting exception: RuntimeException"); // } catch(RuntimeException e) { // // // // Incorrect number of arguments: floor(null, null, null, null) // // // verifyException("org.apache.commons.jxpath.ri.compiler.CoreFunction", e); // } } @Test(timeout = 4000) public void test073() throws Throwable { Expression[] expressionArray0 = new Expression[3]; Double double0 = Expression.ZERO; Constant constant0 = new Constant(double0); Step[] stepArray0 = new Step[5]; QName qName0 = new QName("2|^"); NodeNameTest nodeNameTest0 = new NodeNameTest(qName0); ExpressionPath expressionPath0 = new ExpressionPath(constant0, expressionArray0, stepArray0); expressionArray0[0] = (Expression) expressionPath0; CoreFunction coreFunction0 = new CoreFunction(2221, expressionArray0); AncestorContext ancestorContext0 = new AncestorContext((EvalContext) null, true, nodeNameTest0); // Undeclared exception! // try { coreFunction0.functionNull(ancestorContext0); // fail("Expecting exception: StackOverflowError"); // } catch(StackOverflowError e) { // // // // no message in exception (getMessage() returned null) // // // } } @Test(timeout = 4000) public void test074() throws Throwable { Expression[] expressionArray0 = new Expression[8]; CoreOperationAdd coreOperationAdd0 = new CoreOperationAdd(expressionArray0); expressionArray0[0] = (Expression) coreOperationAdd0; CoreFunction coreFunction0 = new CoreFunction(40, expressionArray0); // Undeclared exception! // try { coreFunction0.functionNull((EvalContext) null); // fail("Expecting exception: NullPointerException"); // } catch(NullPointerException e) { // // // // no message in exception (getMessage() returned null) // // // verifyException("org.evosuite.runtime.System", e); // } } @Test(timeout = 4000) public void test075() throws Throwable { Expression[] expressionArray0 = new Expression[1]; QName qName0 = new QName((String) null, "C6TEChsbzb)m"); Expression[] expressionArray1 = new Expression[9]; LocationPath locationPath0 = new LocationPath(false, (Step[]) null); CoreOperationGreaterThanOrEqual coreOperationGreaterThanOrEqual0 = new CoreOperationGreaterThanOrEqual(locationPath0, locationPath0); expressionArray1[0] = (Expression) coreOperationGreaterThanOrEqual0; ExtensionFunction extensionFunction0 = new ExtensionFunction(qName0, expressionArray1); expressionArray0[0] = (Expression) extensionFunction0; CoreFunction coreFunction0 = new CoreFunction(10, expressionArray0); JXPathContextReferenceImpl jXPathContextReferenceImpl0 = new JXPathContextReferenceImpl((JXPathContext) null, locationPath0, (Pointer) null); Locale locale0 = new Locale("false"); NodePointer nodePointer0 = NodePointer.newNodePointer(qName0, jXPathContextReferenceImpl0, locale0); RootContext rootContext0 = new RootContext(jXPathContextReferenceImpl0, nodePointer0); ProcessingInstructionTest processingInstructionTest0 = new ProcessingInstructionTest("C6TEChsbzb)m"); NamespaceContext namespaceContext0 = new NamespaceContext(rootContext0, processingInstructionTest0); EvalContext[] evalContextArray0 = new EvalContext[8]; evalContextArray0[0] = (EvalContext) rootContext0; UnionContext unionContext0 = new UnionContext(namespaceContext0, evalContextArray0); // Undeclared exception! // try { coreFunction0.functionNot(unionContext0); // fail("Expecting exception: UnsupportedOperationException"); // } catch(UnsupportedOperationException e) { // // // // no message in exception (getMessage() returned null) // // // verifyException("org.apache.commons.jxpath.ri.axes.RootContext", e); // } } @Test(timeout = 4000) public void test076() throws Throwable { Expression[] expressionArray0 = new Expression[1]; CoreOperationOr coreOperationOr0 = new CoreOperationOr(expressionArray0); NameAttributeTest nameAttributeTest0 = new NameAttributeTest(coreOperationOr0, coreOperationOr0); ExpressionPath expressionPath0 = new ExpressionPath(nameAttributeTest0, expressionArray0, (Step[]) null); expressionArray0[0] = (Expression) expressionPath0; CoreFunction coreFunction0 = new CoreFunction(567, expressionArray0); // Undeclared exception! // try { coreFunction0.functionNot((EvalContext) null); // fail("Expecting exception: StackOverflowError"); // } catch(StackOverflowError e) { // // // // no message in exception (getMessage() returned null) // // // } } @Test(timeout = 4000) public void test077() throws Throwable { Expression[] expressionArray0 = new Expression[1]; CoreFunction coreFunction0 = new CoreFunction(0, expressionArray0); RootContext rootContext0 = new RootContext((JXPathContextReferenceImpl) null, (NodePointer) null); ProcessingInstructionTest processingInstructionTest0 = new ProcessingInstructionTest("'round'"); NamespaceContext namespaceContext0 = new NamespaceContext(rootContext0, processingInstructionTest0); DescendantContext descendantContext0 = new DescendantContext(namespaceContext0, true, processingInstructionTest0); // Undeclared exception! // try { coreFunction0.functionNot(descendantContext0); // fail("Expecting exception: NullPointerException"); // } catch(NullPointerException e) { // // // // no message in exception (getMessage() returned null) // // // verifyException("org.apache.commons.jxpath.ri.compiler.CoreFunction", e); // } } @Test(timeout = 4000) public void test078() throws Throwable { Expression[] expressionArray0 = new Expression[6]; QName qName0 = new QName("", "substring-after"); ExtensionFunction extensionFunction0 = new ExtensionFunction(qName0, expressionArray0); expressionArray0[2] = (Expression) extensionFunction0; CoreFunction coreFunction0 = new CoreFunction(1870, expressionArray0); // Undeclared exception! coreFunction0.functionNormalizeSpace((EvalContext) null); } @Test(timeout = 4000) public void test079() throws Throwable { Expression[] expressionArray0 = new Expression[8]; Constant constant0 = new Constant("lang"); CoreOperationMultiply coreOperationMultiply0 = new CoreOperationMultiply(constant0, constant0); CoreOperationLessThanOrEqual coreOperationLessThanOrEqual0 = new CoreOperationLessThanOrEqual(constant0, coreOperationMultiply0); CoreFunction coreFunction0 = new CoreFunction(30, expressionArray0); PredicateContext predicateContext0 = new PredicateContext((EvalContext) null, coreOperationLessThanOrEqual0); // Undeclared exception! // try { coreFunction0.functionNormalizeSpace(predicateContext0); // fail("Expecting exception: RuntimeException"); // } catch(RuntimeException e) { // // // // Incorrect number of arguments: format-number(null, null, null, null, null, null, null, null) // // // verifyException("org.apache.commons.jxpath.ri.compiler.CoreFunction", e); // } } @Test(timeout = 4000) public void test080() throws Throwable { Expression[] expressionArray0 = new Expression[3]; QName qName0 = new QName(""); ExtensionFunction extensionFunction0 = new ExtensionFunction(qName0, expressionArray0); expressionArray0[0] = (Expression) extensionFunction0; CoreFunction coreFunction0 = new CoreFunction(13, expressionArray0); JXPathContextReferenceImpl jXPathContextReferenceImpl0 = (JXPathContextReferenceImpl)JXPathContext.newContext((JXPathContext) null, (Object) null); Locale locale0 = Locale.ITALY; NullPointer nullPointer0 = (NullPointer)NodePointer.newNodePointer(qName0, expressionArray0[1], locale0); RootContext rootContext0 = new RootContext(jXPathContextReferenceImpl0, nullPointer0); InitialContext initialContext0 = (InitialContext)rootContext0.getConstantContext(locale0); // Undeclared exception! // try { coreFunction0.functionNormalizeSpace(initialContext0); // fail("Expecting exception: StackOverflowError"); // } catch(StackOverflowError e) { // // // // no message in exception (getMessage() returned null) // // // } } @Test(timeout = 4000) public void test081() throws Throwable { Expression[] expressionArray0 = new Expression[1]; CoreFunction coreFunction0 = new CoreFunction(0, expressionArray0); // Undeclared exception! // try { coreFunction0.functionNormalizeSpace((EvalContext) null); // fail("Expecting exception: NullPointerException"); // } catch(NullPointerException e) { // // // // no message in exception (getMessage() returned null) // // // verifyException("org.apache.commons.jxpath.ri.compiler.CoreFunction", e); // } } @Test(timeout = 4000) public void test082() throws Throwable { Expression[] expressionArray0 = new Expression[8]; QName qName0 = new QName(""); ExtensionFunction extensionFunction0 = new ExtensionFunction(qName0, expressionArray0); expressionArray0[4] = (Expression) extensionFunction0; CoreFunction coreFunction0 = new CoreFunction((-141), expressionArray0); // Undeclared exception! coreFunction0.functionNamespaceURI((EvalContext) null); } @Test(timeout = 4000) public void test083() throws Throwable { Expression[] expressionArray0 = new Expression[8]; CoreFunction coreFunction0 = new CoreFunction(9, expressionArray0); AttributeContext attributeContext0 = new AttributeContext((EvalContext) null, (NodeTest) null); // Undeclared exception! // try { coreFunction0.functionNamespaceURI(attributeContext0); // fail("Expecting exception: RuntimeException"); // } catch(RuntimeException e) { // // // // Incorrect number of arguments: concat(null, null, null, null, null, null, null, null) // // // verifyException("org.apache.commons.jxpath.ri.compiler.CoreFunction", e); // } } @Test(timeout = 4000) public void test084() throws Throwable { CoreFunction coreFunction0 = new CoreFunction(68, (Expression[]) null); JXPathContextReferenceImpl jXPathContextReferenceImpl0 = (JXPathContextReferenceImpl)JXPathContext.newContext((Object) coreFunction0); QName qName0 = new QName("", "n?T'r!U:~){m^_N"); VariablePointer variablePointer0 = new VariablePointer(qName0); RootContext rootContext0 = new RootContext(jXPathContextReferenceImpl0, variablePointer0); EvalContext[] evalContextArray0 = new EvalContext[7]; evalContextArray0[0] = (EvalContext) rootContext0; UnionContext unionContext0 = new UnionContext(rootContext0, evalContextArray0); // Undeclared exception! // try { coreFunction0.functionNamespaceURI(unionContext0); // fail("Expecting exception: UnsupportedOperationException"); // } catch(UnsupportedOperationException e) { // // // // no message in exception (getMessage() returned null) // // // verifyException("org.apache.commons.jxpath.ri.axes.RootContext", e); // } } @Test(timeout = 4000) public void test085() throws Throwable { Expression[] expressionArray0 = new Expression[3]; Step[] stepArray0 = new Step[8]; QName qName0 = new QName("id"); NodeNameTest nodeNameTest0 = new NodeNameTest(qName0); Step step0 = new Step(1861, nodeNameTest0, expressionArray0); stepArray0[0] = step0; LocationPath locationPath0 = new LocationPath(false, stepArray0); expressionArray0[0] = (Expression) locationPath0; CoreFunction coreFunction0 = new CoreFunction(1861, expressionArray0); // Undeclared exception! // try { coreFunction0.functionNamespaceURI((EvalContext) null); // fail("Expecting exception: StackOverflowError"); // } catch(StackOverflowError e) { // // // // no message in exception (getMessage() returned null) // // // } } @Test(timeout = 4000) public void test086() throws Throwable { CoreFunction coreFunction0 = new CoreFunction((-2409), (Expression[]) null); AttributeContext attributeContext0 = new AttributeContext((EvalContext) null, (NodeTest) null); // Undeclared exception! // try { coreFunction0.functionNamespaceURI(attributeContext0); // fail("Expecting exception: NullPointerException"); // } catch(NullPointerException e) { // // // // no message in exception (getMessage() returned null) // // // verifyException("org.apache.commons.jxpath.ri.compiler.CoreFunction", e); // } } @Test(timeout = 4000) public void test087() throws Throwable { CoreFunction coreFunction0 = new CoreFunction(30, (Expression[]) null); BasicNodeSet basicNodeSet0 = new BasicNodeSet(); NodeSetContext nodeSetContext0 = new NodeSetContext((EvalContext) null, basicNodeSet0); nodeSetContext0.getCurrentNodePointer(); // Undeclared exception! // try { coreFunction0.functionNamespaceURI(nodeSetContext0); // fail("Expecting exception: IndexOutOfBoundsException"); // } catch(IndexOutOfBoundsException e) { // // // // Index: 0, Size: 0 // // // verifyException("java.util.ArrayList", e); // } } @Test(timeout = 4000) public void test088() throws Throwable { Expression[] expressionArray0 = new Expression[7]; QName qName0 = new QName("", ""); Step[] stepArray0 = new Step[4]; NodeNameTest nodeNameTest0 = new NodeNameTest(qName0); Step step0 = new Step(326, nodeNameTest0, expressionArray0); ExpressionPath expressionPath0 = new ExpressionPath(expressionArray0[3], expressionArray0, stepArray0); expressionArray0[6] = (Expression) expressionPath0; CoreFunction coreFunction0 = new CoreFunction((-2777), expressionArray0); JXPathContextReferenceImpl jXPathContextReferenceImpl0 = new JXPathContextReferenceImpl((JXPathContext) null, step0, (Pointer) null); BasicVariables basicVariables0 = new BasicVariables(); VariablePointer variablePointer0 = new VariablePointer(basicVariables0, qName0); RootContext rootContext0 = new RootContext(jXPathContextReferenceImpl0, variablePointer0); EvalContext[] evalContextArray0 = new EvalContext[0]; UnionContext unionContext0 = new UnionContext(rootContext0, evalContextArray0); EvalContext evalContext0 = rootContext0.getConstantContext(unionContext0); // Undeclared exception! coreFunction0.functionName(evalContext0); } @Test(timeout = 4000) public void test089() throws Throwable { Expression[] expressionArray0 = new Expression[2]; CoreFunction coreFunction0 = new CoreFunction(0, expressionArray0); // Undeclared exception! // try { coreFunction0.functionName((EvalContext) null); // fail("Expecting exception: RuntimeException"); // } catch(RuntimeException e) { // // // // Incorrect number of arguments: unknownFunction0()(null, null) // // // verifyException("org.apache.commons.jxpath.ri.compiler.CoreFunction", e); // } } @Test(timeout = 4000) public void test090() throws Throwable { Expression[] expressionArray0 = new Expression[0]; CoreFunction coreFunction0 = new CoreFunction(10, expressionArray0); QName qName0 = new QName("\"/\""); NodePointer nodePointer0 = NodePointer.newChildNodePointer((NodePointer) null, qName0, coreFunction0); JXPathContextReferenceImpl jXPathContextReferenceImpl0 = new JXPathContextReferenceImpl((JXPathContext) null, coreFunction0, nodePointer0); EvalContext evalContext0 = jXPathContextReferenceImpl0.getAbsoluteRootContext(); EvalContext[] evalContextArray0 = new EvalContext[8]; NodeNameTest nodeNameTest0 = new NodeNameTest(qName0); AncestorContext ancestorContext0 = new AncestorContext(evalContext0, false, nodeNameTest0); RootContext rootContext0 = ancestorContext0.getRootContext(); evalContextArray0[0] = (EvalContext) rootContext0; UnionContext unionContext0 = new UnionContext(evalContext0, evalContextArray0); // Undeclared exception! // try { coreFunction0.functionName(unionContext0); // fail("Expecting exception: UnsupportedOperationException"); // } catch(UnsupportedOperationException e) { // // // // no message in exception (getMessage() returned null) // // // verifyException("org.apache.commons.jxpath.ri.axes.RootContext", e); // } } @Test(timeout = 4000) public void test091() throws Throwable { Expression[] expressionArray0 = new Expression[9]; ExtensionFunction extensionFunction0 = new ExtensionFunction((QName) null, expressionArray0); expressionArray0[0] = (Expression) extensionFunction0; CoreFunction coreFunction0 = new CoreFunction(980, expressionArray0); // Undeclared exception! // try { coreFunction0.functionName((EvalContext) null); // fail("Expecting exception: StackOverflowError"); // } catch(StackOverflowError e) { // // // // no message in exception (getMessage() returned null) // // // } } @Test(timeout = 4000) public void test092() throws Throwable { CoreFunction coreFunction0 = new CoreFunction(2408, (Expression[]) null); NodeTypeTest nodeTypeTest0 = new NodeTypeTest(2408); PredicateContext predicateContext0 = new PredicateContext((EvalContext) null, coreFunction0); ParentContext parentContext0 = new ParentContext(predicateContext0, nodeTypeTest0); SelfContext selfContext0 = new SelfContext(parentContext0, nodeTypeTest0); PrecedingOrFollowingContext precedingOrFollowingContext0 = new PrecedingOrFollowingContext(selfContext0, nodeTypeTest0, true); AncestorContext ancestorContext0 = new AncestorContext(precedingOrFollowingContext0, true, nodeTypeTest0); // Undeclared exception! // try { coreFunction0.functionName(ancestorContext0); // fail("Expecting exception: NullPointerException"); // } catch(NullPointerException e) { // // // // no message in exception (getMessage() returned null) // // // verifyException("org.apache.commons.jxpath.ri.compiler.CoreFunction", e); // } } @Test(timeout = 4000) public void test093() throws Throwable { CoreFunction coreFunction0 = new CoreFunction(237, (Expression[]) null); BasicNodeSet basicNodeSet0 = new BasicNodeSet(); NodeSetContext nodeSetContext0 = new NodeSetContext((EvalContext) null, basicNodeSet0); coreFunction0.functionLast(nodeSetContext0); // Undeclared exception! // try { coreFunction0.functionName(nodeSetContext0); // fail("Expecting exception: IndexOutOfBoundsException"); // } catch(IndexOutOfBoundsException e) { // // // // Index: 0, Size: 0 // // // verifyException("java.util.ArrayList", e); // } } @Test(timeout = 4000) public void test094() throws Throwable { CoreFunction coreFunction0 = new CoreFunction(105, (Expression[]) null); JXPathContextReferenceImpl jXPathContextReferenceImpl0 = (JXPathContextReferenceImpl)JXPathContext.newContext((Object) coreFunction0); QName qName0 = new QName("Pv;m:rJ?`82MA+i"); VariablePointer variablePointer0 = new VariablePointer(qName0); RootContext rootContext0 = new RootContext(jXPathContextReferenceImpl0, variablePointer0); ProcessingInstructionTest processingInstructionTest0 = new ProcessingInstructionTest("<<unknown namespace>>"); DescendantContext descendantContext0 = new DescendantContext(rootContext0, true, processingInstructionTest0); // Undeclared exception! // try { coreFunction0.functionLocalName(descendantContext0); // fail("Expecting exception: RuntimeException"); // } catch(RuntimeException e) { // // // // Undefined variable: Pv;m:rJ?`82MA+i // // // verifyException("org.apache.commons.jxpath.ri.model.VariablePointer$1", e); // } } @Test(timeout = 4000) public void test095() throws Throwable { Expression[] expressionArray0 = new Expression[7]; QName qName0 = new QName(""); ExtensionFunction extensionFunction0 = new ExtensionFunction(qName0, expressionArray0); expressionArray0[2] = (Expression) extensionFunction0; CoreFunction coreFunction0 = new CoreFunction((-21), expressionArray0); // Undeclared exception! coreFunction0.functionLocalName((EvalContext) null); } @Test(timeout = 4000) public void test096() throws Throwable { Expression[] expressionArray0 = new Expression[1]; CoreFunction coreFunction0 = new CoreFunction(0, expressionArray0); // Undeclared exception! // try { coreFunction0.functionLocalName((EvalContext) null); // fail("Expecting exception: NullPointerException"); // } catch(NullPointerException e) { // // // // no message in exception (getMessage() returned null) // // // verifyException("org.apache.commons.jxpath.ri.compiler.CoreFunction", e); // } } @Test(timeout = 4000) public void test097() throws Throwable { CoreFunction coreFunction0 = new CoreFunction((-261), (Expression[]) null); BasicNodeSet basicNodeSet0 = new BasicNodeSet(); NodeSetContext nodeSetContext0 = new NodeSetContext((EvalContext) null, basicNodeSet0); coreFunction0.functionLast(nodeSetContext0); // Undeclared exception! // try { coreFunction0.functionLocalName(nodeSetContext0); // fail("Expecting exception: IndexOutOfBoundsException"); // } catch(IndexOutOfBoundsException e) { // // // // Index: 0, Size: 0 // // // verifyException("java.util.ArrayList", e); // } } @Test(timeout = 4000) public void test098() throws Throwable { CoreFunction coreFunction0 = new CoreFunction(8, (Expression[]) null); JXPathContextReferenceImpl jXPathContextReferenceImpl0 = (JXPathContextReferenceImpl)JXPathContext.newContext((Object) coreFunction0); QName qName0 = new QName("", ""); VariablePointer variablePointer0 = new VariablePointer(qName0); BeanPointer beanPointer0 = (BeanPointer)NodePointer.newNodePointer(qName0, variablePointer0, (Locale) null); RootContext rootContext0 = new RootContext(jXPathContextReferenceImpl0, beanPointer0); // Undeclared exception! // try { coreFunction0.functionLast(rootContext0); // fail("Expecting exception: UnsupportedOperationException"); // } catch(UnsupportedOperationException e) { // // // // no message in exception (getMessage() returned null) // // // verifyException("org.apache.commons.jxpath.ri.axes.RootContext", e); // } } @Test(timeout = 4000) public void test099() throws Throwable { Expression[] expressionArray0 = new Expression[2]; Step[] stepArray0 = new Step[7]; ProcessingInstructionTest processingInstructionTest0 = new ProcessingInstructionTest(""); Step step0 = new Step(9, processingInstructionTest0, expressionArray0); stepArray0[0] = step0; LocationPath locationPath0 = new LocationPath(false, stepArray0); expressionArray0[0] = (Expression) locationPath0; CoreFunction coreFunction0 = new CoreFunction(6, expressionArray0); // Undeclared exception! // try { coreFunction0.functionLast((EvalContext) null); // fail("Expecting exception: StackOverflowError"); // } catch(StackOverflowError e) { // // // // no message in exception (getMessage() returned null) // // // } } @Test(timeout = 4000) public void test100() throws Throwable { Expression[] expressionArray0 = new Expression[0]; CoreFunction coreFunction0 = new CoreFunction((-2520), expressionArray0); NodeTypeTest nodeTypeTest0 = new NodeTypeTest((-328)); DescendantContext descendantContext0 = new DescendantContext((EvalContext) null, false, nodeTypeTest0); // Undeclared exception! // try { coreFunction0.functionLast(descendantContext0); // fail("Expecting exception: NullPointerException"); // } catch(NullPointerException e) { // // // // no message in exception (getMessage() returned null) // // // verifyException("org.apache.commons.jxpath.ri.axes.DescendantContext", e); // } } @Test(timeout = 4000) public void test101() throws Throwable { CoreFunction coreFunction0 = new CoreFunction(22, (Expression[]) null); BasicNodeSet basicNodeSet0 = new BasicNodeSet(); NodeSetContext nodeSetContext0 = new NodeSetContext((EvalContext) null, basicNodeSet0); NodeTypeTest nodeTypeTest0 = new NodeTypeTest(22); Consumer<VariablePointer> consumer0 = (Consumer<VariablePointer>) mock(Consumer.class, new ViolatedAssumptionAnswer()); nodeSetContext0.forEachRemaining(consumer0); ChildContext childContext0 = new ChildContext(nodeSetContext0, nodeTypeTest0, false, false); // Undeclared exception! // try { coreFunction0.functionLast(childContext0); // fail("Expecting exception: IndexOutOfBoundsException"); // } catch(IndexOutOfBoundsException e) { // // // // Index: 0, Size: 0 // // // verifyException("java.util.ArrayList", e); // } } @Test(timeout = 4000) public void test102() throws Throwable { CoreFunction coreFunction0 = new CoreFunction((-2409), (Expression[]) null); // Undeclared exception! // try { coreFunction0.functionLang((EvalContext) null); // fail("Expecting exception: RuntimeException"); // } catch(RuntimeException e) { // // // // Incorrect number of arguments: unknownFunction-2409()() // // // verifyException("org.apache.commons.jxpath.ri.compiler.CoreFunction", e); // } } @Test(timeout = 4000) public void test103() throws Throwable { Expression[] expressionArray0 = new Expression[1]; Byte byte0 = new Byte((byte) (-58)); Constant constant0 = new Constant(byte0); expressionArray0[0] = (Expression) constant0; CoreFunction coreFunction0 = new CoreFunction(16, expressionArray0); JXPathContextReferenceImpl jXPathContextReferenceImpl0 = new JXPathContextReferenceImpl((JXPathContext) null, expressionArray0[0], (Pointer) null); QName qName0 = new QName("", ""); Locale locale0 = Locale.US; NodePointer nodePointer0 = NodePointer.newNodePointer(qName0, "normalize-space(-58)", locale0); RootContext rootContext0 = new RootContext(jXPathContextReferenceImpl0, nodePointer0); NodeTypeTest nodeTypeTest0 = new NodeTypeTest((byte) (-58)); DescendantContext descendantContext0 = new DescendantContext(rootContext0, true, nodeTypeTest0); // Undeclared exception! // try { coreFunction0.functionLang(descendantContext0); // fail("Expecting exception: UnsupportedOperationException"); // } catch(UnsupportedOperationException e) { // // // // no message in exception (getMessage() returned null) // // // verifyException("org.apache.commons.jxpath.ri.axes.RootContext", e); // } } @Test(timeout = 4000) public void test104() throws Throwable { Expression[] expressionArray0 = new Expression[1]; CoreFunction coreFunction0 = new CoreFunction(2, expressionArray0); // Undeclared exception! // try { coreFunction0.functionLang((EvalContext) null); // fail("Expecting exception: NullPointerException"); // } catch(NullPointerException e) { // // // // no message in exception (getMessage() returned null) // // // verifyException("org.apache.commons.jxpath.ri.compiler.CoreFunction", e); // } } @Test(timeout = 4000) public void test105() throws Throwable { Expression[] expressionArray0 = new Expression[1]; NameAttributeTest nameAttributeTest0 = new NameAttributeTest((Expression) null, (Expression) null); nameAttributeTest0.args = expressionArray0; expressionArray0[0] = (Expression) nameAttributeTest0; CoreFunction coreFunction0 = new CoreFunction(15, expressionArray0); BasicNodeSet basicNodeSet0 = new BasicNodeSet(); NodeSetContext nodeSetContext0 = new NodeSetContext((EvalContext) null, basicNodeSet0); // Undeclared exception! // try { coreFunction0.functionLang(nodeSetContext0); // fail("Expecting exception: ArrayIndexOutOfBoundsException"); // } catch(ArrayIndexOutOfBoundsException e) { // // // // no message in exception (getMessage() returned null) // // // } } @Test(timeout = 4000) public void test106() throws Throwable { Expression[] expressionArray0 = new Expression[3]; CoreFunction coreFunction0 = new CoreFunction(1365, expressionArray0); // Undeclared exception! // try { coreFunction0.functionKey((EvalContext) null); // fail("Expecting exception: RuntimeException"); // } catch(RuntimeException e) { // // // // Incorrect number of arguments: unknownFunction1365()(null, null, null) // // // verifyException("org.apache.commons.jxpath.ri.compiler.CoreFunction", e); // } } @Test(timeout = 4000) public void test107() throws Throwable { Expression[] expressionArray0 = new Expression[6]; QName qName0 = new QName("Unknown namespace prefix: ", "$M_"); ExtensionFunction extensionFunction0 = new ExtensionFunction(qName0, expressionArray0); expressionArray0[0] = (Expression) extensionFunction0; CoreFunction coreFunction0 = new CoreFunction((-1763), expressionArray0); Step[] stepArray0 = new Step[8]; ProcessingInstructionTest processingInstructionTest0 = new ProcessingInstructionTest(" D)X\"p@/9|d#lps"); ExpressionPath expressionPath0 = new ExpressionPath(expressionArray0[5], expressionArray0, stepArray0); PrecedingOrFollowingContext precedingOrFollowingContext0 = new PrecedingOrFollowingContext((EvalContext) null, processingInstructionTest0, false); PredicateContext predicateContext0 = new PredicateContext(precedingOrFollowingContext0, expressionArray0[4]); EvalContext evalContext0 = expressionPath0.createContextForStep(predicateContext0, 10, processingInstructionTest0); // Undeclared exception! // try { coreFunction0.functionKey(evalContext0); // fail("Expecting exception: StackOverflowError"); // } catch(StackOverflowError e) { // // // // no message in exception (getMessage() returned null) // // // } } @Test(timeout = 4000) public void test108() throws Throwable { Expression[] expressionArray0 = new Expression[1]; Byte byte0 = new Byte((byte) (-58)); Constant constant0 = new Constant(byte0); expressionArray0[0] = (Expression) constant0; CoreFunction coreFunction0 = new CoreFunction(2, expressionArray0); JXPathContextReferenceImpl jXPathContextReferenceImpl0 = (JXPathContextReferenceImpl)JXPathContext.newContext((Object) byte0); QName qName0 = new QName("", (String) null); Locale locale0 = Locale.ITALY; BeanPointer beanPointer0 = (BeanPointer)NodePointer.newNodePointer(qName0, qName0, locale0); RootContext rootContext0 = new RootContext(jXPathContextReferenceImpl0, beanPointer0); InitialContext initialContext0 = (InitialContext)rootContext0.getAbsoluteRootContext(); // Undeclared exception! // try { coreFunction0.functionID(initialContext0); // fail("Expecting exception: RuntimeException"); // } catch(RuntimeException e) { // // // // Cannot find an element by ID - no IdentityManager has been specified // // // verifyException("org.apache.commons.jxpath.JXPathContext", e); // } } @Test(timeout = 4000) public void test109() throws Throwable { Expression[] expressionArray0 = new Expression[1]; CoreOperationUnion coreOperationUnion0 = new CoreOperationUnion(expressionArray0); CoreOperationLessThan coreOperationLessThan0 = new CoreOperationLessThan(coreOperationUnion0, coreOperationUnion0); CoreOperationDivide coreOperationDivide0 = new CoreOperationDivide(coreOperationLessThan0, coreOperationUnion0); expressionArray0[0] = (Expression) coreOperationDivide0; CoreFunction coreFunction0 = new CoreFunction(1357, expressionArray0); // Undeclared exception! // try { coreFunction0.functionID((EvalContext) null); // fail("Expecting exception: StackOverflowError"); // } catch(StackOverflowError e) { // // // // no message in exception (getMessage() returned null) // // // } } @Test(timeout = 4000) public void test110() throws Throwable { CoreOperationSubtract coreOperationSubtract0 = new CoreOperationSubtract((Expression) null, (Expression) null); Expression[] expressionArray0 = new Expression[2]; expressionArray0[1] = (Expression) coreOperationSubtract0; CoreFunction coreFunction0 = new CoreFunction(32, expressionArray0); // Undeclared exception! // try { coreFunction0.functionID((EvalContext) null); // fail("Expecting exception: NullPointerException"); // } catch(NullPointerException e) { // // // // no message in exception (getMessage() returned null) // // // verifyException("org.evosuite.runtime.System", e); // } } @Test(timeout = 4000) public void test111() throws Throwable { Expression[] expressionArray0 = new Expression[5]; CoreFunction coreFunction0 = new CoreFunction((-1953), expressionArray0); NodeTypeTest nodeTypeTest0 = new NodeTypeTest(95); SelfContext selfContext0 = new SelfContext((EvalContext) null, nodeTypeTest0); // Undeclared exception! // try { coreFunction0.functionFloor(selfContext0); // fail("Expecting exception: RuntimeException"); // } catch(RuntimeException e) { // // // // Incorrect number of arguments: unknownFunction-1953()(null, null, null, null, null) // // // verifyException("org.apache.commons.jxpath.ri.compiler.CoreFunction", e); // } } @Test(timeout = 4000) public void test112() throws Throwable { Expression[] expressionArray0 = new Expression[1]; CoreFunction coreFunction0 = new CoreFunction(0, expressionArray0); JXPathContextReferenceImpl jXPathContextReferenceImpl0 = mock(JXPathContextReferenceImpl.class, new ViolatedAssumptionAnswer()); RootContext rootContext0 = new RootContext(jXPathContextReferenceImpl0, (NodePointer) null); // Undeclared exception! // try { coreFunction0.functionFalse(rootContext0); // fail("Expecting exception: RuntimeException"); // } catch(RuntimeException e) { // // // // Incorrect number of arguments: unknownFunction0()(null) // // // verifyException("org.apache.commons.jxpath.ri.compiler.CoreFunction", e); // } } @Test(timeout = 4000) public void test113() throws Throwable { Expression[] expressionArray0 = new Expression[7]; QName qName0 = new QName("l!M", "l!M"); ExtensionFunction extensionFunction0 = new ExtensionFunction(qName0, expressionArray0); expressionArray0[0] = (Expression) extensionFunction0; CoreFunction coreFunction0 = new CoreFunction(1912, expressionArray0); NodeTypeTest nodeTypeTest0 = new NodeTypeTest(486); AttributeContext attributeContext0 = new AttributeContext((EvalContext) null, nodeTypeTest0); // Undeclared exception! // try { coreFunction0.functionFalse(attributeContext0); // fail("Expecting exception: StackOverflowError"); // } catch(StackOverflowError e) { // // // // no message in exception (getMessage() returned null) // // // } } @Test(timeout = 4000) public void test114() throws Throwable { Expression[] expressionArray0 = new Expression[3]; CoreOperationAnd coreOperationAnd0 = new CoreOperationAnd(expressionArray0); expressionArray0[0] = (Expression) coreOperationAnd0; CoreFunction coreFunction0 = new CoreFunction((-4425), expressionArray0); // Undeclared exception! // try { coreFunction0.functionFalse((EvalContext) null); // fail("Expecting exception: NullPointerException"); // } catch(NullPointerException e) { // // // // no message in exception (getMessage() returned null) // // // verifyException("org.evosuite.runtime.System", e); // } } @Test(timeout = 4000) public void test115() throws Throwable { Expression[] expressionArray0 = new Expression[8]; QName qName0 = new QName("NaN"); ExtensionFunction extensionFunction0 = new ExtensionFunction(qName0, expressionArray0); expressionArray0[3] = (Expression) extensionFunction0; CoreFunction coreFunction0 = new CoreFunction(966, expressionArray0); // Undeclared exception! coreFunction0.functionCount((EvalContext) null); } @Test(timeout = 4000) public void test116() throws Throwable { Expression[] expressionArray0 = new Expression[1]; QName qName0 = new QName("UVkL-!p#K>CsonlF!b", (String) null); ExtensionFunction extensionFunction0 = new ExtensionFunction(qName0, expressionArray0); expressionArray0[0] = (Expression) extensionFunction0; CoreFunction coreFunction0 = new CoreFunction(1680, expressionArray0); // Undeclared exception! // try { coreFunction0.functionCount((EvalContext) null); // fail("Expecting exception: StackOverflowError"); // } catch(StackOverflowError e) { // // // // no message in exception (getMessage() returned null) // // // } } @Test(timeout = 4000) public void test117() throws Throwable { Expression[] expressionArray0 = new Expression[1]; CoreFunction coreFunction0 = new CoreFunction((-197), expressionArray0); // Undeclared exception! // try { coreFunction0.functionCount((EvalContext) null); // fail("Expecting exception: NullPointerException"); // } catch(NullPointerException e) { // // // // no message in exception (getMessage() returned null) // // // verifyException("org.apache.commons.jxpath.ri.compiler.CoreFunction", e); // } } @Test(timeout = 4000) public void test118() throws Throwable { Expression[] expressionArray0 = new Expression[3]; Step[] stepArray0 = new Step[7]; QName qName0 = new QName(""); NodeNameTest nodeNameTest0 = new NodeNameTest(qName0, ""); Step step0 = new Step(53, nodeNameTest0, expressionArray0); stepArray0[0] = step0; LocationPath locationPath0 = new LocationPath(true, stepArray0); expressionArray0[1] = (Expression) locationPath0; CoreFunction coreFunction0 = new CoreFunction(53, expressionArray0); // Undeclared exception! // try { coreFunction0.functionContains((EvalContext) null); // fail("Expecting exception: StackOverflowError"); // } catch(StackOverflowError e) { // // // // no message in exception (getMessage() returned null) // // // } } @Test(timeout = 4000) public void test119() throws Throwable { Expression[] expressionArray0 = new Expression[3]; CoreOperationNegate coreOperationNegate0 = new CoreOperationNegate((Expression) null); expressionArray0[0] = (Expression) coreOperationNegate0; CoreFunction coreFunction0 = new CoreFunction(21856255, expressionArray0); JXPathContextReferenceImpl jXPathContextReferenceImpl0 = new JXPathContextReferenceImpl((JXPathContext) null, (Object) null, (Pointer) null); EvalContext evalContext0 = jXPathContextReferenceImpl0.getAbsoluteRootContext(); // Undeclared exception! // try { coreFunction0.functionContains(evalContext0); // fail("Expecting exception: NullPointerException"); // } catch(NullPointerException e) { // // // // no message in exception (getMessage() returned null) // // // verifyException("org.evosuite.runtime.System", e); // } } @Test(timeout = 4000) public void test120() throws Throwable { Expression[] expressionArray0 = new Expression[6]; Double double0 = new Double(2301); Constant constant0 = new Constant(double0); CoreOperationGreaterThan coreOperationGreaterThan0 = new CoreOperationGreaterThan(constant0, constant0); expressionArray0[0] = (Expression) coreOperationGreaterThan0; QName qName0 = new QName("^5MK-qx", "^5MK-qx"); VariableReference variableReference0 = new VariableReference(qName0); expressionArray0[1] = (Expression) variableReference0; CoreFunction coreFunction0 = new CoreFunction(2301, expressionArray0); JXPathContextReferenceImpl jXPathContextReferenceImpl0 = (JXPathContextReferenceImpl)JXPathContext.newContext((Object) variableReference0); BasicVariables basicVariables0 = new BasicVariables(); VariablePointer variablePointer0 = new VariablePointer(basicVariables0, qName0); RootContext rootContext0 = new RootContext(jXPathContextReferenceImpl0, variablePointer0); PredicateContext predicateContext0 = new PredicateContext(rootContext0, constant0); // Undeclared exception! // try { coreFunction0.functionConcat(predicateContext0); // fail("Expecting exception: RuntimeException"); // } catch(RuntimeException e) { // // // // Undefined variable: ^5MK-qx:^5MK-qx // // // verifyException("org.apache.commons.jxpath.ri.model.VariablePointer$1", e); // } } @Test(timeout = 4000) public void test121() throws Throwable { Constant constant0 = new Constant("/R_~m"); Expression[] expressionArray0 = new Expression[7]; expressionArray0[0] = (Expression) constant0; expressionArray0[1] = (Expression) constant0; expressionArray0[2] = (Expression) constant0; CoreOperationAdd coreOperationAdd0 = new CoreOperationAdd(expressionArray0); expressionArray0[3] = (Expression) coreOperationAdd0; CoreFunction coreFunction0 = new CoreFunction(0, expressionArray0); EvalContext[] evalContextArray0 = new EvalContext[2]; UnionContext unionContext0 = new UnionContext((EvalContext) null, evalContextArray0); // Undeclared exception! coreFunction0.functionConcat(unionContext0); } @Test(timeout = 4000) public void test122() throws Throwable { Expression[] expressionArray0 = new Expression[1]; CoreFunction coreFunction0 = new CoreFunction(0, expressionArray0); JXPathContextReferenceImpl jXPathContextReferenceImpl0 = mock(JXPathContextReferenceImpl.class, new ViolatedAssumptionAnswer()); RootContext rootContext0 = new RootContext(jXPathContextReferenceImpl0, (NodePointer) null); // Undeclared exception! // try { coreFunction0.functionConcat(rootContext0); // fail("Expecting exception: RuntimeException"); // } catch(RuntimeException e) { // // // // Incorrect number of arguments: unknownFunction0()(null) // // // verifyException("org.apache.commons.jxpath.ri.compiler.CoreFunction", e); // } } @Test(timeout = 4000) public void test123() throws Throwable { Expression[] expressionArray0 = new Expression[8]; CoreFunction coreFunction0 = new CoreFunction(9, expressionArray0); // Undeclared exception! // try { coreFunction0.functionConcat((EvalContext) null); // fail("Expecting exception: NullPointerException"); // } catch(NullPointerException e) { // // // // no message in exception (getMessage() returned null) // // // verifyException("org.apache.commons.jxpath.ri.compiler.CoreFunction", e); // } } @Test(timeout = 4000) public void test124() throws Throwable { Expression[] expressionArray0 = new Expression[7]; Constant constant0 = new Constant("VFS+Wj"); expressionArray0[0] = (Expression) constant0; CoreOperationNotEqual coreOperationNotEqual0 = new CoreOperationNotEqual(constant0, constant0); CoreOperationMultiply coreOperationMultiply0 = new CoreOperationMultiply(expressionArray0[0], coreOperationNotEqual0); expressionArray0[1] = (Expression) coreOperationMultiply0; CoreOperationMod coreOperationMod0 = new CoreOperationMod(constant0, constant0); expressionArray0[2] = (Expression) coreOperationMod0; CoreFunction coreFunction0 = new CoreFunction(26, expressionArray0); // Undeclared exception! // try { coreFunction0.functionConcat((EvalContext) null); // fail("Expecting exception: ArithmeticException"); // } catch(ArithmeticException e) { // // // // no message in exception (getMessage() returned null) // // // } } @Test(timeout = 4000) public void test125() throws Throwable { CoreFunction coreFunction0 = new CoreFunction(8, (Expression[]) null); // Undeclared exception! // try { coreFunction0.functionCeiling((EvalContext) null); // fail("Expecting exception: RuntimeException"); // } catch(RuntimeException e) { // // // // Incorrect number of arguments: string() // // // verifyException("org.apache.commons.jxpath.ri.compiler.CoreFunction", e); // } } @Test(timeout = 4000) public void test126() throws Throwable { Expression[] expressionArray0 = new Expression[2]; QName qName0 = new QName(")IGc", ")IGc"); ExtensionFunction extensionFunction0 = new ExtensionFunction(qName0, expressionArray0); expressionArray0[0] = (Expression) extensionFunction0; CoreFunction coreFunction0 = new CoreFunction(13, expressionArray0); PredicateContext predicateContext0 = new PredicateContext((EvalContext) null, expressionArray0[1]); ProcessingInstructionTest processingInstructionTest0 = new ProcessingInstructionTest("contains"); ChildContext childContext0 = new ChildContext(predicateContext0, processingInstructionTest0, true, true); NamespaceContext namespaceContext0 = new NamespaceContext(childContext0, processingInstructionTest0); // Undeclared exception! // try { coreFunction0.functionCeiling(namespaceContext0); // fail("Expecting exception: StackOverflowError"); // } catch(StackOverflowError e) { // // // // no message in exception (getMessage() returned null) // // // } } @Test(timeout = 4000) public void test127() throws Throwable { Expression[] expressionArray0 = new Expression[1]; CoreFunction coreFunction0 = new CoreFunction(32, expressionArray0); // Undeclared exception! // try { coreFunction0.functionCeiling((EvalContext) null); // fail("Expecting exception: NullPointerException"); // } catch(NullPointerException e) { // // // // no message in exception (getMessage() returned null) // // // verifyException("org.apache.commons.jxpath.ri.compiler.CoreFunction", e); // } } @Test(timeout = 4000) public void test128() throws Throwable { Expression[] expressionArray0 = new Expression[5]; ExpressionPath expressionPath0 = new ExpressionPath(expressionArray0[1], expressionArray0, (Step[]) null); expressionArray0[2] = (Expression) expressionPath0; CoreFunction coreFunction0 = new CoreFunction(1, expressionArray0); QName qName0 = new QName("substring", "substring"); NodeNameTest nodeNameTest0 = new NodeNameTest(qName0, "substring"); ParentContext parentContext0 = new ParentContext((EvalContext) null, nodeNameTest0); // Undeclared exception! coreFunction0.functionBoolean(parentContext0); } @Test(timeout = 4000) public void test129() throws Throwable { CoreFunction coreFunction0 = new CoreFunction(0, (Expression[]) null); // Undeclared exception! // try { coreFunction0.functionBoolean((EvalContext) null); // fail("Expecting exception: RuntimeException"); // } catch(RuntimeException e) { // // // // Incorrect number of arguments: unknownFunction0()() // // // verifyException("org.apache.commons.jxpath.ri.compiler.CoreFunction", e); // } } @Test(timeout = 4000) public void test130() throws Throwable { Expression[] expressionArray0 = new Expression[1]; CoreOperationUnion coreOperationUnion0 = new CoreOperationUnion(expressionArray0); CoreOperationLessThan coreOperationLessThan0 = new CoreOperationLessThan(coreOperationUnion0, coreOperationUnion0); CoreOperationDivide coreOperationDivide0 = new CoreOperationDivide(coreOperationLessThan0, coreOperationUnion0); expressionArray0[0] = (Expression) coreOperationDivide0; CoreFunction coreFunction0 = new CoreFunction(1357, expressionArray0); BasicNodeSet basicNodeSet0 = new BasicNodeSet(); NodeSetContext nodeSetContext0 = new NodeSetContext((EvalContext) null, basicNodeSet0); // Undeclared exception! // try { coreFunction0.functionBoolean(nodeSetContext0); // fail("Expecting exception: StackOverflowError"); // } catch(StackOverflowError e) { // // // // no message in exception (getMessage() returned null) // // // } } @Test(timeout = 4000) public void test131() throws Throwable { Expression[] expressionArray0 = new Expression[1]; CoreFunction coreFunction0 = new CoreFunction(81, expressionArray0); QName qName0 = new QName("M~H[Us$:2H$[WV1Qo"); NodeNameTest nodeNameTest0 = new NodeNameTest(qName0, "9.'UY4C^MtX"); SelfContext selfContext0 = new SelfContext((EvalContext) null, nodeNameTest0); // Undeclared exception! // try { coreFunction0.functionBoolean(selfContext0); // fail("Expecting exception: NullPointerException"); // } catch(NullPointerException e) { // // // // no message in exception (getMessage() returned null) // // // verifyException("org.apache.commons.jxpath.ri.compiler.CoreFunction", e); // } } @Test(timeout = 4000) public void test132() throws Throwable { CoreFunction coreFunction0 = new CoreFunction(8, (Expression[]) null); JXPathContextReferenceImpl jXPathContextReferenceImpl0 = (JXPathContextReferenceImpl)JXPathContext.newContext((Object) coreFunction0); QName qName0 = new QName("", ""); VariablePointer variablePointer0 = new VariablePointer(qName0); BeanPointer beanPointer0 = (BeanPointer)NodePointer.newNodePointer(qName0, variablePointer0, (Locale) null); RootContext rootContext0 = new RootContext(jXPathContextReferenceImpl0, beanPointer0); InitialContext initialContext0 = (InitialContext)rootContext0.getVariableContext(qName0); // Undeclared exception! // try { coreFunction0.computeValue(initialContext0); // fail("Expecting exception: RuntimeException"); // } catch(RuntimeException e) { // // // // Undefined variable: : // // // verifyException("org.apache.commons.jxpath.ri.model.VariablePointer$1", e); // } } @Test(timeout = 4000) public void test133() throws Throwable { Expression[] expressionArray0 = new Expression[1]; Constant constant0 = new Constant("round"); expressionArray0[0] = (Expression) constant0; JXPathContextReferenceImpl jXPathContextReferenceImpl0 = mock(JXPathContextReferenceImpl.class, new ViolatedAssumptionAnswer()); RootContext rootContext0 = new RootContext(jXPathContextReferenceImpl0, (NodePointer) null); CoreFunction coreFunction0 = new CoreFunction(22, expressionArray0); // Undeclared exception! // try { coreFunction0.computeValue(rootContext0); // fail("Expecting exception: UnsupportedOperationException"); // } catch(UnsupportedOperationException e) { // // // // no message in exception (getMessage() returned null) // // // verifyException("org.apache.commons.jxpath.ri.axes.RootContext", e); // } } @Test(timeout = 4000) public void test134() throws Throwable { Expression[] expressionArray0 = new Expression[5]; CoreFunction coreFunction0 = new CoreFunction((-1953), expressionArray0); // Undeclared exception! // try { coreFunction0.computeContextDependent(); // fail("Expecting exception: NullPointerException"); // } catch(NullPointerException e) { // // // // no message in exception (getMessage() returned null) // // // verifyException("org.apache.commons.jxpath.ri.compiler.Operation", e); // } } @Test(timeout = 4000) public void test135() throws Throwable { CoreFunction coreFunction0 = new CoreFunction(8, (Expression[]) null); JXPathContextReferenceImpl jXPathContextReferenceImpl0 = (JXPathContextReferenceImpl)JXPathContext.newContext((Object) coreFunction0); QName qName0 = new QName("", ""); VariablePointer variablePointer0 = new VariablePointer(qName0); BeanPointer beanPointer0 = (BeanPointer)NodePointer.newNodePointer(qName0, variablePointer0, (Locale) null); RootContext rootContext0 = new RootContext(jXPathContextReferenceImpl0, beanPointer0); // Undeclared exception! // try { coreFunction0.compute(rootContext0); // fail("Expecting exception: RuntimeException"); // } catch(RuntimeException e) { // // // // Undefined variable: : // // // verifyException("org.apache.commons.jxpath.ri.model.VariablePointer$1", e); // } } @Test(timeout = 4000) public void test136() throws Throwable { BasicNodeSet basicNodeSet0 = new BasicNodeSet(); NodeSetContext nodeSetContext0 = new NodeSetContext((EvalContext) null, basicNodeSet0); Expression[] expressionArray0 = new Expression[17]; QName qName0 = new QName("oIg4%"); ExtensionFunction extensionFunction0 = new ExtensionFunction(qName0, expressionArray0); expressionArray0[6] = (Expression) extensionFunction0; CoreFunction coreFunction0 = new CoreFunction(1, expressionArray0); // Undeclared exception! coreFunction0.compute(nodeSetContext0); } @Test(timeout = 4000) public void test137() throws Throwable { Expression[] expressionArray0 = new Expression[2]; CoreFunction coreFunction0 = new CoreFunction(3, expressionArray0); // Undeclared exception! // try { coreFunction0.compute((EvalContext) null); // fail("Expecting exception: RuntimeException"); // } catch(RuntimeException e) { // // // // Incorrect number of arguments: count(null, null) // // // verifyException("org.apache.commons.jxpath.ri.compiler.CoreFunction", e); // } } @Test(timeout = 4000) public void test138() throws Throwable { Expression[] expressionArray0 = new Expression[1]; Constant constant0 = new Constant("round"); expressionArray0[0] = (Expression) constant0; JXPathContextReferenceImpl jXPathContextReferenceImpl0 = mock(JXPathContextReferenceImpl.class, new ViolatedAssumptionAnswer()); RootContext rootContext0 = new RootContext(jXPathContextReferenceImpl0, (NodePointer) null); CoreFunction coreFunction0 = new CoreFunction(22, expressionArray0); // Undeclared exception! // try { coreFunction0.compute(rootContext0); // fail("Expecting exception: UnsupportedOperationException"); // } catch(UnsupportedOperationException e) { // // // // no message in exception (getMessage() returned null) // // // verifyException("org.apache.commons.jxpath.ri.axes.RootContext", e); // } } @Test(timeout = 4000) public void test139() throws Throwable { Expression[] expressionArray0 = new Expression[7]; QName qName0 = new QName(""); ExtensionFunction extensionFunction0 = new ExtensionFunction(qName0, expressionArray0); expressionArray0[0] = (Expression) extensionFunction0; Step[] stepArray0 = new Step[5]; ProcessingInstructionTest processingInstructionTest0 = new ProcessingInstructionTest(""); Step step0 = new Step(19, processingInstructionTest0, expressionArray0); stepArray0[0] = step0; stepArray0[2] = stepArray0[0]; CoreOperationAdd coreOperationAdd0 = new CoreOperationAdd(expressionArray0); CoreFunction coreFunction0 = new CoreFunction(19, expressionArray0); Step[] stepArray1 = new Step[6]; stepArray1[0] = stepArray0[2]; stepArray1[1] = stepArray0[0]; stepArray1[2] = step0; stepArray1[3] = stepArray0[0]; stepArray1[4] = stepArray0[0]; stepArray1[5] = stepArray0[0]; ExpressionPath expressionPath0 = new ExpressionPath(coreOperationAdd0, expressionArray0, stepArray1); EvalContext evalContext0 = expressionPath0.evalSteps((EvalContext) null); ChildContext childContext0 = new ChildContext(evalContext0, processingInstructionTest0, true, true); // Undeclared exception! // try { coreFunction0.compute(childContext0); // fail("Expecting exception: StackOverflowError"); // } catch(StackOverflowError e) { // // // // no message in exception (getMessage() returned null) // // // } } @Test(timeout = 4000) public void test140() throws Throwable { Expression[] expressionArray0 = new Expression[0]; CoreFunction coreFunction0 = new CoreFunction(7, expressionArray0); BasicNodeSet basicNodeSet0 = new BasicNodeSet(); NodeSetContext nodeSetContext0 = new NodeSetContext((EvalContext) null, basicNodeSet0); coreFunction0.functionLast(nodeSetContext0); // Undeclared exception! // try { coreFunction0.compute(nodeSetContext0); // fail("Expecting exception: IndexOutOfBoundsException"); // } catch(IndexOutOfBoundsException e) { // // // // Index: 0, Size: 0 // // // verifyException("java.util.ArrayList", e); // } } @Test(timeout = 4000) public void test141() throws Throwable { Expression[] expressionArray0 = new Expression[1]; NameAttributeTest nameAttributeTest0 = new NameAttributeTest((Expression) null, (Expression) null); nameAttributeTest0.args = expressionArray0; expressionArray0[0] = (Expression) nameAttributeTest0; CoreFunction coreFunction0 = new CoreFunction(15, expressionArray0); // Undeclared exception! // try { coreFunction0.compute((EvalContext) null); // fail("Expecting exception: ArrayIndexOutOfBoundsException"); // } catch(ArrayIndexOutOfBoundsException e) { // // // // no message in exception (getMessage() returned null) // // // } } @Test(timeout = 4000) public void test142() throws Throwable { CoreFunction coreFunction0 = new CoreFunction(8, (Expression[]) null); // Undeclared exception! // try { coreFunction0.computeValue((EvalContext) null); // fail("Expecting exception: NullPointerException"); // } catch(NullPointerException e) { // // // // no message in exception (getMessage() returned null) // // // verifyException("org.apache.commons.jxpath.ri.compiler.CoreFunction", e); // } } @Test(timeout = 4000) public void test143() throws Throwable { Expression[] expressionArray0 = new Expression[7]; CoreFunction coreFunction0 = new CoreFunction(12, expressionArray0); String string0 = coreFunction0.toString(); assertEquals("substring-before(null, null, null, null, null, null, null)", string0); } @Test(timeout = 4000) public void test144() throws Throwable { Expression[] expressionArray0 = new Expression[1]; CoreFunction coreFunction0 = new CoreFunction(16, expressionArray0); String string0 = coreFunction0.toString(); assertEquals("normalize-space(null)", string0); } @Test(timeout = 4000) public void test145() throws Throwable { Expression[] expressionArray0 = new Expression[0]; CoreFunction coreFunction0 = new CoreFunction(0, expressionArray0); int int0 = coreFunction0.getArgumentCount(); assertEquals(0, int0); } @Test(timeout = 4000) public void test146() throws Throwable { CoreFunction coreFunction0 = new CoreFunction((-2409), (Expression[]) null); coreFunction0.getArgumentCount(); assertEquals((-2409), coreFunction0.getFunctionCode()); } @Test(timeout = 4000) public void test147() throws Throwable { Expression[] expressionArray0 = new Expression[6]; CoreFunction coreFunction0 = new CoreFunction((-1716), expressionArray0); coreFunction0.getArg2(); assertEquals((-1716), coreFunction0.getFunctionCode()); } @Test(timeout = 4000) public void test148() throws Throwable { CoreFunction coreFunction0 = new CoreFunction(5, (Expression[]) null); // Undeclared exception! // try { coreFunction0.getArg1(); // fail("Expecting exception: NullPointerException"); // } catch(NullPointerException e) { // // // // no message in exception (getMessage() returned null) // // // verifyException("org.apache.commons.jxpath.ri.compiler.CoreFunction", e); // } } @Test(timeout = 4000) public void test149() throws Throwable { Constant constant0 = new Constant("`l}w{rl"); Step[] stepArray0 = new Step[0]; LocationPath locationPath0 = new LocationPath(true, stepArray0); CoreOperationSubtract coreOperationSubtract0 = new CoreOperationSubtract(constant0, locationPath0); QName qName0 = new QName("`l}w{rl"); NodePointer nodePointer0 = NodePointer.newNodePointer(qName0, "`l}w{rl", (Locale) null); JXPathContextReferenceImpl jXPathContextReferenceImpl0 = (JXPathContextReferenceImpl)JXPathContext.newContext((Object) "<<unknown namespace>>"); RootContext rootContext0 = new RootContext(jXPathContextReferenceImpl0, nodePointer0); Expression[] expressionArray0 = new Expression[2]; expressionArray0[0] = (Expression) coreOperationSubtract0; expressionArray0[1] = (Expression) constant0; CoreFunction coreFunction0 = new CoreFunction(30, expressionArray0); // Undeclared exception! // try { coreFunction0.computeValue(rootContext0); // fail("Expecting exception: NullPointerException"); // } catch(NullPointerException e) { // // // // no message in exception (getMessage() returned null) // // // } } @Test(timeout = 4000) public void test150() throws Throwable { Constant constant0 = new Constant("`l}w{rl"); Step[] stepArray0 = new Step[0]; LocationPath locationPath0 = new LocationPath(true, stepArray0); CoreOperationSubtract coreOperationSubtract0 = new CoreOperationSubtract(constant0, locationPath0); QName qName0 = new QName("`l}w{rl"); NodePointer nodePointer0 = NodePointer.newNodePointer(qName0, "`l}w{rl", (Locale) null); JXPathContextReferenceImpl jXPathContextReferenceImpl0 = (JXPathContextReferenceImpl)JXPathContext.newContext((Object) "<<unknown namespace>>"); RootContext rootContext0 = new RootContext(jXPathContextReferenceImpl0, nodePointer0); Expression[] expressionArray0 = new Expression[2]; expressionArray0[0] = (Expression) coreOperationSubtract0; expressionArray0[1] = (Expression) constant0; CoreFunction coreFunction0 = new CoreFunction(30, expressionArray0); AttributeContext attributeContext0 = new AttributeContext(rootContext0, (NodeTest) null); coreFunction0.iterate(attributeContext0); assertEquals(30, coreFunction0.getFunctionCode()); } @Test(timeout = 4000) public void test151() throws Throwable { Expression[] expressionArray0 = new Expression[3]; CoreFunction coreFunction0 = new CoreFunction(30, expressionArray0); // Undeclared exception! // try { coreFunction0.computeValue((EvalContext) null); // fail("Expecting exception: NullPointerException"); // } catch(NullPointerException e) { // // // // no message in exception (getMessage() returned null) // // // verifyException("org.apache.commons.jxpath.ri.compiler.CoreFunction", e); // } } @Test(timeout = 4000) public void test152() throws Throwable { CoreFunction coreFunction0 = new CoreFunction(30, (Expression[]) null); ProcessingInstructionTest processingInstructionTest0 = new ProcessingInstructionTest("E>1b^1"); ChildContext childContext0 = new ChildContext((EvalContext) null, processingInstructionTest0, false, false); PrecedingOrFollowingContext precedingOrFollowingContext0 = new PrecedingOrFollowingContext(childContext0, processingInstructionTest0, false); // Undeclared exception! // try { coreFunction0.computeValue(precedingOrFollowingContext0); // fail("Expecting exception: RuntimeException"); // } catch(RuntimeException e) { // // // // Incorrect number of arguments: format-number() // // // verifyException("org.apache.commons.jxpath.ri.compiler.CoreFunction", e); // } } @Test(timeout = 4000) public void test153() throws Throwable { Expression[] expressionArray0 = new Expression[8]; CoreFunction coreFunction0 = new CoreFunction((-231), expressionArray0); Expression[] expressionArray1 = new Expression[1]; expressionArray1[0] = (Expression) coreFunction0; CoreFunction coreFunction1 = new CoreFunction(9, expressionArray1); Object object0 = coreFunction1.functionSum((EvalContext) null); assertEquals(9, coreFunction1.getFunctionCode()); assertEquals(0.0, object0); } @Test(timeout = 4000) public void test154() throws Throwable { Expression[] expressionArray0 = new Expression[1]; Byte byte0 = new Byte((byte) (-58)); Constant constant0 = new Constant(byte0); expressionArray0[0] = (Expression) constant0; CoreFunction coreFunction0 = new CoreFunction(2, expressionArray0); // Undeclared exception! // try { coreFunction0.functionSum((EvalContext) null); // fail("Expecting exception: RuntimeException"); // } catch(RuntimeException e) { // // // // Invalid argument type for 'sum': java.lang.Byte // // // verifyException("org.apache.commons.jxpath.ri.compiler.CoreFunction", e); // } } @Test(timeout = 4000) public void test155() throws Throwable { CoreFunction coreFunction0 = new CoreFunction(68, (Expression[]) null); JXPathContextReferenceImpl jXPathContextReferenceImpl0 = (JXPathContextReferenceImpl)JXPathContext.newContext((Object) coreFunction0); QName qName0 = new QName("l"); VariablePointer variablePointer0 = new VariablePointer(qName0); RootContext rootContext0 = new RootContext(jXPathContextReferenceImpl0, variablePointer0); // Undeclared exception! // try { coreFunction0.functionNumber(rootContext0); // fail("Expecting exception: RuntimeException"); // } catch(RuntimeException e) { // // // // Undefined variable: l // // // verifyException("org.apache.commons.jxpath.ri.model.VariablePointer$1", e); // } } @Test(timeout = 4000) public void test156() throws Throwable { Byte byte0 = new Byte((byte) (-64)); Constant constant0 = new Constant(byte0); Expression[] expressionArray0 = new Expression[1]; expressionArray0[0] = (Expression) constant0; CoreFunction coreFunction0 = new CoreFunction(54, expressionArray0); Object object0 = coreFunction0.functionNot((EvalContext) null); assertEquals(54, coreFunction0.getFunctionCode()); assertEquals(false, object0); } @Test(timeout = 4000) public void test157() throws Throwable { Expression[] expressionArray0 = new Expression[8]; CoreFunction coreFunction0 = new CoreFunction((-231), expressionArray0); Expression[] expressionArray1 = new Expression[1]; expressionArray1[0] = (Expression) coreFunction0; CoreFunction coreFunction1 = new CoreFunction(9, expressionArray1); Object object0 = coreFunction1.functionNot((EvalContext) null); assertEquals(9, coreFunction1.getFunctionCode()); assertEquals(true, object0); } @Test(timeout = 4000) public void test158() throws Throwable { Expression[] expressionArray0 = new Expression[1]; Byte byte0 = new Byte((byte) (-58)); Constant constant0 = new Constant(byte0); expressionArray0[0] = (Expression) constant0; CoreFunction coreFunction0 = new CoreFunction(2, expressionArray0); Object object0 = coreFunction0.functionBoolean((EvalContext) null); assertEquals(2, coreFunction0.getFunctionCode()); assertEquals(true, object0); } @Test(timeout = 4000) public void test159() throws Throwable { Expression[] expressionArray0 = new Expression[1]; Constant constant0 = new Constant((Number) null); expressionArray0[0] = (Expression) constant0; CoreFunction coreFunction0 = new CoreFunction((-12), expressionArray0); Object object0 = coreFunction0.functionBoolean((EvalContext) null); assertEquals(false, object0); assertEquals((-12), coreFunction0.getFunctionCode()); } @Test(timeout = 4000) public void test160() throws Throwable { Expression[] expressionArray0 = new Expression[1]; Constant constant0 = new Constant(" 967)5fW<"); expressionArray0[0] = (Expression) constant0; CoreFunction coreFunction0 = new CoreFunction(65536, expressionArray0); Object object0 = coreFunction0.functionNormalizeSpace((EvalContext) null); assertEquals(65536, coreFunction0.getFunctionCode()); assertEquals("967)5fW<", object0); } @Test(timeout = 4000) public void test161() throws Throwable { Expression[] expressionArray0 = new Expression[1]; Constant constant0 = new Constant("BVO ."); expressionArray0[0] = (Expression) constant0; CoreFunction coreFunction0 = new CoreFunction(12, expressionArray0); Object object0 = coreFunction0.functionNormalizeSpace((EvalContext) null); assertEquals(12, coreFunction0.getFunctionCode()); assertEquals("BVO .", object0); } @Test(timeout = 4000) public void test162() throws Throwable { CoreFunction coreFunction0 = new CoreFunction(15, (Expression[]) null); NodeTypeTest nodeTypeTest0 = new NodeTypeTest(15); ParentContext parentContext0 = new ParentContext((EvalContext) null, nodeTypeTest0); NamespaceContext namespaceContext0 = new NamespaceContext(parentContext0, nodeTypeTest0); Object object0 = coreFunction0.computeValue(namespaceContext0); assertNotNull(object0); assertEquals(15, coreFunction0.getFunctionCode()); } @Test(timeout = 4000) public void test163() throws Throwable { Expression[] expressionArray0 = new Expression[3]; Constant constant0 = new Constant((String) null); expressionArray0[0] = (Expression) constant0; CoreOperationSubtract coreOperationSubtract0 = new CoreOperationSubtract(constant0, expressionArray0[0]); expressionArray0[1] = (Expression) coreOperationSubtract0; CoreFunction coreFunction0 = new CoreFunction(3, expressionArray0); // Undeclared exception! // try { coreFunction0.functionSubstring((EvalContext) null); // fail("Expecting exception: NullPointerException"); // } catch(NullPointerException e) { // // // // no message in exception (getMessage() returned null) // // // verifyException("org.apache.commons.jxpath.ri.compiler.CoreFunction", e); // } } @Test(timeout = 4000) public void test164() throws Throwable { Expression[] expressionArray0 = new Expression[2]; Constant constant0 = new Constant("substring"); expressionArray0[0] = (Expression) constant0; CoreOperationSubtract coreOperationSubtract0 = new CoreOperationSubtract(constant0, constant0); expressionArray0[1] = (Expression) coreOperationSubtract0; CoreFunction coreFunction0 = new CoreFunction(20, expressionArray0); BasicNodeSet basicNodeSet0 = new BasicNodeSet(); NodeSetContext nodeSetContext0 = new NodeSetContext((EvalContext) null, basicNodeSet0); Object object0 = coreFunction0.functionSubstring(nodeSetContext0); assertEquals("", object0); assertEquals(20, coreFunction0.getFunctionCode()); } @Test(timeout = 4000) public void test165() throws Throwable { Expression[] expressionArray0 = new Expression[2]; Constant constant0 = new Constant((String) null); expressionArray0[0] = (Expression) constant0; CoreOperationSubtract coreOperationSubtract0 = new CoreOperationSubtract(constant0, expressionArray0[0]); expressionArray0[1] = (Expression) coreOperationSubtract0; CoreFunction coreFunction0 = new CoreFunction(3, expressionArray0); coreFunction0.functionSubstring((EvalContext) null); assertEquals(3, coreFunction0.getFunctionCode()); } @Test(timeout = 4000) public void test166() throws Throwable { Expression[] expressionArray0 = new Expression[2]; Constant constant0 = new Constant("substring"); expressionArray0[0] = (Expression) constant0; CoreOperationSubtract coreOperationSubtract0 = new CoreOperationSubtract(constant0, constant0); expressionArray0[1] = (Expression) coreOperationSubtract0; CoreFunction coreFunction0 = new CoreFunction(20, expressionArray0); Object object0 = coreFunction0.functionSubstringAfter((EvalContext) null); assertEquals("", object0); assertEquals(20, coreFunction0.getFunctionCode()); } @Test(timeout = 4000) public void test167() throws Throwable { Float float0 = new Float((-378.9603130759)); Constant constant0 = new Constant(float0); Expression[] expressionArray0 = new Expression[2]; expressionArray0[0] = (Expression) constant0; expressionArray0[1] = (Expression) constant0; CoreFunction coreFunction0 = new CoreFunction(62, expressionArray0); Object object0 = coreFunction0.functionSubstringAfter((EvalContext) null); assertEquals(62, coreFunction0.getFunctionCode()); assertEquals("", object0); } @Test(timeout = 4000) public void test168() throws Throwable { Expression[] expressionArray0 = new Expression[2]; Constant constant0 = new Constant("substring"); expressionArray0[0] = (Expression) constant0; CoreOperationSubtract coreOperationSubtract0 = new CoreOperationSubtract(constant0, constant0); expressionArray0[1] = (Expression) coreOperationSubtract0; CoreFunction coreFunction0 = new CoreFunction(20, expressionArray0); coreFunction0.functionSubstringBefore((EvalContext) null); assertEquals(20, coreFunction0.getFunctionCode()); } @Test(timeout = 4000) public void test169() throws Throwable { Constant constant0 = new Constant(""); CoreOperationSubtract coreOperationSubtract0 = new CoreOperationSubtract(constant0, constant0); Expression[] expressionArray0 = new Expression[2]; expressionArray0[0] = (Expression) coreOperationSubtract0; expressionArray0[1] = (Expression) coreOperationSubtract0; CoreFunction coreFunction0 = new CoreFunction(1859, expressionArray0); Object object0 = coreFunction0.functionSubstringBefore((EvalContext) null); assertEquals(1859, coreFunction0.getFunctionCode()); assertEquals("", object0); } @Test(timeout = 4000) public void test170() throws Throwable { Expression[] expressionArray0 = new Expression[2]; Constant constant0 = new Constant(""); expressionArray0[0] = (Expression) constant0; CoreFunction coreFunction0 = new CoreFunction(0, expressionArray0); expressionArray0[1] = (Expression) constant0; Object object0 = coreFunction0.functionContains((EvalContext) null); assertEquals(true, object0); } @Test(timeout = 4000) public void test171() throws Throwable { Expression[] expressionArray0 = new Expression[2]; Constant constant0 = new Constant("substring"); expressionArray0[0] = (Expression) constant0; CoreOperationSubtract coreOperationSubtract0 = new CoreOperationSubtract(constant0, constant0); expressionArray0[1] = (Expression) coreOperationSubtract0; CoreFunction coreFunction0 = new CoreFunction(20, expressionArray0); Object object0 = coreFunction0.functionContains((EvalContext) null); assertEquals(20, coreFunction0.getFunctionCode()); assertEquals(false, object0); } @Test(timeout = 4000) public void test172() throws Throwable { Constant constant0 = new Constant("boolean"); Expression[] expressionArray0 = new Expression[2]; expressionArray0[0] = (Expression) constant0; expressionArray0[1] = (Expression) constant0; CoreFunction coreFunction0 = new CoreFunction((-6), expressionArray0); Object object0 = coreFunction0.functionStartsWith((EvalContext) null); assertEquals(true, object0); assertEquals((-6), coreFunction0.getFunctionCode()); } @Test(timeout = 4000) public void test173() throws Throwable { Expression[] expressionArray0 = new Expression[2]; Constant constant0 = new Constant("substring"); expressionArray0[0] = (Expression) constant0; CoreOperationSubtract coreOperationSubtract0 = new CoreOperationSubtract(constant0, constant0); expressionArray0[1] = (Expression) coreOperationSubtract0; CoreFunction coreFunction0 = new CoreFunction(20, expressionArray0); Object object0 = coreFunction0.functionStartsWith((EvalContext) null); assertEquals(false, object0); assertEquals(20, coreFunction0.getFunctionCode()); } @Test(timeout = 4000) public void test174() throws Throwable { Expression[] expressionArray0 = new Expression[2]; Constant constant0 = new Constant(""); expressionArray0[0] = (Expression) constant0; CoreFunction coreFunction0 = new CoreFunction(0, expressionArray0); expressionArray0[1] = (Expression) constant0; Object object0 = coreFunction0.functionConcat((EvalContext) null); assertEquals("", object0); } @Test(timeout = 4000) public void test175() throws Throwable { Expression[] expressionArray0 = new Expression[1]; CoreFunction coreFunction0 = new CoreFunction(6, expressionArray0); // Undeclared exception! // try { coreFunction0.functionString((EvalContext) null); // fail("Expecting exception: NullPointerException"); // } catch(NullPointerException e) { // // // // no message in exception (getMessage() returned null) // // // verifyException("org.apache.commons.jxpath.ri.compiler.CoreFunction", e); // } } @Test(timeout = 4000) public void test176() throws Throwable { Expression[] expressionArray0 = new Expression[1]; Constant constant0 = new Constant("r h%Im7"); expressionArray0[0] = (Expression) constant0; CoreFunction coreFunction0 = new CoreFunction(79, expressionArray0); coreFunction0.functionName((EvalContext) null); assertEquals(79, coreFunction0.getFunctionCode()); } @Test(timeout = 4000) public void test177() throws Throwable { Expression[] expressionArray0 = new Expression[0]; CoreFunction coreFunction0 = new CoreFunction(7, expressionArray0); BasicNodeSet basicNodeSet0 = new BasicNodeSet(); NodeSetContext nodeSetContext0 = new NodeSetContext((EvalContext) null, basicNodeSet0); // Undeclared exception! // try { coreFunction0.compute(nodeSetContext0); // fail("Expecting exception: NullPointerException"); // } catch(NullPointerException e) { // // // // no message in exception (getMessage() returned null) // // // verifyException("org.apache.commons.jxpath.ri.compiler.CoreFunction", e); // } } @Test(timeout = 4000) public void test178() throws Throwable { Expression[] expressionArray0 = new Expression[1]; Constant constant0 = new Constant("round"); expressionArray0[0] = (Expression) constant0; JXPathContextReferenceImpl jXPathContextReferenceImpl0 = mock(JXPathContextReferenceImpl.class, new ViolatedAssumptionAnswer()); RootContext rootContext0 = new RootContext(jXPathContextReferenceImpl0, (NodePointer) null); CoreFunction coreFunction0 = new CoreFunction(22, expressionArray0); coreFunction0.functionLocalName(rootContext0); assertEquals(22, coreFunction0.getFunctionCode()); } @Test(timeout = 4000) public void test179() throws Throwable { Expression[] expressionArray0 = new Expression[2]; CoreFunction coreFunction0 = new CoreFunction(1859, expressionArray0); // Undeclared exception! // try { coreFunction0.functionLocalName((EvalContext) null); // fail("Expecting exception: RuntimeException"); // } catch(RuntimeException e) { // // // // Incorrect number of arguments: unknownFunction1859()(null, null) // // // verifyException("org.apache.commons.jxpath.ri.compiler.CoreFunction", e); // } } @Test(timeout = 4000) public void test180() throws Throwable { Expression[] expressionArray0 = new Expression[1]; Constant constant0 = new Constant("round"); expressionArray0[0] = (Expression) constant0; CoreFunction coreFunction0 = new CoreFunction(6, expressionArray0); Object object0 = coreFunction0.computeValue((EvalContext) null); assertNotNull(object0); assertEquals(6, coreFunction0.getFunctionCode()); } @Test(timeout = 4000) public void test181() throws Throwable { CoreFunction coreFunction0 = new CoreFunction(8, (Expression[]) null); JXPathContextReferenceImpl jXPathContextReferenceImpl0 = (JXPathContextReferenceImpl)JXPathContext.newContext((Object) coreFunction0); QName qName0 = new QName("]", "]"); VariablePointer variablePointer0 = new VariablePointer(qName0); BeanPointer beanPointer0 = (BeanPointer)NodePointer.newNodePointer(qName0, variablePointer0, (Locale) null); RootContext rootContext0 = new RootContext(jXPathContextReferenceImpl0, beanPointer0); String string0 = (String)coreFunction0.functionNamespaceURI(rootContext0); assertEquals(8, coreFunction0.getFunctionCode()); assertNotNull(string0); } @Test(timeout = 4000) public void test182() throws Throwable { Expression[] expressionArray0 = new Expression[2]; Constant constant0 = new Constant("`l}w{rl"); expressionArray0[0] = (Expression) constant0; CoreOperationSubtract coreOperationSubtract0 = new CoreOperationSubtract(constant0, constant0); expressionArray0[1] = (Expression) coreOperationSubtract0; QName qName0 = new QName("`l}w{rl", "`l}w{rl"); VariablePointer variablePointer0 = new VariablePointer(qName0); JXPathContextReferenceImpl jXPathContextReferenceImpl0 = (JXPathContextReferenceImpl)JXPathContext.newContext((Object) variablePointer0); RootContext rootContext0 = new RootContext(jXPathContextReferenceImpl0, variablePointer0); CoreFunction coreFunction0 = new CoreFunction(30, expressionArray0); // Undeclared exception! // try { coreFunction0.functionKey(rootContext0); // fail("Expecting exception: RuntimeException"); // } catch(RuntimeException e) { // // // // Cannot find an element by key - no KeyManager has been specified // // // verifyException("org.apache.commons.jxpath.JXPathContext", e); // } } @Test(timeout = 4000) public void test183() throws Throwable { Expression[] expressionArray0 = new Expression[1]; Byte byte0 = new Byte((byte)56); Constant constant0 = new Constant(byte0); expressionArray0[0] = (Expression) constant0; CoreFunction coreFunction0 = new CoreFunction((byte)56, expressionArray0); BasicNodeSet basicNodeSet0 = new BasicNodeSet(); NodeSetContext nodeSetContext0 = new NodeSetContext((EvalContext) null, basicNodeSet0); coreFunction0.functionLang(nodeSetContext0); assertEquals(56, coreFunction0.getFunctionCode()); } @Test(timeout = 4000) public void test184() throws Throwable { Expression[] expressionArray0 = new Expression[8]; CoreFunction coreFunction0 = new CoreFunction((-231), expressionArray0); Expression[] expressionArray1 = new Expression[1]; expressionArray1[0] = (Expression) coreFunction0; CoreFunction coreFunction1 = new CoreFunction(9, expressionArray1); Object object0 = coreFunction1.functionCount((EvalContext) null); assertEquals(0.0, object0); assertEquals(9, coreFunction1.getFunctionCode()); } @Test(timeout = 4000) public void test185() throws Throwable { Expression[] expressionArray0 = new Expression[1]; Byte byte0 = new Byte((byte) (-58)); Constant constant0 = new Constant(byte0); expressionArray0[0] = (Expression) constant0; CoreFunction coreFunction0 = new CoreFunction(2, expressionArray0); Object object0 = coreFunction0.functionCount((EvalContext) null); assertEquals(1.0, object0); assertEquals(2, coreFunction0.getFunctionCode()); } @Test(timeout = 4000) public void test186() throws Throwable { CoreFunction coreFunction0 = new CoreFunction(13, (Expression[]) null); BasicNodeSet basicNodeSet0 = new BasicNodeSet(); NodeSetContext nodeSetContext0 = new NodeSetContext((EvalContext) null, basicNodeSet0); nodeSetContext0.setPosition((-627)); Object object0 = coreFunction0.functionLast(nodeSetContext0); assertEquals((-627), nodeSetContext0.getPosition()); assertEquals(0.0, object0); } @Test(timeout = 4000) public void test187() throws Throwable { Expression[] expressionArray0 = new Expression[0]; CoreFunction coreFunction0 = new CoreFunction(20, expressionArray0); BasicNodeSet basicNodeSet0 = new BasicNodeSet(); basicNodeSet0.add((Pointer) null); NodeSetContext nodeSetContext0 = new NodeSetContext((EvalContext) null, basicNodeSet0); Object object0 = coreFunction0.functionLast(nodeSetContext0); assertEquals(2, nodeSetContext0.getPosition()); assertEquals(1.0, object0); } @Test(timeout = 4000) public void test188() throws Throwable { Expression[] expressionArray0 = new Expression[2]; CoreFunction coreFunction0 = new CoreFunction(32, expressionArray0); coreFunction0.computeValue((EvalContext) null); assertEquals(32, coreFunction0.getFunctionCode()); } @Test(timeout = 4000) public void test189() throws Throwable { Expression[] expressionArray0 = new Expression[5]; CoreFunction coreFunction0 = new CoreFunction(24, expressionArray0); RootContext rootContext0 = new RootContext((JXPathContextReferenceImpl) null, (NodePointer) null); NamespaceContext namespaceContext0 = new NamespaceContext(rootContext0, (NodeTest) null); // Undeclared exception! // try { coreFunction0.computeValue(namespaceContext0); // fail("Expecting exception: RuntimeException"); // } catch(RuntimeException e) { // // // // Incorrect number of arguments: sum(null, null, null, null, null) // // // verifyException("org.apache.commons.jxpath.ri.compiler.CoreFunction", e); // } } @Test(timeout = 4000) public void test190() throws Throwable { Expression[] expressionArray0 = new Expression[1]; JXPathContextReferenceImpl jXPathContextReferenceImpl0 = mock(JXPathContextReferenceImpl.class, new ViolatedAssumptionAnswer()); RootContext rootContext0 = new RootContext(jXPathContextReferenceImpl0, (NodePointer) null); CoreFunction coreFunction0 = new CoreFunction(13, expressionArray0); // Undeclared exception! // try { coreFunction0.computeValue(rootContext0); // fail("Expecting exception: RuntimeException"); // } catch(RuntimeException e) { // // // // Incorrect number of arguments: substring-after(null) // // // verifyException("org.apache.commons.jxpath.ri.compiler.CoreFunction", e); // } } @Test(timeout = 4000) public void test191() throws Throwable { Expression[] expressionArray0 = new Expression[7]; CoreFunction coreFunction0 = new CoreFunction(12, expressionArray0); // Undeclared exception! // try { coreFunction0.computeValue((EvalContext) null); // fail("Expecting exception: RuntimeException"); // } catch(RuntimeException e) { // // // // Incorrect number of arguments: substring-before(null, null, null, null, null, null, null) // // // verifyException("org.apache.commons.jxpath.ri.compiler.CoreFunction", e); // } } @Test(timeout = 4000) public void test192() throws Throwable { CoreFunction coreFunction0 = new CoreFunction(5, (Expression[]) null); // Undeclared exception! // try { coreFunction0.computeValue((EvalContext) null); // fail("Expecting exception: NullPointerException"); // } catch(NullPointerException e) { // // // // no message in exception (getMessage() returned null) // // // verifyException("org.apache.commons.jxpath.ri.compiler.CoreFunction", e); // } } @Test(timeout = 4000) public void test193() throws Throwable { Expression[] expressionArray0 = new Expression[1]; Float float0 = new Float((double) 30); Constant constant0 = new Constant(float0); expressionArray0[0] = (Expression) constant0; Expression[] expressionArray1 = new Expression[2]; expressionArray1[0] = (Expression) constant0; CoreOperationGreaterThan coreOperationGreaterThan0 = new CoreOperationGreaterThan(expressionArray0[0], expressionArray1[0]); expressionArray1[1] = (Expression) coreOperationGreaterThan0; CoreFunction coreFunction0 = new CoreFunction(30, expressionArray1); boolean boolean0 = coreFunction0.computeContextDependent(); assertTrue(boolean0); } @Test(timeout = 4000) public void test194() throws Throwable { Constant constant0 = new Constant("zzs(O$;KKR!"); CoreOperationSubtract coreOperationSubtract0 = new CoreOperationSubtract(constant0, constant0); Expression[] expressionArray0 = new Expression[6]; expressionArray0[0] = (Expression) coreOperationSubtract0; expressionArray0[1] = (Expression) constant0; expressionArray0[2] = (Expression) coreOperationSubtract0; expressionArray0[3] = (Expression) constant0; expressionArray0[4] = (Expression) coreOperationSubtract0; expressionArray0[5] = (Expression) constant0; CoreFunction coreFunction0 = new CoreFunction(30, expressionArray0); boolean boolean0 = coreFunction0.computeContextDependent(); assertFalse(boolean0); assertEquals(30, coreFunction0.getFunctionCode()); } @Test(timeout = 4000) public void test195() throws Throwable { CoreFunction coreFunction0 = new CoreFunction((-2409), (Expression[]) null); boolean boolean0 = coreFunction0.computeContextDependent(); assertEquals((-2409), coreFunction0.getFunctionCode()); assertFalse(boolean0); } @Test(timeout = 4000) public void test196() throws Throwable { CoreFunction coreFunction0 = new CoreFunction(29, (Expression[]) null); boolean boolean0 = coreFunction0.computeContextDependent(); assertEquals(29, coreFunction0.getFunctionCode()); assertFalse(boolean0); } @Test(timeout = 4000) public void test197() throws Throwable { CoreFunction coreFunction0 = new CoreFunction(28, (Expression[]) null); boolean boolean0 = coreFunction0.computeContextDependent(); assertFalse(boolean0); assertEquals(28, coreFunction0.getFunctionCode()); } @Test(timeout = 4000) public void test198() throws Throwable { Expression[] expressionArray0 = new Expression[1]; Byte byte0 = new Byte((byte)27); Constant constant0 = new Constant(byte0); expressionArray0[0] = (Expression) constant0; CoreFunction coreFunction0 = new CoreFunction((byte)27, expressionArray0); boolean boolean0 = coreFunction0.computeContextDependent(); assertFalse(boolean0); assertEquals(27, coreFunction0.getFunctionCode()); } @Test(timeout = 4000) public void test199() throws Throwable { CoreFunction coreFunction0 = new CoreFunction(26, (Expression[]) null); boolean boolean0 = coreFunction0.computeContextDependent(); assertFalse(boolean0); assertEquals(26, coreFunction0.getFunctionCode()); } @Test(timeout = 4000) public void test200() throws Throwable { CoreFunction coreFunction0 = new CoreFunction(25, (Expression[]) null); boolean boolean0 = coreFunction0.computeContextDependent(); assertFalse(boolean0); assertEquals(25, coreFunction0.getFunctionCode()); } @Test(timeout = 4000) public void test201() throws Throwable { CoreFunction coreFunction0 = new CoreFunction(24, (Expression[]) null); boolean boolean0 = coreFunction0.computeContextDependent(); assertFalse(boolean0); assertEquals(24, coreFunction0.getFunctionCode()); } @Test(timeout = 4000) public void test202() throws Throwable { Expression[] expressionArray0 = new Expression[0]; CoreFunction coreFunction0 = new CoreFunction(23, expressionArray0); boolean boolean0 = coreFunction0.computeContextDependent(); assertTrue(boolean0); } @Test(timeout = 4000) public void test203() throws Throwable { Expression[] expressionArray0 = new Expression[1]; Constant constant0 = new Constant("round"); expressionArray0[0] = (Expression) constant0; CoreFunction coreFunction0 = new CoreFunction(22, expressionArray0); boolean boolean0 = coreFunction0.computeContextDependent(); assertFalse(boolean0); assertEquals(22, coreFunction0.getFunctionCode()); } @Test(timeout = 4000) public void test204() throws Throwable { Expression[] expressionArray0 = new Expression[0]; CoreFunction coreFunction0 = new CoreFunction(21, expressionArray0); boolean boolean0 = coreFunction0.computeContextDependent(); assertFalse(boolean0); assertEquals(21, coreFunction0.getFunctionCode()); } @Test(timeout = 4000) public void test205() throws Throwable { Expression[] expressionArray0 = new Expression[2]; Constant constant0 = new Constant("substring"); expressionArray0[0] = (Expression) constant0; CoreOperationSubtract coreOperationSubtract0 = new CoreOperationSubtract(constant0, constant0); expressionArray0[1] = (Expression) coreOperationSubtract0; CoreFunction coreFunction0 = new CoreFunction(20, expressionArray0); boolean boolean0 = coreFunction0.computeContextDependent(); assertEquals(20, coreFunction0.getFunctionCode()); assertFalse(boolean0); } @Test(timeout = 4000) public void test206() throws Throwable { CoreFunction coreFunction0 = new CoreFunction(19, (Expression[]) null); boolean boolean0 = coreFunction0.computeContextDependent(); assertFalse(boolean0); assertEquals(19, coreFunction0.getFunctionCode()); } @Test(timeout = 4000) public void test207() throws Throwable { Expression[] expressionArray0 = new Expression[0]; CoreFunction coreFunction0 = new CoreFunction(18, expressionArray0); boolean boolean0 = coreFunction0.computeContextDependent(); assertTrue(boolean0); } @Test(timeout = 4000) public void test208() throws Throwable { Expression[] expressionArray0 = new Expression[0]; CoreFunction coreFunction0 = new CoreFunction(17, expressionArray0); boolean boolean0 = coreFunction0.computeContextDependent(); assertEquals(17, coreFunction0.getFunctionCode()); assertFalse(boolean0); } @Test(timeout = 4000) public void test209() throws Throwable { CoreFunction coreFunction0 = new CoreFunction(16, (Expression[]) null); boolean boolean0 = coreFunction0.isContextDependent(); assertFalse(boolean0); assertEquals(16, coreFunction0.getFunctionCode()); } @Test(timeout = 4000) public void test210() throws Throwable { CoreFunction coreFunction0 = new CoreFunction(15, (Expression[]) null); boolean boolean0 = coreFunction0.computeContextDependent(); assertEquals(15, coreFunction0.getFunctionCode()); assertFalse(boolean0); } @Test(timeout = 4000) public void test211() throws Throwable { Constant constant0 = new Constant("d[TDY2{1_le"); Expression[] expressionArray0 = new Expression[5]; expressionArray0[0] = (Expression) constant0; expressionArray0[1] = (Expression) constant0; expressionArray0[2] = (Expression) constant0; expressionArray0[3] = (Expression) constant0; expressionArray0[4] = (Expression) constant0; CoreFunction coreFunction0 = new CoreFunction(14, expressionArray0); boolean boolean0 = coreFunction0.computeContextDependent(); assertEquals(14, coreFunction0.getFunctionCode()); assertFalse(boolean0); } @Test(timeout = 4000) public void test212() throws Throwable { CoreFunction coreFunction0 = new CoreFunction(13, (Expression[]) null); boolean boolean0 = coreFunction0.computeContextDependent(); assertEquals(13, coreFunction0.getFunctionCode()); assertFalse(boolean0); } @Test(timeout = 4000) public void test213() throws Throwable { Byte byte0 = new Byte((byte) (-58)); Constant constant0 = new Constant(byte0); Expression[] expressionArray0 = new Expression[7]; expressionArray0[0] = (Expression) constant0; expressionArray0[1] = (Expression) constant0; expressionArray0[2] = (Expression) constant0; expressionArray0[3] = (Expression) constant0; expressionArray0[4] = (Expression) constant0; expressionArray0[5] = (Expression) constant0; expressionArray0[6] = (Expression) constant0; CoreFunction coreFunction0 = new CoreFunction(12, expressionArray0); boolean boolean0 = coreFunction0.computeContextDependent(); assertFalse(boolean0); assertEquals(12, coreFunction0.getFunctionCode()); } @Test(timeout = 4000) public void test214() throws Throwable { CoreFunction coreFunction0 = new CoreFunction(11, (Expression[]) null); boolean boolean0 = coreFunction0.computeContextDependent(); assertEquals(11, coreFunction0.getFunctionCode()); assertFalse(boolean0); } @Test(timeout = 4000) public void test215() throws Throwable { CoreFunction coreFunction0 = new CoreFunction(10, (Expression[]) null); boolean boolean0 = coreFunction0.computeContextDependent(); assertFalse(boolean0); assertEquals(10, coreFunction0.getFunctionCode()); } @Test(timeout = 4000) public void test216() throws Throwable { CoreFunction coreFunction0 = new CoreFunction(9, (Expression[]) null); boolean boolean0 = coreFunction0.computeContextDependent(); assertEquals(9, coreFunction0.getFunctionCode()); assertFalse(boolean0); } @Test(timeout = 4000) public void test217() throws Throwable { CoreFunction coreFunction0 = new CoreFunction(8, (Expression[]) null); boolean boolean0 = coreFunction0.computeContextDependent(); assertTrue(boolean0); } @Test(timeout = 4000) public void test218() throws Throwable { Expression[] expressionArray0 = new Expression[1]; Byte byte0 = new Byte((byte)56); Constant constant0 = new Constant(byte0); expressionArray0[0] = (Expression) constant0; CoreFunction coreFunction0 = new CoreFunction(7, expressionArray0); boolean boolean0 = coreFunction0.computeContextDependent(); assertFalse(boolean0); assertEquals(7, coreFunction0.getFunctionCode()); } @Test(timeout = 4000) public void test219() throws Throwable { CoreFunction coreFunction0 = new CoreFunction(6, (Expression[]) null); boolean boolean0 = coreFunction0.computeContextDependent(); assertTrue(boolean0); } @Test(timeout = 4000) public void test220() throws Throwable { CoreFunction coreFunction0 = new CoreFunction(5, (Expression[]) null); boolean boolean0 = coreFunction0.computeContextDependent(); assertTrue(boolean0); } @Test(timeout = 4000) public void test221() throws Throwable { Constant constant0 = new Constant("d[TDY2{1_le"); Expression[] expressionArray0 = new Expression[1]; expressionArray0[0] = (Expression) constant0; CoreFunction coreFunction0 = new CoreFunction(4, expressionArray0); boolean boolean0 = coreFunction0.computeContextDependent(); assertEquals(4, coreFunction0.getFunctionCode()); assertFalse(boolean0); } @Test(timeout = 4000) public void test222() throws Throwable { Expression[] expressionArray0 = new Expression[2]; Constant constant0 = new Constant((String) null); expressionArray0[0] = (Expression) constant0; CoreOperationSubtract coreOperationSubtract0 = new CoreOperationSubtract(constant0, expressionArray0[0]); expressionArray0[1] = (Expression) coreOperationSubtract0; CoreFunction coreFunction0 = new CoreFunction(3, expressionArray0); boolean boolean0 = coreFunction0.computeContextDependent(); assertEquals(3, coreFunction0.getFunctionCode()); assertFalse(boolean0); } @Test(timeout = 4000) public void test223() throws Throwable { Expression[] expressionArray0 = new Expression[1]; Byte byte0 = new Byte((byte) (-58)); Constant constant0 = new Constant(byte0); expressionArray0[0] = (Expression) constant0; CoreFunction coreFunction0 = new CoreFunction(2, expressionArray0); boolean boolean0 = coreFunction0.computeContextDependent(); assertTrue(boolean0); } @Test(timeout = 4000) public void test224() throws Throwable { CoreFunction coreFunction0 = new CoreFunction(1, (Expression[]) null); boolean boolean0 = coreFunction0.isContextDependent(); assertTrue(boolean0); } @Test(timeout = 4000) public void test225() throws Throwable { Expression[] expressionArray0 = new Expression[1]; QName qName0 = new QName((String) null, "C6TEChsbzb)m"); ExtensionFunction extensionFunction0 = new ExtensionFunction(qName0, expressionArray0); expressionArray0[0] = (Expression) extensionFunction0; CoreFunction coreFunction0 = new CoreFunction(10, expressionArray0); boolean boolean0 = coreFunction0.isContextDependent(); assertTrue(boolean0); assertEquals(10, coreFunction0.getFunctionCode()); } @Test(timeout = 4000) public void test226() throws Throwable { CoreFunction coreFunction0 = new CoreFunction(30, (Expression[]) null); boolean boolean0 = coreFunction0.isContextDependent(); assertFalse(boolean0); assertEquals(30, coreFunction0.getFunctionCode()); } @Test(timeout = 4000) public void test227() throws Throwable { CoreFunction coreFunction0 = new CoreFunction(30, (Expression[]) null); String string0 = coreFunction0.toString(); assertEquals("format-number()", string0); } @Test(timeout = 4000) public void test228() throws Throwable { CoreFunction coreFunction0 = new CoreFunction(29, (Expression[]) null); // Undeclared exception! // try { coreFunction0.computeValue((EvalContext) null); // fail("Expecting exception: RuntimeException"); // } catch(RuntimeException e) { // // // // Incorrect number of arguments: key() // // // verifyException("org.apache.commons.jxpath.ri.compiler.CoreFunction", e); // } } @Test(timeout = 4000) public void test229() throws Throwable { CoreFunction coreFunction0 = new CoreFunction(28, (Expression[]) null); // Undeclared exception! // try { coreFunction0.functionCount((EvalContext) null); // fail("Expecting exception: RuntimeException"); // } catch(RuntimeException e) { // // // // Incorrect number of arguments: unknownFunction28()() // // // verifyException("org.apache.commons.jxpath.ri.compiler.CoreFunction", e); // } } @Test(timeout = 4000) public void test230() throws Throwable { CoreFunction coreFunction0 = new CoreFunction(27, (Expression[]) null); // Undeclared exception! // try { coreFunction0.computeValue((EvalContext) null); // fail("Expecting exception: RuntimeException"); // } catch(RuntimeException e) { // // // // Incorrect number of arguments: round() // // // verifyException("org.apache.commons.jxpath.ri.compiler.CoreFunction", e); // } } @Test(timeout = 4000) public void test231() throws Throwable { Expression[] expressionArray0 = new Expression[9]; CoreFunction coreFunction0 = new CoreFunction(26, expressionArray0); // Undeclared exception! // try { coreFunction0.computeValue((EvalContext) null); // fail("Expecting exception: RuntimeException"); // } catch(RuntimeException e) { // // // // Incorrect number of arguments: ceiling(null, null, null, null, null, null, null, null, null) // // // verifyException("org.apache.commons.jxpath.ri.compiler.CoreFunction", e); // } } @Test(timeout = 4000) public void test232() throws Throwable { CoreFunction coreFunction0 = new CoreFunction(25, (Expression[]) null); ProcessingInstructionTest processingInstructionTest0 = new ProcessingInstructionTest("E>1b1"); ChildContext childContext0 = new ChildContext((EvalContext) null, processingInstructionTest0, false, false); PrecedingOrFollowingContext precedingOrFollowingContext0 = new PrecedingOrFollowingContext(childContext0, processingInstructionTest0, false); // Undeclared exception! // try { coreFunction0.computeValue(precedingOrFollowingContext0); // fail("Expecting exception: RuntimeException"); // } catch(RuntimeException e) { // // // // Incorrect number of arguments: floor() // // // verifyException("org.apache.commons.jxpath.ri.compiler.CoreFunction", e); // } } @Test(timeout = 4000) public void test233() throws Throwable { Expression[] expressionArray0 = new Expression[5]; CoreFunction coreFunction0 = new CoreFunction(24, expressionArray0); String string0 = coreFunction0.getFunctionName(); assertEquals("sum", string0); } @Test(timeout = 4000) public void test234() throws Throwable { Expression[] expressionArray0 = new Expression[26]; CoreFunction coreFunction0 = new CoreFunction(23, expressionArray0); JXPathContextReferenceImpl jXPathContextReferenceImpl0 = (JXPathContextReferenceImpl)JXPathContext.newContext((Object) expressionArray0[6]); InitialContext initialContext0 = (InitialContext)jXPathContextReferenceImpl0.getAbsoluteRootContext(); // Undeclared exception! // try { coreFunction0.computeValue(initialContext0); // fail("Expecting exception: RuntimeException"); // } catch(RuntimeException e) { // // // // Incorrect number of arguments: number(null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null) // // // verifyException("org.apache.commons.jxpath.ri.compiler.CoreFunction", e); // } } @Test(timeout = 4000) public void test235() throws Throwable { Expression[] expressionArray0 = new Expression[1]; CoreFunction coreFunction0 = new CoreFunction(20, expressionArray0); // Undeclared exception! // try { coreFunction0.computeValue((EvalContext) null); // fail("Expecting exception: RuntimeException"); // } catch(RuntimeException e) { // // // // Incorrect number of arguments: true(null) // // // verifyException("org.apache.commons.jxpath.ri.compiler.CoreFunction", e); // } } @Test(timeout = 4000) public void test236() throws Throwable { CoreFunction coreFunction0 = new CoreFunction(19, (Expression[]) null); // Undeclared exception! // try { coreFunction0.computeValue((EvalContext) null); // fail("Expecting exception: RuntimeException"); // } catch(RuntimeException e) { // // // // Incorrect number of arguments: not() // // // verifyException("org.apache.commons.jxpath.ri.compiler.CoreFunction", e); // } } @Test(timeout = 4000) public void test237() throws Throwable { Expression[] expressionArray0 = new Expression[0]; CoreFunction coreFunction0 = new CoreFunction(18, expressionArray0); ChildContext childContext0 = new ChildContext((EvalContext) null, (NodeTest) null, true, true); // Undeclared exception! // try { coreFunction0.computeValue(childContext0); // fail("Expecting exception: RuntimeException"); // } catch(RuntimeException e) { // // // // Incorrect number of arguments: boolean() // // // verifyException("org.apache.commons.jxpath.ri.compiler.CoreFunction", e); // } } @Test(timeout = 4000) public void test238() throws Throwable { Expression[] expressionArray0 = new Expression[0]; CoreFunction coreFunction0 = new CoreFunction(17, expressionArray0); // Undeclared exception! // try { coreFunction0.computeValue((EvalContext) null); // fail("Expecting exception: RuntimeException"); // } catch(RuntimeException e) { // // // // Incorrect number of arguments: translate() // // // verifyException("org.apache.commons.jxpath.ri.compiler.CoreFunction", e); // } } @Test(timeout = 4000) public void test239() throws Throwable { CoreFunction coreFunction0 = new CoreFunction(16, (Expression[]) null); // Undeclared exception! // try { coreFunction0.computeValue((EvalContext) null); // fail("Expecting exception: RuntimeException"); // } catch(RuntimeException e) { // // // // Incorrect number of arguments: normalize-space() // // // verifyException("org.apache.commons.jxpath.ri.compiler.CoreFunction", e); // } } @Test(timeout = 4000) public void test240() throws Throwable { Expression[] expressionArray0 = new Expression[3]; QName qName0 = new QName("", ""); NodeNameTest nodeNameTest0 = new NodeNameTest(qName0, (String) null); CoreFunction coreFunction0 = new CoreFunction(15, expressionArray0); ChildContext childContext0 = new ChildContext((EvalContext) null, nodeNameTest0, true, false); // Undeclared exception! // try { coreFunction0.computeValue(childContext0); // fail("Expecting exception: RuntimeException"); // } catch(RuntimeException e) { // // // // Incorrect number of arguments: string-length(null, null, null) // // // verifyException("org.apache.commons.jxpath.ri.compiler.CoreFunction", e); // } } @Test(timeout = 4000) public void test241() throws Throwable { CoreFunction coreFunction0 = new CoreFunction(14, (Expression[]) null); // Undeclared exception! // try { coreFunction0.computeValue((EvalContext) null); // fail("Expecting exception: RuntimeException"); // } catch(RuntimeException e) { // // // // Incorrect number of arguments: substring() // // // verifyException("org.apache.commons.jxpath.ri.compiler.CoreFunction", e); // } } @Test(timeout = 4000) public void test242() throws Throwable { CoreFunction coreFunction0 = new CoreFunction(13, (Expression[]) null); BasicNodeSet basicNodeSet0 = new BasicNodeSet(); NodeSetContext nodeSetContext0 = new NodeSetContext((EvalContext) null, basicNodeSet0); // Undeclared exception! // try { coreFunction0.functionNot(nodeSetContext0); // fail("Expecting exception: RuntimeException"); // } catch(RuntimeException e) { // // // // Incorrect number of arguments: substring-after() // // // verifyException("org.apache.commons.jxpath.ri.compiler.CoreFunction", e); // } } @Test(timeout = 4000) public void test243() throws Throwable { Expression[] expressionArray0 = new Expression[1]; CoreFunction coreFunction0 = new CoreFunction(12, expressionArray0); // Undeclared exception! // try { coreFunction0.functionContains((EvalContext) null); // fail("Expecting exception: RuntimeException"); // } catch(RuntimeException e) { // // // // Incorrect number of arguments: substring-before(null) // // // verifyException("org.apache.commons.jxpath.ri.compiler.CoreFunction", e); // } } @Test(timeout = 4000) public void test244() throws Throwable { CoreFunction coreFunction0 = new CoreFunction(11, (Expression[]) null); EvalContext[] evalContextArray0 = new EvalContext[4]; // Undeclared exception! // try { coreFunction0.computeValue(evalContextArray0[0]); // fail("Expecting exception: RuntimeException"); // } catch(RuntimeException e) { // // // // Incorrect number of arguments: contains() // // // verifyException("org.apache.commons.jxpath.ri.compiler.CoreFunction", e); // } } @Test(timeout = 4000) public void test245() throws Throwable { Expression[] expressionArray0 = new Expression[5]; CoreFunction coreFunction0 = new CoreFunction(10, expressionArray0); // Undeclared exception! // try { coreFunction0.computeValue((EvalContext) null); // fail("Expecting exception: RuntimeException"); // } catch(RuntimeException e) { // // // // Incorrect number of arguments: starts-with(null, null, null, null, null) // // // verifyException("org.apache.commons.jxpath.ri.compiler.CoreFunction", e); // } } @Test(timeout = 4000) public void test246() throws Throwable { Expression[] expressionArray0 = new Expression[7]; CoreFunction coreFunction0 = new CoreFunction(9, expressionArray0); // Undeclared exception! // try { coreFunction0.functionStartsWith((EvalContext) null); // fail("Expecting exception: RuntimeException"); // } catch(RuntimeException e) { // // // // Incorrect number of arguments: concat(null, null, null, null, null, null, null) // // // verifyException("org.apache.commons.jxpath.ri.compiler.CoreFunction", e); // } } @Test(timeout = 4000) public void test247() throws Throwable { CoreFunction coreFunction0 = new CoreFunction(8, (Expression[]) null); JXPathContextReferenceImpl jXPathContextReferenceImpl0 = (JXPathContextReferenceImpl)JXPathContext.newContext((Object) coreFunction0); QName qName0 = new QName("", ""); BasicVariables basicVariables0 = new BasicVariables(); VariablePointer variablePointer0 = new VariablePointer(basicVariables0, qName0); RootContext rootContext0 = new RootContext(jXPathContextReferenceImpl0, variablePointer0); InitialContext initialContext0 = (InitialContext)rootContext0.getAbsoluteRootContext(); String string0 = (String)coreFunction0.compute(initialContext0); assertNotNull(string0); assertEquals("string()", string0); } @Test(timeout = 4000) public void test248() throws Throwable { Expression[] expressionArray0 = new Expression[2]; CoreFunction coreFunction0 = new CoreFunction(7, expressionArray0); ProcessingInstructionTest processingInstructionTest0 = new ProcessingInstructionTest("NaN;a~w|\u0006l"); DescendantContext descendantContext0 = new DescendantContext((EvalContext) null, false, processingInstructionTest0); // Undeclared exception! // try { coreFunction0.computeValue(descendantContext0); // fail("Expecting exception: RuntimeException"); // } catch(RuntimeException e) { // // // // Incorrect number of arguments: name(null, null) // // // verifyException("org.apache.commons.jxpath.ri.compiler.CoreFunction", e); // } } @Test(timeout = 4000) public void test249() throws Throwable { Expression[] expressionArray0 = new Expression[2]; CoreFunction coreFunction0 = new CoreFunction(6, expressionArray0); // Undeclared exception! // try { coreFunction0.functionLast((EvalContext) null); // fail("Expecting exception: RuntimeException"); // } catch(RuntimeException e) { // // // // Incorrect number of arguments: namespace-uri(null, null) // // // verifyException("org.apache.commons.jxpath.ri.compiler.CoreFunction", e); // } } @Test(timeout = 4000) public void test250() throws Throwable { CoreFunction coreFunction0 = new CoreFunction(5, (Expression[]) null); // Undeclared exception! // try { coreFunction0.functionSum((EvalContext) null); // fail("Expecting exception: RuntimeException"); // } catch(RuntimeException e) { // // // // Incorrect number of arguments: local-name() // // // verifyException("org.apache.commons.jxpath.ri.compiler.CoreFunction", e); // } } @Test(timeout = 4000) public void test251() throws Throwable { Expression[] expressionArray0 = new Expression[0]; CoreFunction coreFunction0 = new CoreFunction(4, expressionArray0); // Undeclared exception! // try { coreFunction0.computeValue((EvalContext) null); // fail("Expecting exception: RuntimeException"); // } catch(RuntimeException e) { // // // // Incorrect number of arguments: id() // // // verifyException("org.apache.commons.jxpath.ri.compiler.CoreFunction", e); // } } @Test(timeout = 4000) public void test252() throws Throwable { Expression[] expressionArray0 = new Expression[4]; CoreFunction coreFunction0 = new CoreFunction(3, expressionArray0); // Undeclared exception! // try { coreFunction0.computeValue((EvalContext) null); // fail("Expecting exception: RuntimeException"); // } catch(RuntimeException e) { // // // // Incorrect number of arguments: count(null, null, null, null) // // // verifyException("org.apache.commons.jxpath.ri.compiler.CoreFunction", e); // } } @Test(timeout = 4000) public void test253() throws Throwable { Expression[] expressionArray0 = new Expression[4]; CoreFunction coreFunction0 = new CoreFunction(1, expressionArray0); // Undeclared exception! // try { coreFunction0.computeValue((EvalContext) null); // fail("Expecting exception: RuntimeException"); // } catch(RuntimeException e) { // // // // Incorrect number of arguments: last(null, null, null, null) // // // verifyException("org.apache.commons.jxpath.ri.compiler.CoreFunction", e); // } } @Test(timeout = 4000) public void test254() throws Throwable { Expression[] expressionArray0 = new Expression[1]; CoreFunction coreFunction0 = new CoreFunction((-12), expressionArray0); // Undeclared exception! // try { coreFunction0.functionTrue((EvalContext) null); // fail("Expecting exception: RuntimeException"); // } catch(RuntimeException e) { // // // // Incorrect number of arguments: unknownFunction-12()(null) // // // verifyException("org.apache.commons.jxpath.ri.compiler.CoreFunction", e); // } } @Test(timeout = 4000) public void test255() throws Throwable { Expression[] expressionArray0 = new Expression[2]; Constant constant0 = new Constant("`l}w{rl"); expressionArray0[0] = (Expression) constant0; QName qName0 = new QName("`l}w{rl", "`l}w{rl"); VariablePointer variablePointer0 = new VariablePointer(qName0); JXPathContextReferenceImpl jXPathContextReferenceImpl0 = (JXPathContextReferenceImpl)JXPathContext.newContext((Object) variablePointer0); RootContext rootContext0 = new RootContext(jXPathContextReferenceImpl0, variablePointer0); CoreFunction coreFunction0 = new CoreFunction(30, expressionArray0); // Undeclared exception! // try { coreFunction0.functionKey(rootContext0); // fail("Expecting exception: NullPointerException"); // } catch(NullPointerException e) { // // // // no message in exception (getMessage() returned null) // // // verifyException("org.apache.commons.jxpath.ri.compiler.CoreFunction", e); // } } @Test(timeout = 4000) public void test256() throws Throwable { Expression[] expressionArray0 = new Expression[6]; CoreFunction coreFunction0 = new CoreFunction((-670), expressionArray0); coreFunction0.getArg3(); assertEquals((-670), coreFunction0.getFunctionCode()); } @Test(timeout = 4000) public void test257() throws Throwable { Expression[] expressionArray0 = new Expression[1]; CoreFunction coreFunction0 = new CoreFunction(2, expressionArray0); QName qName0 = new QName((String) null, (String) null); NodeNameTest nodeNameTest0 = new NodeNameTest(qName0); DescendantContext descendantContext0 = new DescendantContext((EvalContext) null, true, nodeNameTest0); // Undeclared exception! // try { coreFunction0.computeValue(descendantContext0); // fail("Expecting exception: RuntimeException"); // } catch(RuntimeException e) { // // // // Incorrect number of arguments: position(null) // // // verifyException("org.apache.commons.jxpath.ri.compiler.CoreFunction", e); // } } @Test(timeout = 4000) public void test258() throws Throwable { Expression[] expressionArray0 = new Expression[1]; CoreFunction coreFunction0 = new CoreFunction(21, expressionArray0); // Undeclared exception! // try { coreFunction0.computeValue((EvalContext) null); // fail("Expecting exception: RuntimeException"); // } catch(RuntimeException e) { // // // // Incorrect number of arguments: false(null) // // // verifyException("org.apache.commons.jxpath.ri.compiler.CoreFunction", e); // } } @Test(timeout = 4000) public void test259() throws Throwable { CoreFunction coreFunction0 = new CoreFunction(28, (Expression[]) null); assertEquals(0, coreFunction0.getArgumentCount()); coreFunction0.computeValue((EvalContext) null); assertEquals(28, coreFunction0.getFunctionCode()); } @Test(timeout = 4000) public void test260() throws Throwable { Expression[] expressionArray0 = new Expression[3]; Step[] stepArray0 = new Step[6]; CoreFunction coreFunction0 = new CoreFunction(414, expressionArray0); JXPathContextReferenceImpl jXPathContextReferenceImpl0 = (JXPathContextReferenceImpl)JXPathContext.newContext((Object) stepArray0[1]); QName qName0 = new QName("0f=", "ceiling"); Locale locale0 = Locale.SIMPLIFIED_CHINESE; BeanPointer beanPointer0 = (BeanPointer)NodePointer.newNodePointer(qName0, qName0, locale0); RootContext rootContext0 = new RootContext(jXPathContextReferenceImpl0, beanPointer0); InitialContext initialContext0 = (InitialContext)rootContext0.getAbsoluteRootContext(); // Undeclared exception! // try { coreFunction0.functionRound(initialContext0); // fail("Expecting exception: RuntimeException"); // } catch(RuntimeException e) { // // // // Incorrect number of arguments: unknownFunction414()(null, null, null) // // // verifyException("org.apache.commons.jxpath.ri.compiler.CoreFunction", e); // } } @Test(timeout = 4000) public void test261() throws Throwable { Expression[] expressionArray0 = new Expression[1]; CoreFunction coreFunction0 = new CoreFunction(79, expressionArray0); QName qName0 = new QName("`l}"); NodeNameTest nodeNameTest0 = new NodeNameTest(qName0, "`l}"); AttributeContext attributeContext0 = new AttributeContext((EvalContext) null, nodeNameTest0); // Undeclared exception! // try { coreFunction0.functionFloor(attributeContext0); // fail("Expecting exception: NullPointerException"); // } catch(NullPointerException e) { // // // // no message in exception (getMessage() returned null) // // // verifyException("org.apache.commons.jxpath.ri.compiler.CoreFunction", e); // } } @Test(timeout = 4000) public void test262() throws Throwable { Expression[] expressionArray0 = new Expression[2]; CoreFunction coreFunction0 = new CoreFunction(32, expressionArray0); // Undeclared exception! // try { coreFunction0.functionID((EvalContext) null); // fail("Expecting exception: RuntimeException"); // } catch(RuntimeException e) { // // // // Incorrect number of arguments: unknownFunction32()(null, null) // // // verifyException("org.apache.commons.jxpath.ri.compiler.CoreFunction", e); // } } @Test(timeout = 4000) public void test263() throws Throwable { CoreFunction coreFunction0 = new CoreFunction(3, (Expression[]) null); int int0 = coreFunction0.getFunctionCode(); assertEquals(3, int0); } }
[ "pouria.derakhshanfar@gmail.com" ]
pouria.derakhshanfar@gmail.com
c1304ef036f0918242b4b7d147e935d444516025
c8f07f82987e12e7f9be52df6c02af7c8901c2fa
/Leetcode/Java/102. 二叉树的层序遍历.java
e882fba3e2a9553eaa8ca02fd2a40d9ee8b6540f
[]
no_license
hxlnwpu/OJ
82a805d63263aa4cec68a8f7abca186c1b252efa
5d21c4010f61c849425af2a836c20ce2f8269b1c
refs/heads/master
2021-06-17T11:57:54.716620
2021-06-16T11:01:40
2021-06-16T11:01:40
158,319,924
0
0
null
null
null
null
UTF-8
Java
false
false
666
java
class Solution { public List<List<Integer>> levelOrder(TreeNode root) { List<List<Integer>> res = new ArrayList<>(); Queue<TreeNode> queue = new LinkedList<>(); if(root!=null) queue.add(root); while(!queue.isEmpty()) { List<Integer> tmp = new ArrayList<>(); int n = queue.size(); for(int i =0;i<n;i++) { TreeNode node = queue.poll(); tmp.add(node.val); if(node.left!=null) queue.offer(node.left); if(node.right!=null) queue.offer(node.right); } res.add(tmp); } return res; } }
[ "yishengtuwei@foxmail.com" ]
yishengtuwei@foxmail.com
e241fc354a85cab46522951045536af1d988ea05
632a496e325efec11ea14e2c5907da63c2b94313
/webstock/WebStockGWT/src/py/com/pg/webstock/gwt/client/service/CompraService.java
dda82d6939d01953c8830ef6be837d5ee9d3ff8b
[]
no_license
aVolpe/programacion-web-8vo
f9b7fa27ff3c32de7a3403d4575c30b6913e6a30
e427e8ac3eaaa81cc7eb199986aa93d0d2ba7b53
refs/heads/master
2020-12-30T11:14:50.021804
2015-03-13T19:54:25
2015-03-13T19:54:25
32,093,872
0
0
null
null
null
null
UTF-8
Java
false
false
1,078
java
/******************************************************************************* * Copyright 2011 Google Inc. All Rights Reserved. * * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * 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 py.com.pg.webstock.gwt.client.service; import py.com.pg.webstock.entities.Compra; import com.google.gwt.user.client.rpc.RemoteServiceRelativePath; @RemoteServiceRelativePath("CompraService") public interface CompraService extends BaseDAOService<Compra> { }
[ "arturovolpe@gmail.com" ]
arturovolpe@gmail.com
90e8a8cbdff5a683bdea0d3fce71d559ee051481
962feb8d21d3fc01aa53935696343b4d93c4e558
/clever-shop-pay-plugin/clever-shop-yinlian-plugin/src/main/java/com/clever/sdk/SDKConstants.java
4052be48a2a58bf2b5e29da20fb2c0324915bc3e
[]
no_license
iAmClever/clever-shop-parent
83daa3df71b68ce2ee251069813e23c792913bd5
67c7db46d90eb7bde2692f0f4e01048dcc27542c
refs/heads/master
2022-12-10T19:26:06.685952
2019-10-07T04:10:01
2019-10-07T04:10:01
202,891,041
0
0
null
2022-06-17T02:27:43
2019-08-17T14:30:12
Java
UTF-8
Java
false
false
14,810
java
/** * * Licensed Property to China UnionPay Co., Ltd. * * (C) Copyright of China UnionPay Co., Ltd. 2010 * All Rights Reserved. * * * Modification History: * ============================================================================= * Author Date Description * ------------ ---------- --------------------------------------------------- * xshu 2014-05-28 MPI插件包常量定义 * ============================================================================= */ package com.clever.sdk; /** * * @ClassName SDKConstants * @Description acpsdk常量类 * @date 2016-7-22 下午4:05:54 * 声明:以下代码只是为了方便接入方测试而提供的样例代码,商户可以根据自己需要,按照技术文档编写。该代码仅供参考,不提供编码,性能,规范性等方面的保障 */ public class SDKConstants { public final static String COLUMN_DEFAULT = "-"; public final static String KEY_DELIMITER = "#"; /** memeber variable: blank. */ public static final String BLANK = ""; /** member variabel: space. */ public static final String SPACE = " "; /** memeber variable: unline. */ public static final String UNLINE = "_"; /** memeber varibale: star. */ public static final String STAR = "*"; /** memeber variable: line. */ public static final String LINE = "-"; /** memeber variable: add. */ public static final String ADD = "+"; /** memeber variable: colon. */ public final static String COLON = "|"; /** memeber variable: point. */ public final static String POINT = "."; /** memeber variable: comma. */ public final static String COMMA = ","; /** memeber variable: slash. */ public final static String SLASH = "/"; /** memeber variable: div. */ public final static String DIV = "/"; /** memeber variable: left . */ public final static String LB = "("; /** memeber variable: right. */ public final static String RB = ")"; /** memeber variable: rmb. */ public final static String CUR_RMB = "RMB"; /** memeber variable: .page size */ public static final int PAGE_SIZE = 10; /** memeber variable: String ONE. */ public static final String ONE = "1"; /** memeber variable: String ZERO. */ public static final String ZERO = "0"; /** memeber variable: number six. */ public static final int NUM_SIX = 6; /** memeber variable: equal mark. */ public static final String EQUAL = "="; /** memeber variable: operation ne. */ public static final String NE = "!="; /** memeber variable: operation le. */ public static final String LE = "<="; /** memeber variable: operation ge. */ public static final String GE = ">="; /** memeber variable: operation lt. */ public static final String LT = "<"; /** memeber variable: operation gt. */ public static final String GT = ">"; /** memeber variable: list separator. */ public static final String SEP = "./"; /** memeber variable: Y. */ public static final String Y = "Y"; /** memeber variable: AMPERSAND. */ public static final String AMPERSAND = "&"; /** memeber variable: SQL_LIKE_TAG. */ public static final String SQL_LIKE_TAG = "%"; /** memeber variable: @. */ public static final String MAIL = "@"; /** memeber variable: number zero. */ public static final int NZERO = 0; public static final String LEFT_BRACE = "{"; public static final String RIGHT_BRACE = "}"; /** memeber variable: string true. */ public static final String TRUE_STRING = "true"; /** memeber variable: string false. */ public static final String FALSE_STRING = "false"; /** memeber variable: forward success. */ public static final String SUCCESS = "success"; /** memeber variable: forward fail. */ public static final String FAIL = "fail"; /** memeber variable: global forward success. */ public static final String GLOBAL_SUCCESS = "$success"; /** memeber variable: global forward fail. */ public static final String GLOBAL_FAIL = "$fail"; public static final String UTF_8_ENCODING = "UTF-8"; public static final String GBK_ENCODING = "GBK"; public static final String CONTENT_TYPE = "Content-type"; public static final String APP_XML_TYPE = "application/xml;charset=utf-8"; public static final String APP_FORM_TYPE = "application/x-www-form-urlencoded;charset="; public static final String VERSION_1_0_0 = "1.0.0"; public static final String VERSION_5_0_0 = "5.0.0"; public static final String VERSION_5_0_1 = "5.0.1"; public static final String VERSION_5_1_0 = "5.1.0"; public static final String SIGNMETHOD_RSA = "01"; public static final String SIGNMETHOD_SHA256 = "11"; public static final String SIGNMETHOD_SM3 = "12"; public static final String UNIONPAY_CNNAME = "中国银联股份有限公司"; public static final String CERTTYPE_01 = "01";// 敏感信息加密公钥 public static final String CERTTYPE_02 = "02";// 磁道加密公钥 /******************************************** 5.0报文接口定义 ********************************************/ /** 版本号. */ public static final String param_version = "version"; /** 证书ID. */ public static final String param_certId = "certId"; /** 签名. */ public static final String param_signature = "signature"; /** 签名方法. */ public static final String param_signMethod = "signMethod"; /** 编码方式. */ public static final String param_encoding = "encoding"; /** 交易类型. */ public static final String param_txnType = "txnType"; /** 交易子类. */ public static final String param_txnSubType = "txnSubType"; /** 业务类型. */ public static final String param_bizType = "bizType"; /** 前台通知地址 . */ public static final String param_frontUrl = "frontUrl"; /** 后台通知地址. */ public static final String param_backUrl = "backUrl"; /** 接入类型. */ public static final String param_accessType = "accessType"; /** 收单机构代码. */ public static final String param_acqInsCode = "acqInsCode"; /** 商户类别. */ public static final String param_merCatCode = "merCatCode"; /** 商户类型. */ public static final String param_merType = "merType"; /** 商户代码. */ public static final String param_merId = "merId"; /** 商户名称. */ public static final String param_merName = "merName"; /** 商户简称. */ public static final String param_merAbbr = "merAbbr"; /** 二级商户代码. */ public static final String param_subMerId = "subMerId"; /** 二级商户名称. */ public static final String param_subMerName = "subMerName"; /** 二级商户简称. */ public static final String param_subMerAbbr = "subMerAbbr"; /** Cupsecure 商户代码. */ public static final String param_csMerId = "csMerId"; /** 商户订单号. */ public static final String param_orderId = "orderId"; /** 交易时间. */ public static final String param_txnTime = "txnTime"; /** 发送时间. */ public static final String param_txnSendTime = "txnSendTime"; /** 订单超时时间间隔. */ public static final String param_orderTimeoutInterval = "orderTimeoutInterval"; /** 支付超时时间. */ public static final String param_payTimeoutTime = "payTimeoutTime"; /** 默认支付方式. */ public static final String param_defaultPayType = "defaultPayType"; /** 支持支付方式. */ public static final String param_supPayType = "supPayType"; /** 支付方式. */ public static final String param_payType = "payType"; /** 自定义支付方式. */ public static final String param_customPayType = "customPayType"; /** 物流标识. */ public static final String param_shippingFlag = "shippingFlag"; /** 收货地址-国家. */ public static final String param_shippingCountryCode = "shippingCountryCode"; /** 收货地址-省. */ public static final String param_shippingProvinceCode = "shippingProvinceCode"; /** 收货地址-市. */ public static final String param_shippingCityCode = "shippingCityCode"; /** 收货地址-地区. */ public static final String param_shippingDistrictCode = "shippingDistrictCode"; /** 收货地址-详细. */ public static final String param_shippingStreet = "shippingStreet"; /** 商品总类. */ public static final String param_commodityCategory = "commodityCategory"; /** 商品名称. */ public static final String param_commodityName = "commodityName"; /** 商品URL. */ public static final String param_commodityUrl = "commodityUrl"; /** 商品单价. */ public static final String param_commodityUnitPrice = "commodityUnitPrice"; /** 商品数量. */ public static final String param_commodityQty = "commodityQty"; /** 是否预授权. */ public static final String param_isPreAuth = "isPreAuth"; /** 币种. */ public static final String param_currencyCode = "currencyCode"; /** 账户类型. */ public static final String param_accType = "accType"; /** 账号. */ public static final String param_accNo = "accNo"; /** 支付卡类型. */ public static final String param_payCardType = "payCardType"; /** 发卡机构代码. */ public static final String param_issInsCode = "issInsCode"; /** 持卡人信息. */ public static final String param_customerInfo = "customerInfo"; /** 交易金额. */ public static final String param_txnAmt = "txnAmt"; /** 余额. */ public static final String param_balance = "balance"; /** 地区代码. */ public static final String param_districtCode = "districtCode"; /** 附加地区代码. */ public static final String param_additionalDistrictCode = "additionalDistrictCode"; /** 账单类型. */ public static final String param_billType = "billType"; /** 账单号码. */ public static final String param_billNo = "billNo"; /** 账单月份. */ public static final String param_billMonth = "billMonth"; /** 账单查询要素. */ public static final String param_billQueryInfo = "billQueryInfo"; /** 账单详情. */ public static final String param_billDetailInfo = "billDetailInfo"; /** 账单金额. */ public static final String param_billAmt = "billAmt"; /** 账单金额符号. */ public static final String param_billAmtSign = "billAmtSign"; /** 绑定标识号. */ public static final String param_bindId = "bindId"; /** 风险级别. */ public static final String param_riskLevel = "riskLevel"; /** 绑定信息条数. */ public static final String param_bindInfoQty = "bindInfoQty"; /** 绑定信息集. */ public static final String param_bindInfoList = "bindInfoList"; /** 批次号. */ public static final String param_batchNo = "batchNo"; /** 总笔数. */ public static final String param_totalQty = "totalQty"; /** 总金额. */ public static final String param_totalAmt = "totalAmt"; /** 文件类型. */ public static final String param_fileType = "fileType"; /** 文件名称. */ public static final String param_fileName = "fileName"; /** 批量文件内容. */ public static final String param_fileContent = "fileContent"; /** 商户摘要. */ public static final String param_merNote = "merNote"; /** 商户自定义域. */ // public static final String param_merReserved = "merReserved";//接口变更删除 /** 请求方保留域. */ public static final String param_reqReserved = "reqReserved";// 新增接口 /** 保留域. */ public static final String param_reserved = "reserved"; /** 终端号. */ public static final String param_termId = "termId"; /** 终端类型. */ public static final String param_termType = "termType"; /** 交互模式. */ public static final String param_interactMode = "interactMode"; /** 发卡机构识别模式. */ // public static final String param_recognitionMode = "recognitionMode"; public static final String param_issuerIdentifyMode = "issuerIdentifyMode";// 接口名称变更 /** 商户端用户号. */ public static final String param_merUserId = "merUserId"; /** 持卡人IP. */ public static final String param_customerIp = "customerIp"; /** 查询流水号. */ public static final String param_queryId = "queryId"; /** 原交易查询流水号. */ public static final String param_origQryId = "origQryId"; /** 系统跟踪号. */ public static final String param_traceNo = "traceNo"; /** 交易传输时间. */ public static final String param_traceTime = "traceTime"; /** 清算日期. */ public static final String param_settleDate = "settleDate"; /** 清算币种. */ public static final String param_settleCurrencyCode = "settleCurrencyCode"; /** 清算金额. */ public static final String param_settleAmt = "settleAmt"; /** 清算汇率. */ public static final String param_exchangeRate = "exchangeRate"; /** 兑换日期. */ public static final String param_exchangeDate = "exchangeDate"; /** 响应时间. */ public static final String param_respTime = "respTime"; /** 原交易应答码. */ public static final String param_origRespCode = "origRespCode"; /** 原交易应答信息. */ public static final String param_origRespMsg = "origRespMsg"; /** 应答码. */ public static final String param_respCode = "respCode"; /** 应答码信息. */ public static final String param_respMsg = "respMsg"; // 新增四个报文字段merUserRegDt merUserEmail checkFlag activateStatus /** 商户端用户注册时间. */ public static final String param_merUserRegDt = "merUserRegDt"; /** 商户端用户注册邮箱. */ public static final String param_merUserEmail = "merUserEmail"; /** 验证标识. */ public static final String param_checkFlag = "checkFlag"; /** 开通状态. */ public static final String param_activateStatus = "activateStatus"; /** 加密证书ID. */ public static final String param_encryptCertId = "encryptCertId"; /** 用户MAC、IMEI串号、SSID. */ public static final String param_userMac = "userMac"; /** 关联交易. */ // public static final String param_relationTxnType = "relationTxnType"; /** 短信类型 */ public static final String param_smsType = "smsType"; /** 风控信息域 */ public static final String param_riskCtrlInfo = "riskCtrlInfo"; /** IC卡交易信息域 */ public static final String param_ICTransData = "ICTransData"; /** VPC交易信息域 */ public static final String param_VPCTransData = "VPCTransData"; /** 安全类型 */ public static final String param_securityType = "securityType"; /** 银联订单号 */ public static final String param_tn = "tn"; /** 分期付款手续费率 */ public static final String param_instalRate = "instalRate"; /** 分期付款手续费率 */ public static final String param_mchntFeeSubsidy = "mchntFeeSubsidy"; /** 签名公钥证书 */ public static final String param_signPubKeyCert = "signPubKeyCert"; /** 加密公钥证书 */ public static final String param_encryptPubKeyCert = "encryptPubKeyCert"; /** 证书类型 */ public static final String param_certType = "certType"; }
[ "158091461@qq.com" ]
158091461@qq.com
bae760fd491810ed80dfd7d9da4b32ae10781a98
a9d149e838ab79c916ef60c6c600aa7b63d2f201
/app/src/androidTest/java/com/example/recyclerviewcodelab/ExampleInstrumentedTest.java
38aa13c2b9b088ab26ecde088848bcf8177b5379
[]
no_license
laurocervantes/RecyclerViewCodeLab
e0fc2b1d971991a58c8a51122b8a9c1b5648d9ff
e0c9d893727895d65cf5c958b9a094167ff0d1ce
refs/heads/master
2023-07-18T19:40:00.321998
2021-09-26T23:45:40
2021-09-26T23:45:40
410,688,314
0
0
null
null
null
null
UTF-8
Java
false
false
776
java
package com.example.recyclerviewcodelab; import android.content.Context; import androidx.test.platform.app.InstrumentationRegistry; import androidx.test.ext.junit.runners.AndroidJUnit4; import org.junit.Test; import org.junit.runner.RunWith; import static org.junit.Assert.*; /** * Instrumented test, which will execute on an Android device. * * @see <a href="http://d.android.com/tools/testing">Testing documentation</a> */ @RunWith(AndroidJUnit4.class) public class ExampleInstrumentedTest { @Test public void useAppContext() { // Context of the app under test. Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext(); assertEquals("com.example.recyclerviewcodelab", appContext.getPackageName()); } }
[ "laurocs@bu.edu" ]
laurocs@bu.edu
7cfc97bbedf74a0d9e7c0b8616852b373fb3bb23
ce8def77ec880fab51b38eb52ac0f146fd78f1bc
/ListaL0.1/Exercicio2/Exercicio2.java
25e6cbe2bbe12c0e682a3a817140da3c240ec37e
[]
no_license
alexzarp/JavaExercicios
96a69ff8ae004309d09cd153a1f9aa0d4e133590
d8a3f5cbc4630ae07eb9c5681d9dac1a9468cf84
refs/heads/master
2023-01-04T09:46:30.657935
2020-10-26T22:50:51
2020-10-26T22:50:51
null
0
0
null
null
null
null
UTF-8
Java
false
false
725
java
package Exercicio2; import java.util.Scanner; class Autor { private String nome; private int id; public String getNome () { return this.nome; } public int getId () { return this.id; } public String setNome (String nome) { return this.nome = nome; } public int setNome (int id) { return this.id = id; } } class Exercicio2 { public static void main(String arg[]) { Autor b = new Autor(); System.out.println("Nome: %c" + b.getNome()); System.out.println("Nome: %d" + b.getId()); System.out.println("Nome: %c" + b.getNome(a.nome)); System.out.println("Nome: %d" + b.getId(a.id)); } }
[ "alexszds@gmail.com" ]
alexszds@gmail.com
881d075973c16a3e7b52ffcc5940188715579cc5
de62f887b4ce4695e8cd1fc8b703e2d81d112a24
/BCM-RBAC/src/main/java/com/ascent/autobcm/model/EntitiesType.java
689547bfc11c4a903a267f9e4a372591fdceb5fe
[]
no_license
ankurumandal/ankurepoc
56fc838ca2a6f9d0c831e5ff818f30ba9d94effa
dd0952bd4d350b1edebf9698fd74df4a12b2f9de
refs/heads/master
2021-08-19T00:22:47.055655
2020-07-31T10:57:50
2020-07-31T10:57:50
209,503,300
1
0
null
null
null
null
UTF-8
Java
false
false
1,571
java
package com.ascent.autobcm.model; import java.time.LocalDateTime; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.Table; import org.hibernate.annotations.CreationTimestamp; import org.hibernate.annotations.UpdateTimestamp; @Entity @Table(name = "entity_type") public class EntitiesType { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private long id; @Column private String name; @Column private String description; @Column private String active; @CreationTimestamp private LocalDateTime createDateTime; @UpdateTimestamp private LocalDateTime updateDateTime; public long getId() { return id; } public void setId(long id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getDescription() { return description; } public void setDescription(String description) { this.description = description; } public String getActive() { return active; } public void setActive(String active) { this.active = active; } public LocalDateTime getCreateDateTime() { return createDateTime; } public void setCreateDateTime(LocalDateTime createDateTime) { this.createDateTime = createDateTime; } public LocalDateTime getUpdateDateTime() { return updateDateTime; } public void setUpdateDateTime(LocalDateTime updateDateTime) { this.updateDateTime = updateDateTime; } }
[ "ankurumandal@gmail.com" ]
ankurumandal@gmail.com
8a55294b4a3d3eec9a42406e0d9e451320624f7e
879b321678275a028857449da345cccd680d3c02
/Assignments/library/src/main/java/home/learning/library/model/CreateAuthorResponse.java
1e9a73348017b92bfda5d68394184c2e97a80340
[]
no_license
LadoBago/Coursera.WebDevSpring
3ef460b30c8fde5118d5aa7eb70eeb3f7a09b0de
b14a2465bffa3022e9ca8e57f9839b24bc433ae8
refs/heads/master
2023-03-11T19:50:41.366773
2021-02-19T12:31:55
2021-02-19T12:31:55
340,344,470
0
0
null
null
null
null
UTF-8
Java
false
false
189
java
package home.learning.library.model; import lombok.AllArgsConstructor; import lombok.Data; @Data @AllArgsConstructor public class CreateAuthorResponse { private AuthorModel author; }
[ "vl.bagoshvili@gmail.com" ]
vl.bagoshvili@gmail.com
fe2854bb5ba2b0caf1fa1c2558f44c195af20b60
1563acb596cee2ab6d2661688e8c2486d09348d7
/src/main/java/ltd/hanzo/mall/common/QueueEnum.java
070fbad61edff23a3198c8c90aae3fca4aac0b10
[]
no_license
yqzzyg/hanzomall
40efba90cb3741e4fbd2ee7bfa57f876f951523d
b127c49de896ebc63ef5129da4a6317778768b7d
refs/heads/master
2022-11-24T18:32:57.927776
2020-07-30T08:46:49
2020-07-30T08:46:49
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,737
java
package ltd.hanzo.mall.common; import com.rabbitmq.client.AMQP; import lombok.Getter; /** * @Author 皓宇QAQ * @email 2469653218@qq.com * @Date 2020/5/23 21:00 * @link https://github.com/Tianhaoy/hanzomall * @Description: 消息队列枚举配置 */ @Getter public enum QueueEnum { /** * 发送短信消息通知队列 */ QUEUE_SMS_SEND("mall.sms.direct", "mall.sms.send", "mall.sms.send"), /** * 发送邮件消息通知队列 */ QUEUE_EMAIL_SEND("mall.email.direct", "mall.email.send", "mall.email.send"), /** * 消息通知队列 * mall.order.direct(取消订单消息队列所绑定的交换机):绑定的队列为mall.order.cancel,一旦有消息以mall.order.cancel为路由键发过来,会发送到此队列。 */ QUEUE_ORDER_CANCEL("mall.order.direct", "mall.order.cancel", "mall.order.cancel"), /** * 消息通知ttl队列 * mall.order.direct.ttl(订单延迟消息队列所绑定的交换机):绑定的队列为mall.order.cancel.ttl,一旦有消息以mall.order.cancel.ttl为路由键发送过来,会转发到此队列,并在此队列保存一定时间,等到超时后会自动将消息发送到mall.order.cancel(取消订单消息消费队列)。 */ QUEUE_TTL_ORDER_CANCEL("mall.order.direct.ttl", "mall.order.cancel.ttl", "mall.order.cancel.ttl"); /** * 交换机名称 */ private String exchange; /** * 队列名称 */ private String name; /** * 路由键 */ private String routeKey; QueueEnum(String exchange, String name, String routeKey) { this.exchange = exchange; this.name = name; this.routeKey = routeKey; } }
[ "2469653218@qq.com" ]
2469653218@qq.com
5b1452fcf2b134c733c7939811dda1ae5421adb5
5e02eb6d54e244f519bd678c06a28fe9e0d68786
/src/dao/DAO.java
81cc1a3573ae501aa0821aa68025fbb1466959d3
[]
no_license
ArnabMallik/OnlineIDE
6073bfd82a61a51dec7b8f369160c3683c080a44
e02b09537cc6d8bda2d6cb9cfc2e01f0489925a1
refs/heads/master
2021-07-25T21:19:30.469292
2020-06-17T06:48:06
2020-06-17T06:48:06
190,347,447
2
0
null
null
null
null
UTF-8
Java
false
false
6,304
java
package dao; import java.io.File; import java.io.IOException; import java.io.InputStream; import java.sql.*; import javax.servlet.http.Part; import oracle.jdbc.OracleDriver; public class DAO { private Connection con; public void openConnection() { // TODO Auto-generated method stub try { Driver d=new OracleDriver(); DriverManager.registerDriver(d); String url="jdbc:oracle:thin:abhi/abhi123@//Abhishek-PC:1521/XE"; con=DriverManager.getConnection(url); } catch(SQLException e) { e.printStackTrace(); } } public User authenticate(String un, String pwd) throws SQLException { // TODO Auto-generated method stub String sql="select * from customer where username=? and password=?"; PreparedStatement ps=con.prepareStatement(sql); ps.setString(1, un); ps.setString(2,pwd); ResultSet rs=ps.executeQuery(); if(rs.next()) { User u=new User(); u.setFirstname(rs.getString("firstname")); u.setLastname(rs.getString("lastname")); u.setPassword(pwd); u.setUsername(un); return u; } return null; } public void closeConnection() throws SQLException { // TODO Auto-generated method stub con.close(); } public void create(User u) { // TODO Auto-generated method stub try { String sql="insert into customer(username,password,firstname,lastname) values (?,?,?,?)"; PreparedStatement ps=con.prepareStatement(sql); ps.setString(1,u.getUsername()); ps.setString(2,u.getPassword()); ps.setString(3,u.getFirstname()); ps.setString(4,u.getLastname()); ps.executeUpdate(); } catch(SQLException e) { e.printStackTrace(); } } public void file_add(String un,String fileName, String time,String date, String lang) { String sql1="select * from upload where filesaved=? and username=?"; String sql2="delete from upload where filesaved=? and username=?"; String sql3="insert into upload(username,filesaved,time,upload_date,source_language) values (?,?,?,?,?)"; PreparedStatement ps; try { ps = con.prepareStatement(sql1); ps.setString(1,fileName); ps.setString(2,un); ResultSet rs=ps.executeQuery(); if(rs.next()) { ps=con.prepareStatement(sql2); ps.setString(1,fileName); ps.setString(2,un); ps.executeUpdate(); } ps=con.prepareStatement(sql3); ps.setString(1,un); ps.setString(2, fileName); ps.setString(3, time); ps.setString(4, date); ps.setString(5,lang); ps.executeUpdate(); } catch (SQLException e) { // TODO Auto-generated catch block e.printStackTrace(); } } public ResultSet getfile(String username) { String sql="select filesaved,time,upload_date,source_language from upload where username=?"; ResultSet rs=null; try { PreparedStatement ps=con.prepareStatement(sql); ps.setString(1,username); rs=ps.executeQuery(); } catch(SQLException e) { e.printStackTrace(); } return rs; } public ResultSet getfilenames(String username,String lang) { String sql="select filesaved from upload where username=? and source_language=?"; ResultSet rs=null; try { PreparedStatement ps=con.prepareStatement(sql); ps.setString(1,username); ps.setString(2,lang); rs=ps.executeQuery(); } catch(SQLException e) { e.printStackTrace(); } return rs; } public void addfile(String filename,InputStream ios, File file) { // TODO Auto-generated method stub String sql="insert into filestore(filename,filetype) values(?,?)"; try { PreparedStatement ps=con.prepareStatement(sql); ps.setString(1,filename); ps.setBinaryStream(2,ios,(int)file.length()); ps.executeUpdate(); } catch (SQLException e) { // TODO Auto-generated catch block e.printStackTrace(); } } public void deRegister(String un, String pwd) { // TODO Auto-generated method stub String sql="delete from customer where username=? and password=?"; try { PreparedStatement ps=con.prepareStatement(sql); ps.setString(1,un); ps.setString(2,pwd); ps.executeUpdate(); } catch (SQLException e) { // TODO Auto-generated catch block e.printStackTrace(); } } public boolean check(String un, String pwd) { // TODO Auto-generated method stub String sql="select * from customer where username=? and password=?"; try { PreparedStatement ps=con.prepareStatement(sql); ps.setString(1,un); ps.setString(2,pwd); ResultSet rs=ps.executeQuery(); if(rs.next()) return true; } catch (SQLException e) { // TODO Auto-generated catch block e.printStackTrace(); } return false; } public void deleteFile(String username,String filename) { // TODO Auto-generated method stub String sql="delete from upload where username=? and filesaved=?"; PreparedStatement ps; try { ps = con.prepareStatement(sql); ps.setString(1,username); ps.setString(2,filename); ps.executeUpdate(); } catch (SQLException e) { // TODO Auto-generated catch block e.printStackTrace(); } } }
[ "noreply@github.com" ]
noreply@github.com
8c18d95e8106d72d5c746d5f7e4ea7c625b822d3
0a70057bed58f056c33a0335e52595ff42a2d195
/src/main/java/com/pro/soccer/com/config/DateTimeFormatConfiguration.java
c953f7c5f8a7c7b6470bb403be78d3d06df24e42
[]
no_license
Zahir-MENDACI/jhdemo
be49ea2a05f25754415e7c323fa3909c7d518765
6b1a44cbb3bdbadece225917260665a18f50dd83
refs/heads/master
2023-02-16T21:41:39.873426
2021-01-18T15:01:15
2021-01-18T15:01:15
325,361,389
0
0
null
null
null
null
UTF-8
Java
false
false
725
java
package com.pro.soccer.com.config; import org.springframework.context.annotation.Configuration; import org.springframework.format.FormatterRegistry; import org.springframework.format.datetime.standard.DateTimeFormatterRegistrar; import org.springframework.web.servlet.config.annotation.WebMvcConfigurer; /** * Configure the converters to use the ISO format for dates by default. */ @Configuration public class DateTimeFormatConfiguration implements WebMvcConfigurer { @Override public void addFormatters(FormatterRegistry registry) { DateTimeFormatterRegistrar registrar = new DateTimeFormatterRegistrar(); registrar.setUseIsoFormat(true); registrar.registerFormatters(registry); } }
[ "menzahir@gmail.com" ]
menzahir@gmail.com
b9e01ca0a26b9693b80a1768ee1e09d141187204
4d1a63ee1bf2d380d7de32d7c241b7aa440c4950
/app/src/main/java/Baseclass/NiceViewHolder.java
e145dd2d22fd2aa6c8d6d975aaf0b59f4b7238e6
[]
no_license
ZMIOT/Children2
6fd1685e629fb70c5106ec7c3d54a5eccae9e7c1
d98e6a249aa122252aeb1941138ab51696502b21
refs/heads/master
2020-03-23T15:44:54.641525
2018-07-21T01:17:28
2018-07-21T01:17:28
141,771,840
0
0
null
null
null
null
UTF-8
Java
false
false
352
java
package Baseclass; import android.view.View; import com.chad.library.adapter.base.BaseViewHolder; import com.lzy.ninegrid.NineGridView; public class NiceViewHolder extends BaseViewHolder { public NineGridView nineGrid; public NiceViewHolder(View view, NineGridView nineGrid) { super(view); this.nineGrid = nineGrid; } }
[ "2890340126@qq.com" ]
2890340126@qq.com
0d16a0696e47bffba305c10a00913c9955b1858d
13cbb329807224bd736ff0ac38fd731eb6739389
/javax/naming/directory/ModificationItem.java
bde8256ffc657f44141bc2f4863c94766f4de4ce
[]
no_license
ZhipingLi/rt-source
5e2537ed5f25d9ba9a0f8009ff8eeca33930564c
1a70a036a07b2c6b8a2aac6f71964192c89aae3c
refs/heads/master
2023-07-14T15:00:33.100256
2021-09-01T04:49:04
2021-09-01T04:49:04
401,933,858
0
0
null
null
null
null
UTF-8
Java
false
false
1,308
java
package javax.naming.directory; import java.io.Serializable; public class ModificationItem implements Serializable { private int mod_op; private Attribute attr; private static final long serialVersionUID = 7573258562534746850L; public ModificationItem(int paramInt, Attribute paramAttribute) { switch (paramInt) { case 1: case 2: case 3: if (paramAttribute == null) throw new IllegalArgumentException("Must specify non-null attribute for modification"); this.mod_op = paramInt; this.attr = paramAttribute; return; } throw new IllegalArgumentException("Invalid modification code " + paramInt); } public int getModificationOp() { return this.mod_op; } public Attribute getAttribute() { return this.attr; } public String toString() { switch (this.mod_op) { case 1: return "Add attribute: " + this.attr.toString(); case 2: return "Replace attribute: " + this.attr.toString(); case 3: return "Remove attribute: " + this.attr.toString(); } return ""; } } /* Location: D:\software\jd-gui\jd-gui-windows-1.6.3\rt.jar!\javax\naming\directory\ModificationItem.class * Java compiler version: 8 (52.0) * JD-Core Version: 1.0.7 */
[ "michael__lee@yeah.net" ]
michael__lee@yeah.net
541d1957a1f52f333e35b090ef084e8b5f00c8d9
d8082b18168f3d684bc987139801740b08f504d8
/src/main/java/com/soft/app/service/EmailService.java
568a78dbd90079441367e8680474d460ccfc983e
[]
no_license
thapapradeep/LanguageInstitute
7b42f9269db7e1d140bf4feee2f6c36e00af02d7
6109c848f7c7f0d22c5b59b4181db6423993259d
refs/heads/master
2020-03-25T07:50:21.498113
2018-12-21T15:54:29
2018-12-21T15:54:29
143,584,268
0
0
null
null
null
null
UTF-8
Java
false
false
1,037
java
package com.soft.app.service; import java.util.Locale; import javax.mail.internet.InternetAddress; import javax.mail.internet.MimeMessage; import javax.mail.internet.MimeMessage.RecipientType; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.MessageSource; import org.springframework.mail.javamail.JavaMailSender; import org.springframework.scheduling.annotation.Async; import org.springframework.stereotype.Service; @Service public class EmailService { @Autowired private JavaMailSender mailSender; @Autowired private MessageSource messageSource; @Async public void send(String subject,String content,String to)throws Exception { MimeMessage mimeMessage = mailSender.createMimeMessage(); mimeMessage.setFrom(new InternetAddress(messageSource.getMessage("from",null, Locale.ROOT))); mimeMessage.addRecipient(RecipientType.TO, new InternetAddress(to)); mimeMessage.setSubject(subject); mimeMessage.setText(content,"utf-8","html"); mailSender.send(mimeMessage); } }
[ "thapapradeep2210@gmail.com" ]
thapapradeep2210@gmail.com
5c50268c1ab43f5e9d1b516be69c9cdddb1fb556
51a5d29c822ddec5adc416a6ef8e4c0808b91aa3
/src/com/bigdropinc/selfieking/model/responce/ResponcePosts.java
1b4df95c3b177cbb863bfa1ce7386cd0078933e6
[]
no_license
juliakvashyna/selfie
6d3b47c2dc2f15a7879695254388dc1609004e71
2021bd6929e6334f4d5ea4e226ed0908f5c86b8c
refs/heads/master
2020-12-24T14:18:20.416833
2015-04-22T14:34:37
2015-04-22T14:34:37
26,904,652
0
0
null
null
null
null
UTF-8
Java
false
false
441
java
package com.bigdropinc.selfieking.model.responce; import java.util.List; import com.bigdropinc.selfieking.model.selfie.SelfieImage; /** * Class for correct prase json with jackson * * @author bigdrop * */ public class ResponcePosts { public int offset; public int limit; public int count; public int inContest; public int vote; public String order; public List<SelfieImage> list; }
[ "julia.kvashina@gmail.com" ]
julia.kvashina@gmail.com
65b649294ddb7087f084929b273a8694f33cf9ab
600df3590cce1fe49b9a96e9ca5b5242884a2a70
/chrome/android/java/src/org/chromium/chrome/browser/payments/ui/EditorLabelField.java
30f2a377ac6d3af616fcd9ba5a9b0bd88151beee
[ "BSD-3-Clause" ]
permissive
metux/chromium-suckless
efd087ba4f4070a6caac5bfbfb0f7a4e2f3c438a
72a05af97787001756bae2511b7985e61498c965
refs/heads/orig
2022-12-04T23:53:58.681218
2017-04-30T10:59:06
2017-04-30T23:35:58
89,884,931
5
3
BSD-3-Clause
2022-11-23T20:52:53
2017-05-01T00:09:08
null
UTF-8
Java
false
false
2,098
java
// Copyright 2016 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. package org.chromium.chrome.browser.payments.ui; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ImageView; import android.widget.TextView; import org.chromium.chrome.R; /** * Helper class for creating a view with three labels and an icon. * * +--------------+------------+ * | TOP LABEL | | * | MID LABEL | ICON | * | BOTTOM LABEL | | * +--------------+------------+ * * Used for showing the uneditable parts of server cards. For example: * * +--------------+------------+ * | Visa***1234 | | * | First Last | VISA | * | Exp: 12/2020 | | * +--------------+------------+ */ class EditorLabelField { private final View mLayout; /** * Builds a label view. * * @param context The application context to use when creating widgets. * @param root The object that provides a set of LayoutParams values for the view. * @param fieldModel The data model of the icon list. */ public EditorLabelField(Context context, ViewGroup root, EditorFieldModel fieldModel) { assert fieldModel.getInputTypeHint() == EditorFieldModel.INPUT_TYPE_HINT_LABEL; mLayout = LayoutInflater.from(context).inflate( R.layout.payment_request_editor_label, root, false); ((TextView) mLayout.findViewById(R.id.top_label)).setText(fieldModel.getLabel()); ((TextView) mLayout.findViewById(R.id.mid_label)).setText(fieldModel.getMidLabel()); ((TextView) mLayout.findViewById(R.id.bottom_label)).setText(fieldModel.getBottomLabel()); ((ImageView) mLayout.findViewById(R.id.icon)).setImageResource( fieldModel.getLabelIconResourceId()); } /** @return The View containing everything. */ public View getLayout() { return mLayout; } }
[ "enrico.weigelt@gr13.net" ]
enrico.weigelt@gr13.net
287384d506192366b364534c6ed81a9b768423ea
4c03e8b49c4955210802adc4a4969b045102effa
/src/org/slc/sli/sample/entities/InterchangeEducationOrganization.java
81a2c48fe81a88151ce608400f98274db207211a
[ "Apache-2.0", "LicenseRef-scancode-warranty-disclaimer", "LicenseRef-scancode-unknown-license-reference" ]
permissive
inbloom/csv2xml
51e0456b87619012524126081ff365c1cf80b1a4
f09b3f6da9afef61c807a2c4f42662d8c8163bf5
refs/heads/master
2021-05-25T10:41:00.971796
2014-05-27T18:08:17
2014-05-27T18:08:17
5,703,966
1
0
Apache-2.0
2020-10-13T06:50:56
2012-09-06T15:08:29
Java
UTF-8
Java
false
false
5,381
java
/* * Copyright 2012 Shared Learning Collaborative, LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ // // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 in JDK 6 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // Any modifications to this file will be lost upon recompilation of the source schema. // Generated on: 2012.04.20 at 03:09:04 PM EDT // package org.slc.sli.sample.entities; import java.util.ArrayList; import java.util.List; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlElements; import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for anonymous complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;choice maxOccurs="unbounded"> * &lt;element name="StateEducationAgency" type="{http://ed-fi.org/0100}StateEducationAgency"/> * &lt;element name="EducationServiceCenter" type="{http://ed-fi.org/0100}EducationServiceCenter"/> * &lt;element name="FeederSchoolAssociation" type="{http://ed-fi.org/0100}FeederSchoolAssociation"/> * &lt;element name="LocalEducationAgency" type="{http://ed-fi.org/0100}LocalEducationAgency"/> * &lt;element name="School" type="{http://ed-fi.org/0100}School"/> * &lt;element name="Location" type="{http://ed-fi.org/0100}Location"/> * &lt;element name="ClassPeriod" type="{http://ed-fi.org/0100}ClassPeriod"/> * &lt;element name="Course" type="{http://ed-fi.org/0100}Course"/> * &lt;element name="CompetencyLevelDescriptor" type="{http://ed-fi.org/0100}CompetencyLevelDescriptor"/> * &lt;element name="Program" type="{http://ed-fi.org/0100}Program"/> * &lt;/choice> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "stateEducationAgencyOrEducationServiceCenterOrFeederSchoolAssociation" }) @XmlRootElement(name = "InterchangeEducationOrganization") public class InterchangeEducationOrganization { @XmlElements({ @XmlElement(name = "School", type = School.class), @XmlElement(name = "CompetencyLevelDescriptor", type = CompetencyLevelDescriptor.class), @XmlElement(name = "EducationServiceCenter", type = EducationServiceCenter.class), @XmlElement(name = "LocalEducationAgency", type = LocalEducationAgency.class), @XmlElement(name = "FeederSchoolAssociation", type = FeederSchoolAssociation.class), @XmlElement(name = "Program", type = Program.class), @XmlElement(name = "Location", type = Location.class), @XmlElement(name = "ClassPeriod", type = ClassPeriod.class), @XmlElement(name = "Course", type = Course.class), @XmlElement(name = "StateEducationAgency", type = StateEducationAgency.class) }) protected List<Object> stateEducationAgencyOrEducationServiceCenterOrFeederSchoolAssociation; /** * Gets the value of the stateEducationAgencyOrEducationServiceCenterOrFeederSchoolAssociation property. * * <p> * This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a <CODE>set</CODE> method for the stateEducationAgencyOrEducationServiceCenterOrFeederSchoolAssociation property. * * <p> * For example, to add a new item, do as follows: * <pre> * getStateEducationAgencyOrEducationServiceCenterOrFeederSchoolAssociation().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link School } * {@link CompetencyLevelDescriptor } * {@link EducationServiceCenter } * {@link LocalEducationAgency } * {@link FeederSchoolAssociation } * {@link Program } * {@link Location } * {@link ClassPeriod } * {@link Course } * {@link StateEducationAgency } * * */ public List<Object> getStateEducationAgencyOrEducationServiceCenterOrFeederSchoolAssociation() { if (stateEducationAgencyOrEducationServiceCenterOrFeederSchoolAssociation == null) { stateEducationAgencyOrEducationServiceCenterOrFeederSchoolAssociation = new ArrayList<Object>(); } return this.stateEducationAgencyOrEducationServiceCenterOrFeederSchoolAssociation; } }
[ "jasonhoekstra@gmail.com" ]
jasonhoekstra@gmail.com
baba88d8b6a42799ebf4ab79a714010d9a7dd7c2
57d7dbad2cdb81097f4bf95f99931be23a9b74e2
/src/jdbc/data/view/NoticeView.java
bbfad570908a32de2b96e3af599da7a1cbfe2d06
[]
no_license
yongwoopark/newlecJSP20170116
0617c448cdf4202b4f43c941a88f979b3d876a1e
9778f5217035c74a199dbda4ed46e4b60ee7db6c
refs/heads/master
2021-01-22T18:54:16.548371
2017-03-16T00:51:20
2017-03-16T00:51:20
85,135,167
0
0
null
null
null
null
UTF-8
Java
false
false
453
java
package jdbc.data.view; import jdbc.data.entity.Notice; public class NoticeView extends Notice { String writerName; int commentCount; public String getWriterName() { return writerName; } public void setWriterName(String writerName) { this.writerName = writerName; } public int getCommentCount() { return commentCount; } public void setCommentCount(int commentCount) { this.commentCount = commentCount; } }
[ "newlec@DESKTOP-R498KEC" ]
newlec@DESKTOP-R498KEC
570849a9afccbda92824da93acb7ce2ea556b29f
4d6f449339b36b8d4c25d8772212bf6cd339f087
/netreflected/src/Core/System.Net.WebClient,Version=4.0.2.0,Culture=neutral,PublicKeyToken=cc7b13ffcd2ddd51/system/net/IUploadStringCompletedEventHandler.java
73283adbd4bc9dd6ce05918fce059c83bc04f257
[ "MIT" ]
permissive
lvyitian/JCOReflector
299a64550394db3e663567efc6e1996754f6946e
7e420dca504090b817c2fe208e4649804df1c3e1
refs/heads/master
2022-12-07T21:13:06.208025
2020-08-28T09:49:29
2020-08-28T09:49:29
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,262
java
/* * MIT License * * Copyright (c) 2020 MASES s.r.l. * * 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. */ /************************************************************************************** * <auto-generated> * This code was generated from a template using JCOReflector * * Manual changes to this file may cause unexpected behavior in your application. * Manual changes to this file will be overwritten if the code is regenerated. * </auto-generated> *************************************************************************************/ package system.net; import org.mases.jcobridge.*; import org.mases.jcobridge.netreflection.*; // Import section import system.net.UploadStringCompletedEventArgs; /** * The Java interface to be implemented to receive events from the CLR using {@link UploadStringCompletedEventHandler}. * <p> * * See: <a href="https://docs.microsoft.com/en-us/dotnet/api/System.Net.UploadStringCompletedEventHandler" target="_top">https://docs.microsoft.com/en-us/dotnet/api/System.Net.UploadStringCompletedEventHandler</a> */ public interface IUploadStringCompletedEventHandler { public void Invoke(NetObject sender, UploadStringCompletedEventArgs e); }
[ "mario.mastrodicasa@masesgroup.com" ]
mario.mastrodicasa@masesgroup.com
c6114d63879d684f9184a354b34acce93ca4e55e
95118232456f30e3848d6ea0d54fe56139867005
/app/src/main/java/com/iwan_b/chummersr5/data/StreetGear.java
2f3801928c65f4867bf6626ff5d05d4a9f550d6b
[]
no_license
ibodnarchuk/ChummerSR5
d53ca9bc849ba05a4e79e9e0ce6d810937a114f2
200462678bbf9b580332f41562852040988971db
refs/heads/master
2021-01-10T10:15:37.743326
2016-02-25T02:15:11
2016-02-25T02:15:11
43,784,361
1
0
null
null
null
null
UTF-8
Java
false
false
14,564
java
package com.iwan_b.chummersr5.data; import android.app.ActionBar; import android.text.Editable; import android.text.TextWatcher; import android.view.View; import android.widget.Button; import android.widget.EditText; import android.widget.LinearLayout; import android.widget.TableRow; import android.widget.TextView; import com.iwan_b.chummersr5.R; import com.iwan_b.chummersr5.utility.ChummerMethods; public class StreetGear extends GeneralInfo { private String type; private int avail = 0; private boolean is_avail_rating = false; private int avail_mult_by = 1; private int avail_add_by = 0; private String avail_type; private int cost = 0; private boolean is_cost_rating_mult = false; private int rating = 0; private int minRating = 0; private int maxRating = 0; public StreetGear() { } public StreetGear(StreetGear copy) { super(copy); this.type = copy.type; this.avail = copy.avail; this.is_avail_rating = copy.is_avail_rating; this.avail_mult_by = copy.avail_mult_by; this.avail_add_by = copy.avail_add_by; this.avail_type = copy.avail_type; this.cost = copy.cost; this.is_cost_rating_mult = copy.is_cost_rating_mult; this.rating = copy.rating; this.minRating = copy.minRating; this.maxRating = copy.maxRating; } public View displayView(View view) { super.displayView(view); final TextView typeTxtView = (TextView) view.findViewById(R.id.type_textview); final TextView availTitleTxtView = (TextView) view.findViewById(R.id.avail_title_textview); final TextView availTxtView = (TextView) view.findViewById(R.id.avail_textview); final TextView costTitleTxtView = (TextView) view.findViewById(R.id.cost_title_textview); final EditText costEditTxtView = (EditText) view.findViewById(R.id.cost_textview); if (typeTxtView != null) { typeTxtView.setText(type); } if (availTxtView != null) { // private boolean is_avail_rating = false; // private int avail_mult_by = 1; // private int avail_add_by = 0; availTxtView.setText(String.valueOf(avail) + avail_type); } if (costEditTxtView != null) { // private boolean is_cost_rating_mult = false; costEditTxtView.setText(String.valueOf(cost)); costEditTxtView.addTextChangedListener(new TextWatcher() { @Override public void beforeTextChanged(CharSequence s, int start, int count, int after) { } @Override public void onTextChanged(CharSequence s, int start, int before, int count) { } @Override public void afterTextChanged(Editable s) { String temp = s.toString(); if (temp != null && !temp.isEmpty()) { try { cost = Integer.valueOf(s.toString()); } catch (NumberFormatException e) { cost = Integer.MAX_VALUE; } } else { cost = 0; } } }); } if (is_avail_rating || maxRating > 0) { final LinearLayout layout = (LinearLayout) view.findViewById(R.id.rating_linearview); if (layout != null) { final TextView labelTxtView = ChummerMethods.genTxtView(view.getContext(), "Rating: "); final Button subButton = ChummerMethods.genButton(view.getContext(), "-"); final TextView ratingTxtView = ChummerMethods.genTxtView(view.getContext(), String.valueOf(rating)); final Button addButton = ChummerMethods.genButton(view.getContext(), "+"); TableRow.LayoutParams labelRatingLayoutParams = new TableRow.LayoutParams(ActionBar.LayoutParams.WRAP_CONTENT, ActionBar.LayoutParams.WRAP_CONTENT); labelRatingLayoutParams.setMargins(0, 0, 5, 0); labelTxtView.setLayoutParams(labelRatingLayoutParams); TableRow.LayoutParams ratingLayoutParams = new TableRow.LayoutParams(ActionBar.LayoutParams.WRAP_CONTENT, ActionBar.LayoutParams.WRAP_CONTENT); ratingLayoutParams.setMargins(20, 0, 20, 0); ratingTxtView.setLayoutParams(ratingLayoutParams); ratingTxtView.setGravity(1); ratingTxtView.setMinWidth(50); subButton.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { if (rating - 1 >= minRating) { rating--; } ratingTxtView.setText(String.valueOf(rating)); } }); addButton.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { if (rating + 1 <= maxRating) { rating++; } ratingTxtView.setText(String.valueOf(rating)); } }); if (rating > 1) { subButton.setEnabled(false); addButton.setEnabled(false); } layout.addView(labelTxtView); layout.addView(subButton); layout.addView(ratingTxtView); layout.addView(addButton); } } return view; } public boolean parseXML(final String switchId, final String data) { // Attempt to parse the parent first if (super.parseXML(switchId, data)) { return true; } switch (switchId.toLowerCase()) { case "type": this.setType(data); break; case "avail": if (!data.isEmpty()) { try { this.setAvail(Integer.valueOf(data)); } catch (NumberFormatException e) { // Log.i(ChummerConstants.TAG, "Number Format Exception at avail for: " + this.toString()); } } break; case "is_avail_rating": try { this.setIs_avail_rating(Boolean.valueOf(data)); } catch (NullPointerException e) { // Log.i(ChummerConstants.TAG, "Null Pointer Exception at is_avail_rating for: " + this.toString()); } break; case "avail_mult_by": try { this.setAvail_mult_by(Integer.valueOf(data)); } catch (NullPointerException e) { // Log.i(ChummerConstants.TAG, "Null Pointer Exception at avail_mult_by for: " + this.toString()); } catch (NumberFormatException e) { // Log.i(ChummerConstants.TAG, "Number Format Exception at avail_mult_by for: " + this.toString()); } break; case "avail_add_by": try { this.setAvail_add_by(Integer.valueOf(data)); } catch (NullPointerException e) { // Log.i(ChummerConstants.TAG, "Null Pointer Exception at avail_add_by for: " + this.toString()); } catch (NumberFormatException e) { // Log.i(ChummerConstants.TAG, "Number Format Exception at avail_add_by for: " + this.toString()); } break; case "avail_type": this.setAvail_type(data); break; case "is_cost_rating_mult": try { this.setIs_cost_rating_mult(Boolean.valueOf(data)); } catch (NullPointerException e) { // Log.i(ChummerConstants.TAG, "Null Pointer Exception at ap_divide_by for: " + this.toString()); } break; case "cost": try { this.setCost(Integer.valueOf(data)); } catch (NullPointerException e) { // Log.i(ChummerConstants.TAG, "Null Pointer Exception at cost for: " + this.toString()); } catch (NumberFormatException e) { // Log.i(ChummerConstants.TAG, "Number Format Exception at cost for: " + this.toString()); } break; case "rating": try { this.setRating(Integer.valueOf(data)); } catch (NullPointerException e) { // Log.i(ChummerConstants.TAG, "Null Pointer Exception at rating for: " + this.toString()); } catch (NumberFormatException e) { // Log.i(ChummerConstants.TAG, "Number Format Exception at rating for: " + this.toString()); } break; case "min_rating": try { this.setMinRating(Integer.valueOf(data)); } catch (NullPointerException e) { // Log.i(ChummerConstants.TAG, "Null Pointer Exception at min_rating for: " + this.toString()); } catch (NumberFormatException e) { // Log.i(ChummerConstants.TAG, "Number Format Exception at min_rating for: " + this.toString()); } break; case "max_rating": try { this.setMaxRating(Integer.valueOf(data)); } catch (NullPointerException e) { // Log.i(ChummerConstants.TAG, "Null Pointer Exception at max_rating for: " + this.toString()); } catch (NumberFormatException e) { // Log.i(ChummerConstants.TAG, "Number Format Exception at max_rating for: " + this.toString()); } break; default: return false; } return true; } @Override public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof StreetGear)) return false; if (!super.equals(o)) return false; StreetGear that = (StreetGear) o; if (getAvail() != that.getAvail()) return false; if (is_avail_rating != that.is_avail_rating) return false; if (getAvail_mult_by() != that.getAvail_mult_by()) return false; if (getAvail_add_by() != that.getAvail_add_by()) return false; if (getCost() != that.getCost()) return false; if (is_cost_rating_mult != that.is_cost_rating_mult) return false; if (getRating() != that.getRating()) return false; if (getMinRating() != that.getMinRating()) return false; if (getMaxRating() != that.getMaxRating()) return false; if (getType() != null ? !getType().equals(that.getType()) : that.getType() != null) return false; return !(getAvail_type() != null ? !getAvail_type().equals(that.getAvail_type()) : that.getAvail_type() != null); } @Override public int hashCode() { int result = super.hashCode(); result = 31 * result + (getType() != null ? getType().hashCode() : 0); result = 31 * result + getAvail(); result = 31 * result + (is_avail_rating ? 1 : 0); result = 31 * result + getAvail_mult_by(); result = 31 * result + getAvail_add_by(); result = 31 * result + (getAvail_type() != null ? getAvail_type().hashCode() : 0); result = 31 * result + getCost(); result = 31 * result + (is_cost_rating_mult ? 1 : 0); result = 31 * result + getRating(); result = 31 * result + getMinRating(); result = 31 * result + getMaxRating(); return result; } @Override public String toString() { return super.toString() + "StreetGear{" + "type='" + type + '\'' + ", avail=" + avail + ", is_avail_rating=" + is_avail_rating + ", avail_mult_by=" + avail_mult_by + ", avail_add_by=" + avail_add_by + ", avail_type='" + avail_type + '\'' + ", cost=" + cost + ", is_cost_rating_mult=" + is_cost_rating_mult + ", rating=" + rating + ", minRating=" + minRating + ", maxRating=" + maxRating + "} "; } public String getType() { return type; } public void setType(String type) { this.type = type; } public int getAvail() { return avail; } public void setAvail(int avail) { this.avail = avail; } public boolean is_avail_rating() { return is_avail_rating; } public void setIs_avail_rating(boolean is_avail_rating) { this.is_avail_rating = is_avail_rating; } public int getAvail_mult_by() { return avail_mult_by; } public void setAvail_mult_by(int avail_mult_by) { this.avail_mult_by = avail_mult_by; } public int getAvail_add_by() { return avail_add_by; } public void setAvail_add_by(int avail_add_by) { this.avail_add_by = avail_add_by; } public String getAvail_type() { return avail_type; } public void setAvail_type(String avail_type) { this.avail_type = avail_type; } public int getCost() { if (is_cost_rating_mult && rating > 0) { return cost * rating; } return cost; } public void setCost(int cost) { this.cost = cost; } public boolean is_cost_rating_mult() { return is_cost_rating_mult; } public void setIs_cost_rating_mult(boolean is_cost_rating_mult) { this.is_cost_rating_mult = is_cost_rating_mult; } public int getRating() { return rating; } public void setRating(int rating) { this.rating = rating; } public int getMinRating() { return minRating; } public void setMinRating(int minRating) { this.minRating = minRating; } public int getMaxRating() { return maxRating; } public void setMaxRating(int maxRating) { this.maxRating = maxRating; } }
[ "iwanbodnarchuk@gmail.com" ]
iwanbodnarchuk@gmail.com
8dee0d22a93558cf68363f7cc1f7b5321583fc40
9717f1aa951f461c999d8a976ff3a67533ff8b25
/src/com/alex/logger/BaseLogger.java
c3fa5049e7ea8d190c5aed3ba1fa58e1069362e0
[]
no_license
Aliaksandr1302/homework
4205a238db46cd8e8a0e97390c68a87eea61e915
2d81cb76ba44eb2add372cf549e6c5c415d60d8a
refs/heads/master
2021-01-16T17:26:22.436856
2020-04-24T12:50:45
2020-04-24T12:50:45
243,188,953
0
0
null
null
null
null
UTF-8
Java
false
false
1,042
java
package com.alex.logger; import java.io.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; public class BaseLogger { private static File file = new File("log.txt"); // public static final List<OutputStream> output = new ArrayList<OutputStream>(); private static void createdFile() { if (!file.exists()) { try { boolean created = file.createNewFile(); if (created) { writeToFile("created"); } } catch (IOException e) { e.printStackTrace(); } } } public static void writeToFile(String log) { if (!file.exists()) { createdFile(); try (FileWriter writer = new FileWriter(file, true)) { char[] temp = log.toCharArray(); writer.write(temp); writer.write("\n" + ""); } catch (IOException e) { e.printStackTrace(); } } } }
[ "aliaksandr1302@gmail.com" ]
aliaksandr1302@gmail.com
017b214353ea67a3dabee55bc1c6ffded6cce659
4422bcc695e8523033e90f4e8234ef2493303002
/src/main/java/com/engine/promotion/repository/OrderSKURepository.java
a825aef9ddf64832706a00ad9eacedf9ec1a8899
[]
no_license
13shivam/promotionengine
75665fc83496c69e0d82eaf29e02acfe49db8999
27626a31d1bcc21934ba5adf7ceab67683143d34
refs/heads/master
2022-12-14T15:03:23.181111
2020-09-16T13:56:40
2020-09-16T13:56:40
295,766,867
0
0
null
null
null
null
UTF-8
Java
false
false
228
java
package com.engine.promotion.repository; import com.engine.promotion.entity.OrderSKU; import org.springframework.data.jpa.repository.JpaRepository; public interface OrderSKURepository extends JpaRepository<OrderSKU, Long> { }
[ "sr@sr" ]
sr@sr
690156cc78b14987b6b5978b2b75209b03043c0d
bc57efb505dfd189a7cbb637ba608f90fbb4530e
/src/Interface_and_Inheritance/Healer.java
6b92da0f363e75f49640937c336ae662828038eb
[]
no_license
dyxhhxx/j2se
a062c15f834668853b0238de17a9524c46758c29
348eca13b0fe7a55c5bd8e9b9f305fb5c862eac4
refs/heads/master
2023-07-20T05:01:45.893027
2021-09-05T07:00:25
2021-09-05T07:00:25
387,738,718
0
0
null
null
null
null
UTF-8
Java
false
false
88
java
package Interface_and_Inheritance; public interface Healer { public void heal(); }
[ "15896883188@163.com" ]
15896883188@163.com
585db2117bcd0ab1aad82acf35d81e57253e6f2f
5b32070ad9fd4cc10d2edcaa91a0a4af516720f8
/Let'sShare/app/src/main/java/com/acds/letsshare/Notification.java
91402c5493f9b4766a93b09d2996179624424568
[]
no_license
deepshree94/letsShare
97c7d01bed04b58b86153bd3d32b719d24dd3d7c
5764c0e0c88688e863476ae6bc3a9915541f3060
refs/heads/master
2020-04-29T02:32:09.940300
2015-05-02T15:53:45
2015-05-02T15:53:45
34,952,945
0
0
null
null
null
null
UTF-8
Java
false
false
569
java
package com.acds.letsshare; import com.parse.ParseClassName; import com.parse.ParseObject; import com.parse.ParseUser; @ParseClassName("Notification") public class Notification extends ParseObject { public Notification() { } public void setUser(ParseUser user) { put("user", user); } public ParseObject getUser() { return getParseObject("user"); } public void setInformation(String information) { put("information", information); } public String getInformation() { return getString("information"); } }
[ "deepshree.ravindran@iiitb.org" ]
deepshree.ravindran@iiitb.org
6fc74af9ef681ce7b3b30e260e688ec2e4b2179b
59e6d559535942daaf2200f058bd2a1ff09f7081
/reader/src/main/java/org/jline/reader/CompletingParsedLine.java
f76cf48afcca7b4a411781656f728dd5ab0e3aa1
[ "BSD-3-Clause" ]
permissive
vorburger/jline3
eeb6a49ea1a7509181dcf83d2ac015726fe235a6
9302947ef94d821edd7ab22b74a2c3861db19032
refs/heads/master
2020-03-18T09:15:30.566358
2018-05-22T06:13:50
2018-05-22T06:13:50
134,553,607
1
0
null
2018-05-23T10:31:14
2018-05-23T10:31:14
null
UTF-8
Java
false
false
733
java
/* * Copyright (c) 2002-2018, the original author or authors. * * This software is distributable under the BSD license. See the terms of the * BSD license in the documentation provided with this software. * * http://www.opensource.org/licenses/bsd-license.php */ package org.jline.reader; /** * An extension of {@link ParsedLine} that, being aware of the quoting and escaping rules * of the {@link org.jline.reader.Parser} that produced it, knows if and how a completion candidate * should be escaped/quoted. * * @author Eric Bottard */ public interface CompletingParsedLine extends ParsedLine { CharSequence escape(CharSequence candidate, boolean complete); int rawWordCursor(); int rawWordLength(); }
[ "gnodet@gmail.com" ]
gnodet@gmail.com
1b35c342aeae1906d9282c14c96ac7c0fdf3e4f6
695b14f61f08571ab7b988cc524df8ea051958f0
/src/main/java/xbc/model/User.java
261c7ca1809b20a33dd37679ec210ff07e69283d
[]
no_license
gigitafazh/xbc
ca9f349890de6a3b578d685dd7c223fbc1fa6e6a
64c6b442f48fc301c7b2c074ab475472346e2b0c
refs/heads/master
2020-05-15T02:45:56.475967
2019-04-29T07:54:44
2019-04-29T07:54:44
182,054,832
0
0
null
null
null
null
UTF-8
Java
false
false
4,319
java
package xbc.model; import java.io.Serializable; import java.util.Date; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.JoinColumn; import javax.persistence.ManyToOne; import javax.persistence.Table; import javax.persistence.Temporal; import javax.persistence.TemporalType; import org.hibernate.annotations.ColumnDefault; import com.fasterxml.jackson.annotation.JsonFormat; import xbc.model.Role; @Entity @Table(name = "t_user") public class User implements Serializable { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) @Column(name = "id", length = 11, updatable = false, nullable = false) private Integer id; @Column(name = "username", length = 50, nullable = false) private String username; @Column(name = "password", length = 50, nullable = false) private String password; @Column(name = "email", length = 100, nullable = false) private String email; @Column(name = "role_id", length = 11, nullable = false) private Integer roleId; @ManyToOne @JoinColumn(name = "role_id", updatable = false, insertable = false) private Role role; @Column(name = "mobile_flag", nullable = false) private boolean mobileFlag; @Column(name = "mobile_token", length = 11, nullable = true) private Integer mobileToken; @Column(name = "created_by", length = 11, nullable = false) private Integer createdBy; @Column(name = "created_on", nullable = false) @Temporal(TemporalType.TIMESTAMP) @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd hh:mm:ss", timezone = "Asia/Jakarta") private Date createdOn; @Column(name = "modified_by", length = 11, nullable = true) private Integer modifiedBy; @Column(name = "modified_on", nullable = true) @Temporal(TemporalType.TIMESTAMP) @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd hh:mm:ss", timezone = "Asia/Jakarta") private Date modifiedOn; @Column(name = "deleted_by", length = 11, nullable = true) private Integer deletedBy; @Column(name = "deleted_on", nullable = true) @Temporal(TemporalType.TIMESTAMP) @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd hh:mm:ss", timezone = "Asia/Jakarta") private Date deletedOn; @Column(name = "is_delete", nullable = false) private boolean isDelete; public Integer getId() { return id; } public void setId(Integer id) { this.id = id; } public String getUsername() { return username; } public void setUsername(String username) { this.username = username; } public String getPassword() { return password; } public void setPassword(String password) { this.password = password; } public String getEmail() { return email; } public void setEmail(String email) { this.email = email; } public Integer getRoleId() { return roleId; } public void setRoleId(Integer roleId) { this.roleId = roleId; } public Role getRole() { return role; } public void setRole(Role role) { this.role = role; } public boolean isMobileFlag() { return mobileFlag; } public void setMobileFlag(boolean mobileFlag) { this.mobileFlag = mobileFlag; } public Integer getMobileToken() { return mobileToken; } public void setMobileToken(Integer mobileToken) { this.mobileToken = mobileToken; } public Integer getCreatedBy() { return createdBy; } public void setCreatedBy(Integer createdBy) { this.createdBy = createdBy; } public Date getCreatedOn() { return createdOn; } public void setCreatedOn(Date createdOn) { this.createdOn = createdOn; } public Integer getModifiedBy() { return modifiedBy; } public void setModifiedBy(Integer modifiedBy) { this.modifiedBy = modifiedBy; } public Date getModifiedOn() { return modifiedOn; } public void setModifiedOn(Date modifiedOn) { this.modifiedOn = modifiedOn; } public Integer getDeletedBy() { return deletedBy; } public void setDeletedBy(Integer deletedBy) { this.deletedBy = deletedBy; } public Date getDeletedOn() { return deletedOn; } public void setDeletedOn(Date deletedOn) { this.deletedOn = deletedOn; } public boolean isDelete() { return isDelete; } public void setDelete(boolean isDelete) { this.isDelete = isDelete; } }
[ "gitafazhaf@gmail.com" ]
gitafazhaf@gmail.com
f9785c20cdf5b0457439c3a69ef01b49c4a9a8ea
4a9da8baa85f2c8d8d87916f718ac993f898bd4f
/Fuentes/alertSource/src/main/java/com/zyos/core/common/controller/ZyosController.java
bd4cf734eb322bc005e8acaea1fc97c858257a0a
[]
no_license
Software-tic/Desarrollo
978252ddc990e8b72bb126b3bce021db8e6f89b7
350761acbb27f3d6fa60a3a61aadff19668bf9f7
refs/heads/master
2020-12-03T02:40:49.545298
2015-08-12T23:12:31
2015-08-12T23:12:31
34,268,403
0
0
null
null
null
null
UTF-8
Java
false
false
6,446
java
package com.zyos.core.common.controller; import java.io.Serializable; import java.util.ArrayList; import java.util.List; import javax.faces.model.SelectItem; import com.zyos.alert.executionsHistorical.model.ExecutionsHistorical; import com.zyos.alert.executionsHistorical.model.ExecutionsHistoricalDAO; import com.zyos.alert.studentReport.model.AcademicPeriodDAO; import com.zyos.core.common.list.BeanList; import com.zyos.core.common.util.security.RSA; import com.zyos.core.lo.user.model.ZyosGroup; import com.zyos.core.lo.user.model.ZyosUser; import com.zyos.core.lo.user.model.ZyosUserDAO; import com.zyos.core.login.model.ZyosLoginDAO; import com.zyos.core.mail.io.mn.api.IEmailTemplate; import com.zyos.core.mail.io.mn.aws.SMTPEmail; import com.zyos.core.mail.io.mn.controller.EmailHandler; import com.zyos.core.mail.io.mn.model.EmailTemplate; public class ZyosController implements Serializable { public List<ZyosGroup> getGroupList(Long idEnterprise, Long idZG, boolean withEqualByRole) { try { List<ZyosGroup> groups = BeanList.getZyosGroupList(); if (idZG == 1) return groups; for (int i = 0; i < groups.size(); i++) { ZyosGroup group = groups.get(i); if (withEqualByRole) { if (group.getId() <= idZG) { groups.remove(i); i--; } } else { if (group.getId() < idZG) { groups.remove(i); i--; } } } return groups; } catch (Exception e) { ErrorNotificacion.handleErrorMailNotification(e, this); return null; } } public static String clearCharacters(String _character) { String cleanCaracter = _character; cleanCaracter = cleanCaracter.replaceAll("'", ""); cleanCaracter = cleanCaracter.replaceAll("--", ""); cleanCaracter = cleanCaracter.trim(); return cleanCaracter; } public ZyosUser queryUser(ZyosUser zyosUser) { ZyosUserDAO zyosUserDAO = new ZyosUserDAO(); try { ZyosUser zut = zyosUserDAO.findById(zyosUser.getIdZyosUser()); if (zut != null && zyosUser != null) { zyosUser.setSecondEmail(zut.getSecondEmail()); zyosUser.setPhone(zut.getPhone()); zyosUser.setMobilePhone(zut.getMobilePhone()); zyosUser.setIdDocumentType(zut.getIdDocumentType()); zyosUser.setDateCreation(zut.getDateCreation()); zyosUser.setUserCreation(zut.getUserCreation()); zyosUser.setZyosLogin(zut.getZyosLogin()); zyosUser.setDocumentType(zut.getIdDocumentType().toString()); zyosUser.setIdProfession(zut.getIdProfession()); } zut = null; return zyosUser; } catch (Exception e) { ErrorNotificacion.handleErrorMailNotification(e, this); return null; } finally { zyosUserDAO.getSession().close(); zyosUserDAO = null; } } /** * Method that find and load the validate user for the SP selected * * @param idSP * Long id of SP * @param idOZ * @return list with the user found */ public ArrayList<SelectItem> loadListUserBySP(Long idSP, Long idOZ, Long idZG) { ZyosUserDAO userDAO = null; try { userDAO = new ZyosUserDAO(); ArrayList<SelectItem> usersList = userDAO .findBySP(idSP, idOZ, idZG); if (!usersList.isEmpty()) { return usersList; } return null; } catch (Exception e) { ErrorNotificacion.handleErrorMailNotification(e, this); return null; } finally { userDAO.getSession().close(); userDAO = null; } } public boolean validateForgotPassword(final String userMail, String userName, final String pass) { ZyosUserDAO dao = null; try { dao = new ZyosUserDAO(); String passwordMD5 = RSA.encrypt(pass); String nameUser = dao.validateForgotPassword(userMail, userName, passwordMD5); if (nameUser != null) { dao.getSession().close(); try { EmailTemplate et = EmailHandler.getEmailTemplate( Long.valueOf(1), IEmailTemplate.RESET_PASSWORD); SMTPEmail smtp = new SMTPEmail(); smtp.sendProcessEmail(ZyosBackingBean .getProperty("mail.smtp.user"), et.getSubject(), EmailHandler.createGenericMessage(et.getBody(), et.getAnalyticsCode(), nameUser, userMail, pass), userMail); } catch (Exception e) { ErrorNotificacion.handleErrorMailNotification(e, "system"); } return true; } return false; } catch (Exception e) { ErrorNotificacion.handleErrorMailNotification(e, "ERROR-validate password"); return false; } finally { dao.getSession().close(); dao = null; } } public boolean updateAceptLicense(Long id, String documentNumber) { ZyosLoginDAO userDAO = null; try { userDAO = new ZyosLoginDAO(); if (userDAO.updateAceptLicense(id, documentNumber)) { userDAO.getSession().close(); return true; } return false; } catch (Exception e) { return false; } finally { userDAO.getSession().close(); userDAO = null; } } public List<SelectItem> queryUserByEnterprise(Long idSP, Long idOZ, Long idZG) { ZyosUserDAO zyosUserDAO = new ZyosUserDAO(); try { return zyosUserDAO.findBySP(idSP, idOZ, idZG); } catch (Exception e) { ErrorNotificacion.handleErrorMailNotification(e, this); return null; } finally { zyosUserDAO.getSession().close(); zyosUserDAO = null; } } /** @author ogarzonm */ public Long loadCurrentAcademicPeriod() throws Exception { AcademicPeriodDAO dao = new AcademicPeriodDAO(); try { return dao.loadCurrentAcademicPeriod(); } catch (Exception e) { throw e; } finally { dao.getSession().close(); dao = null; } } /** @author ogarzonm */ public String loadCurrentAcademicPeriodName() throws Exception { AcademicPeriodDAO dao = new AcademicPeriodDAO(); try { return dao.loadCurrentAcademicPeriodName(); } catch (Exception e) { throw e; } finally { dao.getSession().close(); dao = null; } } /** @author ogarzonm */ public String loadCurrentAcademicPeriodDescription() throws Exception { AcademicPeriodDAO dao = new AcademicPeriodDAO(); try { return dao.loadCurrentAcademicPeriodDescription(); } catch (Exception e) { throw e; } finally { dao.getSession().close(); dao = null; } } /** @author ogarzonm */ public void saveExecution(ExecutionsHistorical eh) throws Exception { ExecutionsHistoricalDAO dao = new ExecutionsHistoricalDAO(); try { dao.save(eh); dao.getSession().beginTransaction().commit(); } catch (Exception e) { throw e; } finally { dao.getSession().close(); dao = null; } } }
[ "software.tic@ustatunja.edu.co" ]
software.tic@ustatunja.edu.co
e5fd16d68a7a86c35d8f93c94fb9cda7990a3099
bb302c89db6cd4a4d9ab7571796368c35445c2cd
/libs13/src/main/java/com/course/common/dto/ResponseDto.java
dc3b4a462776269e5736560fdb0f0d2be2c76657
[]
no_license
seasunny1229/SpringCloud
ee008c0114bdeb8f297db54261b324855275991c
5c87263df9c59d895784318aa6126bb0221edf71
refs/heads/master
2023-03-21T03:32:14.584007
2021-03-14T14:48:40
2021-03-14T14:48:40
302,620,471
0
0
null
null
null
null
UTF-8
Java
false
false
1,108
java
package com.course.common.dto; public class ResponseDto<T> { // business success flag private boolean success = true; // response code private String code; // response message private String message; // data private T content; public boolean isSuccess() { return success; } public void setSuccess(boolean success) { this.success = success; } public String getCode() { return code; } public void setCode(String code) { this.code = code; } public String getMessage() { return message; } public void setMessage(String message) { this.message = message; } public T getContent() { return content; } public void setContent(T content) { this.content = content; } @Override public String toString() { return "ResponseDto{" + "success=" + success + ", code='" + code + '\'' + ", message='" + message + '\'' + ", content=" + content + '}'; } }
[ "sea_sunny1229@163.com" ]
sea_sunny1229@163.com
4ebdb0a87af3b777e0ee57b613c535203c89e5cd
072453fbb8f6a705ae26c81688f2350d9f837a1e
/src/main/java/solita/ennakko/Model/VaccineRepository.java
d7a46538dd2ac6fce89556635148f4002823db04
[]
no_license
a1800572/Solita-ennakkotehtava
4587b495faa29043ef625adda5e158c2742af369
b80de7a70c1966eebc3e160fc10aa96ffe22b17f
refs/heads/master
2023-06-19T19:30:53.053541
2021-07-21T00:43:52
2021-07-21T00:43:52
386,340,255
0
0
null
null
null
null
UTF-8
Java
false
false
223
java
package solita.ennakko.Model; import org.springframework.data.repository.CrudRepository; public interface VaccineRepository extends CrudRepository<Vaccine, String> { long countByVaccinationdateBefore(String date); }
[ "valtteri.koivunen@hotmail.com" ]
valtteri.koivunen@hotmail.com
c7cc107e61c347214b97db73da766e7d6c6967e4
13ccf288c635201d9eb88d6bef9977092f8ea3ef
/src/assignment/stringhandling/problem1/Main.java
987449e7efb8a7cf6f184f2299a1f9774cc05ec1
[]
no_license
ashokkumar-sarvepalli/java-assignments
79ba66c5f0b0739d4436da06e03e147a549a64d1
6e4d74aa24ace5c6d9ab100ba5ac8610654d55a2
refs/heads/master
2020-04-13T03:14:48.865674
2019-02-24T02:05:23
2019-02-24T02:05:23
162,926,031
2
0
null
null
null
null
UTF-8
Java
false
false
239
java
package assignment.stringhandling.problem1; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String args[]) throws IOException { } }
[ "ashok@ASHOKKUMARs-MBP.home" ]
ashok@ASHOKKUMARs-MBP.home
0250b1c797defbbe9c44488ee923f663920b55bd
c7c3322fc8d77355f30e01e2238eabf0ff3292b9
/src/main/java/SQL_dao.java
83c1e96611c49a2233e4906789b1ad4e12f1c75c
[]
no_license
Masonwong1993/account_backend
bfbbff66d4a26cfe95845a3de42873ec3eb0f42b
818cec5b7216820056c929c7dfcd592b193df047
refs/heads/master
2022-12-24T14:39:03.175662
2020-10-02T19:36:47
2020-10-02T19:36:47
297,829,154
0
0
null
null
null
null
UTF-8
Java
false
false
3,470
java
import java.sql.*; public class SQL_dao { public static void main(String[] args) { String url = "jdbc:mysql://localhost:3306/users"; String user = "root"; String password = "1993"; //test check //String fn = "\'huajun\'"; //Check(url,user,password,fn); //test add //String value = "values('limin','zhang','male','29055924@qq.com','1972-10-11')"; //Create(url,user,password,value);v //test update //String updateinfo = "email='290516561@qq.com'"; //String taginfo = "firstname='huajun'"; //Update(url,user,password,updateinfo,taginfo); //test delete // String deleteinfo = "firstname='limin'"; // Delete(url,user,password,deleteinfo); } //check user information by firstname public static void Check(String url, String user, String password, String fn){ try { Connection myConn = DriverManager.getConnection(url,user,password); Statement myStmt = myConn.createStatement(); String sql = "select * from users where firstname ="+fn; ResultSet myRs = myStmt.executeQuery(sql); while (myRs.next()){ String firstname = myRs.getString("firstname"); String lastname = myRs.getString("lastname"); String gender = myRs.getString("gender"); String email = myRs.getString("email"); String birthdate = myRs.getString("birthdate"); System.out.format("%s, %s, %s, %s, %s\n",firstname,lastname,gender,email,birthdate); } myStmt.close(); } catch (Exception e){ e.printStackTrace(); } } //add new user information public static void Create(String url, String user, String password,String value){ try{ Connection myConn = DriverManager.getConnection(url,user,password); Statement myStmt = myConn.createStatement(); String sql = "insert into users(firstname,lastname,gender,email,birthdate)"+ value; myStmt.executeUpdate(sql); myStmt.close(); }catch (Exception e){ e.printStackTrace(); } System.out.println("Add user successfully"); } //update user information by given information public static void Update(String url, String user, String password,String updateinfo, String taginfo){ try{ Connection myConn = DriverManager.getConnection(url,user,password); Statement myStmt = myConn.createStatement(); String sql = "update users set "+updateinfo+ " where "+taginfo; myStmt.executeUpdate(sql); myStmt.close(); }catch (Exception e){ e.printStackTrace(); } System.out.println("Update user information successfully"); } public static void Delete(String url, String user, String password, String deleteinfo){ try{ Connection myConn = DriverManager.getConnection(url,user,password); Statement myStmt = myConn.createStatement(); String sql = "delete from users where "+deleteinfo; myStmt.executeUpdate(sql); myStmt.close(); }catch (Exception e){ e.printStackTrace(); } System.out.println("Delete user information successfully"); } }
[ "masonwong1993@gmail.com" ]
masonwong1993@gmail.com
55370db49e0eb7f199afdaf16d9c5cf92fa27119
b1f2b9527a81357c6ec2d4f3241a18b348bc6646
/src/main/java/com/yogafire/sql/changer/tree/DoubleLiteral.java
aedd2a06cda13d2cd7d4cc7c2466e07a8917fbce
[]
no_license
Yogaflre/sql-changer
fcb99c2625f259cfec9480a47d2e0290b0fa3858
b6e4b69061e2ad05721624027a696f19d82375ea
refs/heads/master
2023-06-22T16:39:45.663707
2020-11-04T11:33:37
2020-11-04T11:33:37
281,880,375
3
1
null
2023-06-14T22:30:41
2020-07-23T07:20:12
Java
UTF-8
Java
false
false
1,979
java
/* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.yogafire.sql.changer.tree; import java.util.Optional; import static java.util.Objects.requireNonNull; public class DoubleLiteral extends Literal { private final double value; public DoubleLiteral(String value) { this(Optional.empty(), value); } public DoubleLiteral(NodeLocation location, String value) { this(Optional.of(location), value); } private DoubleLiteral(Optional<NodeLocation> location, String value) { super(location); requireNonNull(value, "value is null"); this.value = Double.parseDouble(value); } public double getValue() { return value; } @Override public <R, C> R accept(AstVisitor<R, C> visitor, C context) { return visitor.visitDoubleLiteral(this, context); } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } DoubleLiteral that = (DoubleLiteral) o; if (Double.compare(that.value, value) != 0) { return false; } return true; } @SuppressWarnings("UnaryPlus") @Override public int hashCode() { long temp = value != +0.0d ? Double.doubleToLongBits(value) : 0L; return (int) (temp ^ (temp >>> 32)); } }
[ "yogafirew@gmail.com" ]
yogafirew@gmail.com
ceeb435c73d8fd9b04b8631253338f74a01253e1
bd4c9f5a467c5325928f804b81f753c47fcb6277
/src/main/java/org/kuali/kra/protocol/actions/reviewcomments/ReviewCommentsServiceImplBase.java
0052f406d38beacac6a2616c7dae80599bf07ae2
[]
no_license
ua-eas/ksd-kc5.2.1-ua
30d9551cbd90f120b80477242616b81fe52ac36e
1d8a44649e14ab2c37f66da369721acfc7d59b90
refs/heads/development
2022-06-09T09:12:16.153689
2021-03-30T19:29:54
2021-03-30T19:29:54
20,941,172
1
0
null
2021-06-04T23:47:47
2014-06-17T22:09:50
Scheme
UTF-8
Java
false
false
44,532
java
/* * Copyright 2005-2014 The Kuali Foundation * * Licensed under the Educational Community 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.opensource.org/licenses/ecl1.php * * 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.kuali.kra.protocol.actions.reviewcomments; import org.apache.commons.collections.CollectionUtils; import org.apache.commons.lang.ObjectUtils; import org.apache.commons.lang.StringUtils; import org.kuali.kra.bo.AttachmentFile; import org.kuali.kra.bo.KcPerson; import org.kuali.kra.common.committee.bo.CommitteeBase; import org.kuali.kra.common.committee.bo.CommitteeMembershipBase; import org.kuali.kra.common.committee.bo.CommitteeScheduleBase; import org.kuali.kra.common.committee.meeting.CommitteeScheduleMinuteBase; import org.kuali.kra.common.committee.meeting.MinuteEntryType; import org.kuali.kra.common.committee.service.CommitteeServiceBase; import org.kuali.kra.infrastructure.KraServiceLocator; import org.kuali.kra.infrastructure.RoleConstants; import org.kuali.kra.kim.bo.KcKimAttributes; import org.kuali.kra.protocol.ProtocolBase; import org.kuali.kra.protocol.ProtocolDocumentBase; import org.kuali.kra.protocol.ProtocolFinderDao; import org.kuali.kra.protocol.actions.submit.ProtocolReviewer; import org.kuali.kra.protocol.actions.submit.ProtocolSubmissionBase; import org.kuali.kra.protocol.onlinereview.ProtocolOnlineReviewBase; import org.kuali.kra.protocol.onlinereview.ProtocolReviewAttachmentBase; import org.kuali.kra.protocol.onlinereview.ProtocolReviewableBase; import org.kuali.kra.protocol.personnel.ProtocolPersonBase; import org.kuali.kra.service.KcPersonService; import org.kuali.rice.core.api.datetime.DateTimeService; import org.kuali.rice.coreservice.framework.parameter.ParameterService; import org.kuali.rice.kim.api.identity.Person; import org.kuali.rice.kim.api.role.RoleService; import org.kuali.rice.krad.service.BusinessObjectService; import org.kuali.rice.krad.util.GlobalVariables; import java.util.*; public abstract class ReviewCommentsServiceImplBase<PRA extends ProtocolReviewAttachmentBase> implements ReviewCommentsService<PRA> { private static final String HIDE = "0"; private static final String DISPLAY = "1"; protected BusinessObjectService businessObjectService; private CommitteeServiceBase committeeService; private ProtocolFinderDao protocolFinderDao; private RoleService roleService; private DateTimeService dateTimeService; private ParameterService parameterService; private KcPersonService kcPersonService; private Set<String> adminIds; private List<String> adminUserNames; private List<String> reviewerIds; private Set<String> viewerIds; private Set<String> aggregatorIds; private boolean displayReviewerNameToPersonnel; private boolean displayReviewerNameToReviewers; private boolean displayReviewerNameToActiveMembers; /** * {@inheritDoc} * * @see org.kuali.kra.protocol.actions.reviewcomments.ReviewCommentsService#canViewOnlineReviewerComments(java.lang.String, * org.kuali.kra.protocol.actions.submit.ProtocolSubmissionBase) */ public boolean canViewOnlineReviewerComments(String principalId, ProtocolSubmissionBase protocolSubmission) { return isAdminOrOnlineReviewer(principalId, protocolSubmission) || hasSubmissionCompleteStatus(protocolSubmission) || isActiveCommitteeMember(protocolSubmission, principalId); } /** * {@inheritDoc} * * @see org.kuali.kra.protocol.actions.reviewcomments.ReviewCommentsService#canViewOnlineReviewers(java.lang.String, * org.kuali.kra.protocol.actions.submit.ProtocolSubmissionBase) */ public boolean canViewOnlineReviewers(String principalId, ProtocolSubmissionBase protocolSubmission) { return isAdminOrOnlineReviewer(principalId, protocolSubmission); } private boolean isAdminOrOnlineReviewer(String principalId, ProtocolSubmissionBase submission) { boolean isAdmin = false; boolean isReviewer = false; Collection<String> ids = roleService.getRoleMemberPrincipalIds(RoleConstants.DEPARTMENT_ROLE_TYPE, getAdministratorRoleHook(), null); isAdmin = ids.contains(principalId); if (principalId != null) { List<ProtocolReviewer> reviewers = submission.getProtocolReviewers(); for (ProtocolReviewer reviewer : reviewers) { if (StringUtils.equals(principalId, reviewer.getPersonId())) { isReviewer = true; break; } } } return isAdmin || isReviewer; } private boolean hasSubmissionCompleteStatus(ProtocolSubmissionBase submission) { boolean validSubmissionStatus= Arrays.asList(getProtocolSubmissionCompleteStatusCodeArrayHook()).contains(submission.getSubmissionStatusCode()); return validSubmissionStatus; } protected abstract String[] getProtocolSubmissionCompleteStatusCodeArrayHook(); public List<CommitteeScheduleMinuteBase> getReviewerComments(String protocolNumber, int submissionNumber) { ArrayList<CommitteeScheduleMinuteBase> reviewComments = new ArrayList<CommitteeScheduleMinuteBase>(); List<ProtocolSubmissionBase> protocolSubmissions = protocolFinderDao.findProtocolSubmissions(protocolNumber, submissionNumber); for (ProtocolSubmissionBase protocolSubmission : protocolSubmissions) { if (protocolSubmission.getCommitteeScheduleMinutes() != null) { // search table directly as ProtocolBase Submission is not refreshed as commit happens later Map fieldValues = new HashMap(); fieldValues.put("protocolIdFk", protocolSubmission.getProtocolId()); fieldValues.put("submissionIdFk", protocolSubmission.getSubmissionId()); List<CommitteeScheduleMinuteBase> reviewComments1 = (List<CommitteeScheduleMinuteBase>) businessObjectService .findMatchingOrderBy(getCommitteeScheduleMinuteBOClassHook(), fieldValues, "commScheduleMinutesId", false); for (CommitteeScheduleMinuteBase minute : reviewComments1) { String minuteEntryTypeCode = minute.getMinuteEntryTypeCode(); // need to check current minute entry; otherwise may have minutes from previous version comittee if ((MinuteEntryType.PROTOCOL.equals(minuteEntryTypeCode) || MinuteEntryType.PROTOCOL_REVIEWER_COMMENT .equals(minuteEntryTypeCode)) && isCurrentMinuteEntry(minute)) { if (getReviewerCommentsView(minute)) { reviewComments.add(minute); } } } } } return reviewComments; } protected abstract Class<? extends CommitteeScheduleMinuteBase> getCommitteeScheduleMinuteBOClassHook(); @Override public List<PRA> getReviewerAttachments(String protocolNumber, int submissionNumber) { List<PRA> reviewAttachments = new ArrayList<PRA>(); List<ProtocolSubmissionBase> protocolSubmissions = protocolFinderDao.findProtocolSubmissions(protocolNumber, submissionNumber); // protocol versioning does not version review attachments/comments for (ProtocolSubmissionBase protocolSubmission : protocolSubmissions) { if (CollectionUtils.isNotEmpty(protocolSubmission.getReviewAttachments()) || protocolSubmissions.size() == 1) { // search table directly as ProtocolBase Submission is not refreshed as commit happens later Map fieldValues = new HashMap(); fieldValues.put("protocolIdFk", protocolSubmission.getProtocolId()); fieldValues.put("submissionIdFk", protocolSubmission.getSubmissionId()); List<PRA> reviewAttachments1 = (List<PRA>) businessObjectService .findMatchingOrderBy(getProtocolReviewAttachmentClassHook(), fieldValues, "attachmentId", false); for (ProtocolReviewAttachmentBase reviewAttachment : reviewAttachments1) { if (getReviewerCommentsView(reviewAttachment)) { reviewAttachments.add((PRA) reviewAttachment); } } } } return reviewAttachments; } @Override public List<ProtocolReviewer> getProtocolReviewers(String protocolNumber, int submissionNumber) { List<ProtocolReviewer> reviewers = new ArrayList<ProtocolReviewer>(); List<ProtocolSubmissionBase> protocolSubmissions = protocolFinderDao.findProtocolSubmissions(protocolNumber, submissionNumber); for (ProtocolSubmissionBase protocolSubmission : protocolSubmissions) { reviewers.addAll(protocolSubmission.getProtocolReviewers()); } return reviewers; } @Override public List<ProtocolOnlineReviewBase> getProtocolOnlineReviews(String protocolNumber, int submissionNumber) { List<ProtocolOnlineReviewBase> activeReviews = new ArrayList<ProtocolOnlineReviewBase>(); List<ProtocolSubmissionBase> protocolSubmissions = protocolFinderDao.findProtocolSubmissions(protocolNumber, submissionNumber); for (ProtocolSubmissionBase protocolSubmission : protocolSubmissions) { activeReviews.addAll(protocolSubmission.getActiveProtocolOnlineReviews()); } return activeReviews; } /* * when version committee, the minutes also versioned. This is to get the current one. */ protected boolean isCurrentMinuteEntry(CommitteeScheduleMinuteBase minute) { minute.refreshReferenceObject("committeeSchedule"); if (minute.getCommitteeSchedule() != null) { CommitteeBase committee = committeeService.getCommitteeById(minute.getCommitteeSchedule().getParentCommittee().getCommitteeId()); return committee.getId().equals(minute.getCommitteeSchedule().getParentCommittee().getId()); } else { // if scheduleid is 999999999 return true; } } public void addReviewComment(CommitteeScheduleMinuteBase newReviewComment, List<CommitteeScheduleMinuteBase> reviewComments, ProtocolBase protocol) { ProtocolSubmissionBase protocolSubmission = getSubmission(protocol); if (protocolSubmission.getScheduleIdFk() != null) { newReviewComment.setScheduleIdFk(protocolSubmission.getScheduleIdFk()); } else { newReviewComment.setScheduleIdFk(CommitteeScheduleBase.DEFAULT_SCHEDULE_ID); } newReviewComment.setEntryNumber(reviewComments.size()); newReviewComment.setProtocolIdFk(protocol.getProtocolId()); newReviewComment.setProtocol(protocol); newReviewComment.setSubmissionIdFk(protocolSubmission.getSubmissionId()); newReviewComment.setCreateUser(GlobalVariables.getUserSession().getPrincipalName()); newReviewComment.setCreateTimestamp(dateTimeService.getCurrentTimestamp()); newReviewComment.setUpdateUser(GlobalVariables.getUserSession().getPrincipalName()); // TO show update timestamp after 'add' newReviewComment.setUpdateTimestamp(dateTimeService.getCurrentTimestamp()); reviewComments.add(newReviewComment); } public void addReviewComment(CommitteeScheduleMinuteBase newReviewComment, List<CommitteeScheduleMinuteBase> reviewComments, ProtocolOnlineReviewBase protocolOnlineReview) { newReviewComment.setProtocolOnlineReview(protocolOnlineReview); newReviewComment.setProtocolOnlineReviewIdFk(protocolOnlineReview.getProtocolOnlineReviewId()); newReviewComment.setProtocolReviewer(protocolOnlineReview.getProtocolReviewer()); newReviewComment.setProtocolReviewerIdFk(protocolOnlineReview.getProtocolReviewerId()); addReviewComment(newReviewComment, reviewComments, protocolOnlineReview.getProtocol()); } public void moveUpReviewComment(List<CommitteeScheduleMinuteBase> reviewComments, ProtocolBase protocol, int fromIndex) { if (fromIndex > 0) { int toIndex = indexOfPreviousProtocolReviewComment(reviewComments, protocol, fromIndex); if (toIndex < fromIndex) { CommitteeScheduleMinuteBase movingReviewComment = reviewComments.remove(fromIndex); reviewComments.add(toIndex, movingReviewComment); for (int i = toIndex; i <= fromIndex; i++) { reviewComments.get(i).setEntryNumber(i); } } } } /** * Returns the index of the review comment just before to the one at index, where both of the review comments are in the same * protocol. * * If there is no such review comment, returns the index of the review comment at index. * * @param reviewComments the list of review comments * @param protocol the current protocol * @param currentIndex the index of the current review comment * @return the index of the previous review comment, or the same index if there is none */ private int indexOfPreviousProtocolReviewComment(List<CommitteeScheduleMinuteBase> reviewComments, ProtocolBase protocol, int currentIndex) { int previousIndex = currentIndex; for (ListIterator<CommitteeScheduleMinuteBase> iterator = reviewComments.listIterator(currentIndex); iterator.hasPrevious();) { int iteratorIndex = iterator.previousIndex(); CommitteeScheduleMinuteBase currentReviewComment = iterator.previous(); if (ObjectUtils.equals(currentReviewComment.getProtocolId(), protocol.getProtocolId())) { previousIndex = iteratorIndex; break; } } return previousIndex; } public void moveDownReviewComment(List<CommitteeScheduleMinuteBase> reviewComments, ProtocolBase protocol, int fromIndex) { if (fromIndex < reviewComments.size() - 1) { int toIndex = indexOfNextProtocolReviewComment(reviewComments, protocol, fromIndex); if (toIndex > fromIndex) { CommitteeScheduleMinuteBase movingReviewComment = reviewComments.remove(fromIndex); reviewComments.add(toIndex, movingReviewComment); for (int i = fromIndex; i <= toIndex; i++) { reviewComments.get(i).setEntryNumber(i); } } } } /** * Returns whether the current user can view this comment. * * This is true either if 1) The current user has the role IRB Administrator 2) The comment/minute has been accepted by an IRB * Administrator and one of the following conditions is true: 3) The current user does not have the role IRB Administrator, but * the current user is the comment creator 4) The current user does not have the role IRB Administrator, but is a reviewer of * the protocol, and not part of the protocol personnel, and the comment is final 5) The current user does not have the role IRB * Administrator, but is an active committee member, and not part of the protocol personnel, and the comment is final 6) The * comment is public and final * * In addition if the comment is not associated with an online review then it automatically returns true. * * @param CommitteeScheduleMinuteBase minute * @return whether the current user can view this comment */ public boolean getReviewerCommentsView(ProtocolReviewableBase minute) { String principalId = GlobalVariables.getUserSession().getPrincipalId(); String principalName = GlobalVariables.getUserSession().getPrincipalName(); if (isAdministrator(principalId)) { return true; } else { if (minute.getProtocolOnlineReviewIdFk() != null) { // this comment originated via an OLR, so check first that it is accepted and then that it // is either created by current user or 'isViewable' for the current user if (minute.isAccepted()) { return StringUtils.equals(principalName, minute.getCreateUser()) || isViewable(minute); } else { return false; } } else { // this comment did not originate in an OLR (most probably added by admin via some non-OLR comments interface), // so check that it 'isViewable' for the current user return isViewable(minute); } } } /* * This method is to check if review comment/attachment is viewable for this user */ private boolean isViewable(ProtocolReviewableBase reviewable) { String principalId = GlobalVariables.getUserSession().getPrincipalId(); return reviewable.isFinal() && ( !reviewable.isPrivate() || ( (isReviewer(reviewable, principalId) || isActiveCommitteeMember(reviewable, principalId)) && (!isProtocolPersonnel(reviewable, principalId) && !hasProtocolPermission(reviewable, principalId)) ) ); } protected boolean isAdministrator(String principalId) { RoleService roleService = KraServiceLocator.getService(RoleService.class); Collection<String> ids = roleService.getRoleMemberPrincipalIds(RoleConstants.DEPARTMENT_ROLE_TYPE, getAdministratorRoleHook(), null); return ids.contains(principalId); } protected abstract String getAdministratorRoleHook(); /** * Returns the index of the review comment just after to the one at index, where both of the review comments are in the same * protocol. * * If there is no such review comment, returns the index of the review comment at index. * * @param reviewComments the list of review comments * @param protocol the current protocol * @param currentIndex the index of the current review comment * @return the index of the next review comment, or the same index if there is none */ private int indexOfNextProtocolReviewComment(List<CommitteeScheduleMinuteBase> reviewComments, ProtocolBase protocol, int currentIndex) { int nextIndex = currentIndex; for (ListIterator<CommitteeScheduleMinuteBase> iterator = reviewComments.listIterator(currentIndex + 1); iterator.hasNext();) { int iteratorIndex = iterator.nextIndex(); CommitteeScheduleMinuteBase currentReviewComment = iterator.next(); if (ObjectUtils.equals(currentReviewComment.getProtocolId(), protocol.getProtocolId())) { nextIndex = iteratorIndex; break; } } return nextIndex; } public void deleteReviewComment(List<CommitteeScheduleMinuteBase> reviewComments, int index, List<CommitteeScheduleMinuteBase> deletedReviewComments) { if (index >= 0 && index < reviewComments.size()) { CommitteeScheduleMinuteBase reviewComment = reviewComments.get(index); if (reviewComment.getCommScheduleMinutesId() != null) { deletedReviewComments.add(reviewComment); } reviewComments.remove(index); for (int i = index; i < reviewComments.size(); i++) { reviewComments.get(i).setEntryNumber(i); } } } public void deleteAllReviewComments(List<CommitteeScheduleMinuteBase> reviewComments, List<CommitteeScheduleMinuteBase> deletedReviewComments) { for (CommitteeScheduleMinuteBase reviewerComment : reviewComments) { if (reviewerComment.getCommScheduleMinutesId() != null) { deletedReviewComments.add(reviewerComment); } } reviewComments.clear(); } @SuppressWarnings({ "rawtypes", "unchecked" }) public void saveReviewComments(List<CommitteeScheduleMinuteBase> reviewComments, List<CommitteeScheduleMinuteBase> deletedReviewComments) { for (CommitteeScheduleMinuteBase reviewComment : reviewComments) { boolean doUpdate = true; if (reviewComment.getCommScheduleMinutesId() != null) { CommitteeScheduleMinuteBase pristineInstance = reviewComment.getPristineInstance(); if((pristineInstance != null) && (!reviewComment.equals(pristineInstance))) { doUpdate = true; // we update the user name only if certain important fields have changed if (reviewComment.isUpdateUserToBeRecorded(pristineInstance)) { KcPerson kcPerson = KraServiceLocator.getService(KcPersonService.class).getKcPersonByPersonId(GlobalVariables.getUserSession().getPerson().getPrincipalId()); reviewComment.setUpdateUserFullName(kcPerson.getFullName()); } } else { doUpdate = false; } } if (doUpdate) { businessObjectService.save(reviewComment); } } if (!deletedReviewComments.isEmpty()) { businessObjectService.delete(deletedReviewComments); } } protected abstract ProtocolSubmissionBase getSubmission(ProtocolBase protocol); public void setBusinessObjectService(BusinessObjectService businessObjectService) { this.businessObjectService = businessObjectService; } public void setCommitteeService(CommitteeServiceBase committeeService) { this.committeeService = committeeService; } /* * TODO: abstracted out during iacuc refactoring */ public void setProtocolFinderDao(ProtocolFinderDao protocolFinderDao) { this.protocolFinderDao = protocolFinderDao; } public void setRoleService(RoleService roleService) { this.roleService = roleService; } public void setDateTimeService(DateTimeService dateTimeService) { this.dateTimeService = dateTimeService; } private void getReviewerNameParams() { displayReviewerNameToActiveMembers = isDisplayReviewerName(getDisplayRevNameToActiveCmtMembersHook()); displayReviewerNameToPersonnel = isDisplayReviewerName(getDisplayRevNameToProtocolPersonnelHook()); displayReviewerNameToReviewers = isDisplayReviewerName(getDisplayRevNameToReviewersHook()); } protected abstract String getDisplayRevNameToActiveCmtMembersHook(); protected abstract String getDisplayRevNameToProtocolPersonnelHook(); protected abstract String getDisplayRevNameToReviewersHook(); /* * retrieve Display reviewer name parameter and compre with 'HIDE' */ private boolean isDisplayReviewerName(String paramName) { String param = parameterService.getParameterValueAsString(getProtocolDocumentBOClassHook(), paramName); return !StringUtils.equals(HIDE, param); } protected abstract Class<? extends ProtocolDocumentBase> getProtocolDocumentBOClassHook(); public void setParameterService(ParameterService parameterService) { this.parameterService = parameterService; } /** * * @see org.kuali.kra.irb.actions.reviewcomments.ReviewCommentsService#setHideReviewerName(org.kuali.kra.irb.ProtocolBase, int) */ public boolean setHideReviewerName(ProtocolBase protocol, int submissionNumber) { return setHideReviewerName(getReviewerComments(protocol.getProtocolNumber(), submissionNumber)); } public boolean setHideReviewerName(List<? extends ProtocolReviewableBase> reviewComments) { boolean isHide = true; setReviewerIds(reviewerIds); getReviewerNameParams(); for (ProtocolReviewableBase reviewComment : reviewComments) { if (canViewName(reviewComment)) { reviewComment.setDisplayReviewerName(true); isHide = false; } } return isHide; } public boolean isHidePrivateFinalFlagsForPI(List<? extends ProtocolReviewableBase> reviewComments) { boolean isHide = false; String principalId = GlobalVariables.getUserSession().getPrincipalId(); for (ProtocolReviewableBase reviewComment : reviewComments) { if (isProtocolPersonnel(reviewComment, principalId) && getReviewerCommentsView(reviewComment)) { isHide = true; break; } } return isHide; } public boolean setHideViewButton(List<PRA> reviewAttachments) { boolean isHide = true; getReviewerNameParams(); String principalId = GlobalVariables.getUserSession().getPrincipalId(); for (PRA reviewAttachment : reviewAttachments) { if (!reviewAttachment.isPrivateFlag() || !isProtocolPersonnel(reviewAttachment, principalId)) { reviewAttachment.setDisplayViewButton(true); isHide = false; } } return isHide; } private boolean canViewName(ProtocolReviewableBase reviewComment) { boolean canViewName = false; Person person = GlobalVariables.getUserSession().getPerson(); if (isAdmin(person.getPrincipalId()) || isCreator(reviewComment, person.getPrincipalName())) { canViewName = true; } else { // if protocol personnel, then only if display to personnel is set to true if (isProtocolPersonnelOrHasProtocolRole(reviewComment)) { if (isDisplayReviewerNameToPersonnel()) { canViewName = true; } } // must be non protocol personnel else if ((isDisplayReviewerNameToReviewers() && isReviewer(reviewComment, person.getPrincipalId())) || (isDisplayReviewerNameToActiveMembers() && getActiveMemberId(reviewComment) .contains(person.getPrincipalId()))) { // only if display to personnel is true or is not protocol personnel canViewName = true; } } return canViewName; } private boolean hasProtocolPermission(ProtocolReviewableBase reviewComment, String principalId) { return getProtocolAggregators(reviewComment).contains(principalId) || getProtocolViewers(reviewComment).contains(principalId); } private boolean isProtocolPersonnel(ProtocolReviewableBase reviewComment, String principalId) { return getPersonnelIds(reviewComment).contains(principalId); } /* * check if user is protocol personnel or has permission as aggregator or viewer */ private boolean isProtocolPersonnelOrHasProtocolRole(ProtocolReviewableBase reviewComment) { Person person = GlobalVariables.getUserSession().getPerson(); return getPersonnelIds(reviewComment).contains(person.getPrincipalId()) || getProtocolAggregators().contains(person.getPrincipalId()) || getProtocolViewers().contains(person.getPrincipalId()); } private List<String> getActiveMemberId(ProtocolReviewableBase reviewComment) { List<String> activeMemberIds = new ArrayList<String>(); List<CommitteeMembershipBase> members = new ArrayList<CommitteeMembershipBase>(); if (reviewComment.isReviewComment()) { members = ((CommitteeScheduleMinuteBase) reviewComment).getCommitteeSchedule().getParentCommittee().getCommitteeMemberships(); } else { members = ((PRA) reviewComment).getProtocol().getProtocolSubmission().getCommittee() .getCommitteeMemberships(); } for (CommitteeMembershipBase member : members) { if (member.isActive()) { if (StringUtils.isNotBlank(member.getPersonId())) { activeMemberIds.add(member.getPersonId()); } else { activeMemberIds.add(member.getRolodexId().toString()); } } } return activeMemberIds; } private List<String> getPersonnelIds(ProtocolReviewableBase reviewComment) { List<String> PersonnelIds = new ArrayList<String>(); if (reviewComment.getProtocol() != null) { for (ProtocolPersonBase person : reviewComment.getProtocol().getProtocolPersons()) { if (StringUtils.isNotBlank(person.getPersonId())) { PersonnelIds.add(person.getPersonId()); } else { PersonnelIds.add(person.getRolodexId().toString()); } } } return PersonnelIds; } private boolean isAdmin(String principalId) { return !CollectionUtils.isEmpty(getAdminIds()) && getAdminIds().contains(principalId); } /* * if the person a reviewer. */ private boolean isReviewer(ProtocolReviewableBase reviewComment, String principalId) { List<String> reviewerIds = getProtocolReviewerIds(reviewComment); return !reviewerIds.isEmpty() && reviewerIds.contains(principalId); } /* * if the person is comment creator. */ private boolean isCreator(ProtocolReviewableBase reviewComment, String userName) { return reviewComment.getCreateUser().equals(userName); } /* * get the reviewer ids for this submission */ private List<String> getProtocolReviewerIds(ProtocolReviewableBase reviewComment) { List<String> reviewerIds = new ArrayList<String>(); if (reviewComment.getProtocolId() != null) { // TODO : need to check if the submission number is ok to get this way reviewerIds = getProtocolReviewerIds(reviewComment.getProtocolId(), reviewComment.getProtocol().getProtocolSubmission().getSubmissionNumber()); } return reviewerIds; } /* * retrieve reviewer ids from db based on protocolid and submissionnumber */ private List<String> getProtocolReviewerIds(Long protocolId, int submissionNumber) { Map fieldValues = new HashMap(); fieldValues.put("protocolIdFk", protocolId); fieldValues.put("submissionNumber", submissionNumber); List<String> reviewerPersonIds = new ArrayList<String>(); for (ProtocolReviewer reviewer : (List<ProtocolReviewer>) businessObjectService.findMatching(getProtocolReviewClassHook(), fieldValues)) { reviewerPersonIds.add(reviewer.getPersonId()); } return reviewerPersonIds; } protected abstract Class<? extends ProtocolReviewer> getProtocolReviewClassHook(); /* * retrieve admins from role table */ private void populateAdmins() { adminIds = (Set<String>) roleService.getRoleMemberPrincipalIds("KC-UNT", getAdministratorRoleHook(), null); adminUserNames = new ArrayList<String>(); for (String id : adminIds) { KcPerson kcPerson = kcPersonService.getKcPersonByPersonId(id); adminUserNames.add(kcPerson.getUserName()); } } private Set<String> getProtocolAggregators() { if (CollectionUtils.isEmpty(aggregatorIds)) { aggregatorIds = (Set<String>) roleService.getRoleMemberPrincipalIds(getNamespaceHook(), getAggregatorRoleNameHook(), null); } return aggregatorIds; } protected abstract String getNamespaceHook(); protected abstract String getAggregatorRoleNameHook(); private Set<String> getProtocolAggregators(ProtocolReviewableBase minute) { if (CollectionUtils.isEmpty(aggregatorIds) && minute != null) { aggregatorIds = new HashSet<String>(); if (StringUtils.isNotBlank(minute.getProtocol().getProtocolNumber())) { Map<String, String> protocolAttr = new HashMap<String, String>(); protocolAttr.put(KcKimAttributes.PROTOCOL, minute.getProtocol().getProtocolNumber()); Set<String> protoResults = (Set<String>) roleService.getRoleMemberPrincipalIds(getNamespaceHook(), getAggregatorRoleNameHook(), new HashMap<String, String>(protocolAttr)); if (CollectionUtils.isNotEmpty(protoResults)) { aggregatorIds.addAll(protoResults); } } if (StringUtils.isNotBlank(minute.getProtocol().getLeadUnitNumber())) { Map<String, String> leadUnitAttr = new HashMap<String, String>(); leadUnitAttr.put(KcKimAttributes.UNIT_NUMBER, minute.getProtocol().getLeadUnitNumber()); Set<String> leadUnitResults = (Set<String>) roleService.getRoleMemberPrincipalIds(getNamespaceHook(), getAggregatorRoleNameHook(), new HashMap<String, String>(leadUnitAttr)); if (CollectionUtils.isNotEmpty(leadUnitResults)) { aggregatorIds.addAll(leadUnitResults); } } } return aggregatorIds; } private Set<String> getProtocolViewers() { if (CollectionUtils.isEmpty(viewerIds)) { viewerIds = (Set<String>) roleService.getRoleMemberPrincipalIds(getNamespaceHook(), getProtocolViewerRoleNameHook(), null); } return viewerIds; } protected abstract String getProtocolViewerRoleNameHook(); private Set<String> getProtocolViewers(ProtocolReviewableBase minute) { if (CollectionUtils.isEmpty(viewerIds) && minute != null) { viewerIds = new HashSet<String>(); if (StringUtils.isNotBlank(minute.getProtocol().getProtocolNumber())) { Map<String, String> protocolAttr = new HashMap<String, String>(); /* * IS the kim attr data for iacuc also under 'protocol'?? not sure, need to verify that */ protocolAttr.put(KcKimAttributes.PROTOCOL, minute.getProtocol().getProtocolNumber()); Set<String> protoResults = (Set<String>) roleService.getRoleMemberPrincipalIds(getNamespaceHook(), getProtocolViewerRoleNameHook(), new HashMap<String, String>(protocolAttr)); if (CollectionUtils.isNotEmpty(protoResults)) { viewerIds.addAll(protoResults); } } if (StringUtils.isNotBlank(minute.getProtocol().getLeadUnitNumber())) { Map<String, String> leadUnitAttr = new HashMap<String, String>(); leadUnitAttr.put(KcKimAttributes.UNIT_NUMBER, minute.getProtocol().getLeadUnitNumber()); Set<String> leadUnitResults = (Set<String>) roleService.getRoleMemberPrincipalIds(getNamespaceHook(), getProtocolViewerRoleNameHook(), new HashMap<String, String>(leadUnitAttr)); if (CollectionUtils.isNotEmpty(leadUnitResults)) { viewerIds.addAll(leadUnitResults); } } } return viewerIds; } public void setKimRoleManagementService(RoleService kimRoleManagementService) { this.roleService = kimRoleManagementService; } public void setKcPersonService(KcPersonService kcPersonService) { this.kcPersonService = kcPersonService; } public Set<String> getAdminIds() { if (CollectionUtils.isEmpty(adminIds)) { populateAdmins(); } return adminIds; } public void setAdminIds(Set<String> adminIds) { this.adminIds = adminIds; } public List<String> getAdminUserNames() { if (CollectionUtils.isEmpty(adminUserNames)) { populateAdmins(); } return adminUserNames; } public void setAdminUserNames(List<String> adminUserNames) { this.adminUserNames = adminUserNames; } public List<String> getReviewerIds() { return reviewerIds; } public void setReviewerIds(List<String> reviewerIds) { this.reviewerIds = reviewerIds; } public boolean isDisplayReviewerNameToPersonnel() { return displayReviewerNameToPersonnel; } public void setDisplayReviewerNameToPersonnel(boolean displayReviewerNameToPersonnel) { this.displayReviewerNameToPersonnel = displayReviewerNameToPersonnel; } public boolean isDisplayReviewerNameToReviewers() { return displayReviewerNameToReviewers; } public void setDisplayReviewerNameToReviewers(boolean displayReviewerNameToReviewers) { this.displayReviewerNameToReviewers = displayReviewerNameToReviewers; } public boolean isDisplayReviewerNameToActiveMembers() { return displayReviewerNameToActiveMembers; } public void setDisplayReviewerNameToActiveMembers(boolean displayReviewerNameToActiveMembers) { this.displayReviewerNameToActiveMembers = displayReviewerNameToActiveMembers; } /** * * This method determines if the current user is an active committee member * * @param minute * @param principalId * @return true if and active committee member, false otherwise. */ @SuppressWarnings("rawtypes") protected boolean isActiveCommitteeMember(ProtocolReviewableBase minute, String principalId) { String committeeId = ""; String scheduleId = ""; CommitteeScheduleBase committeeSchedule = minute.getCommitteeSchedule(); if( committeeSchedule != null) { committeeId = minute.getCommitteeSchedule().getParentCommittee().getCommitteeId(); scheduleId = minute.getCommitteeSchedule().getScheduleId(); } return isActiveCommitteeMember(committeeId, scheduleId, principalId); } @SuppressWarnings("unchecked") protected boolean isActiveCommitteeMember(String committeeId, String scheduleId, String principalId) { boolean result = false; List<CommitteeMembershipBase> committeeMembers = committeeService.getAvailableMembers(committeeId, scheduleId); if (CollectionUtils.isNotEmpty(committeeMembers)) { for (CommitteeMembershipBase member : committeeMembers) { if (StringUtils.equals(principalId, member.getPersonId())) { result = true; break; } } } return result; } /** * * This method determines if the current user is an active committee member using the commitee and schedule ids * obtained from the submission parameter * * @param submission * @param principalId * @return true if and active committee member, false otherwise. */ private boolean isActiveCommitteeMember(ProtocolSubmissionBase submission, String principalId) { String committeeId = submission.getCommitteeId(); String scheduleId = submission.getScheduleId(); return isActiveCommitteeMember(committeeId, scheduleId, principalId); } protected abstract Class<? extends ProtocolOnlineReviewBase> getProtocolOnlineReviewClassHook(); public void deleteReviewAttachment(List<PRA> reviewAttachments, int index, List<PRA> deletedReviewAttachments) { if (index >= 0 && index < reviewAttachments.size()) { PRA reviewAttachment = reviewAttachments.get(index); if (reviewAttachment.getReviewerAttachmentId() != null) { deletedReviewAttachments.add(reviewAttachment); } reviewAttachments.remove(index); } } public abstract void saveReviewAttachments(List<PRA> reviewAttachments, List<PRA> deletedReviewAttachments); public void addReviewAttachment(PRA newReviewAttachment, List<PRA> reviewAttachments, ProtocolBase protocol) { ProtocolSubmissionBase protocolSubmission = getSubmission(protocol); newReviewAttachment.setAttachmentId(getNextAttachmentId(protocol)); newReviewAttachment.setProtocolIdFk(protocol.getProtocolId()); newReviewAttachment.setProtocol(protocol); newReviewAttachment.setSubmissionIdFk(protocolSubmission.getSubmissionId()); newReviewAttachment.setCreateUser(GlobalVariables.getUserSession().getPrincipalName()); newReviewAttachment.setCreateTimestamp(dateTimeService.getCurrentTimestamp()); newReviewAttachment.setUpdateUser(GlobalVariables.getUserSession().getPrincipalName()); newReviewAttachment.setPersonId(GlobalVariables.getUserSession().getPrincipalId()); newReviewAttachment.setPrivateFlag(!newReviewAttachment.isProtocolPersonCanView()); // TO show update timestamp after 'add' newReviewAttachment.setUpdateTimestamp(dateTimeService.getCurrentTimestamp()); final AttachmentFile newFile = AttachmentFile.createFromFormFile(newReviewAttachment.getNewFile()); newReviewAttachment.setFile(newFile); // set to null, so the subsequent post will not creating new file again newReviewAttachment.setNewFile(null); reviewAttachments.add(newReviewAttachment); } /* * get next attachmentId. it seems coeus is just increasing by 1, no matter what protocol is. but attachment_id is only * number(3). so, need further investigation. */ private int getNextAttachmentId(ProtocolBase protocol) { Map fieldValues = new HashMap(); fieldValues.put("protocolIdFk", protocol.getProtocolId()); List<PRA> reviewAttachments = (List<PRA>) businessObjectService .findMatchingOrderBy(getProtocolReviewAttachmentClassHook(), fieldValues, "attachmentId", false); if (CollectionUtils.isEmpty(reviewAttachments)) { return 1; } else { return reviewAttachments.get(0).getAttachmentId() + 1; } } protected abstract Class<PRA> getProtocolReviewAttachmentClassHook(); @Override public void deleteAllReviewAttachments(List<PRA> reviewAttachments, List<PRA> deletedReviewAttachments) { for (PRA reviewerAttachment : reviewAttachments) { if (reviewerAttachment.getReviewerAttachmentId() != null) { deletedReviewAttachments.add(reviewerAttachment); } } reviewAttachments.clear(); } public ProtocolFinderDao getProtocolFinderDao() { return protocolFinderDao; } }
[ "shaloo@email.arizona.edu" ]
shaloo@email.arizona.edu
d89c608f247bb0c40438e9bb30bd63b1f83cc27f
31001ffbd2eb59a430627c97c15a22f65456d8c1
/src/main/java/ru/tsekhanovich/quiz/ClassicalMusic.java
38b66eb1969d3b08bfff37331c039a00a232705e
[]
no_license
IrinaTsekhanovich/SpringQuizApp
79922489b8cb0e76ad1a307ebab4a56f8e54ffd5
94ab82d7010cc93a59d3b5b6e64b8e42867a3b08
refs/heads/master
2023-01-05T10:28:30.434199
2020-10-21T17:21:53
2020-10-21T17:21:53
306,046,652
0
0
null
null
null
null
UTF-8
Java
false
false
169
java
package ru.tsekhanovich.quiz; public class ClassicalMusic implements Music { @Override public String getSong() { return "Hungarian Rhapsody"; } }
[ "ira.tsekhanovich@yandex.ru" ]
ira.tsekhanovich@yandex.ru
e324d1f05c91d6b580748434b1b885251c266f05
fa91450deb625cda070e82d5c31770be5ca1dec6
/Diff-Raw-Data/2/2_4688485c7b61634666e55b5a05f8a87f5e58f537/Concatenate/2_4688485c7b61634666e55b5a05f8a87f5e58f537_Concatenate_s.java
4a7ec326467472473fecfd7fce554f65a9645f9c
[]
no_license
zhongxingyu/Seer
48e7e5197624d7afa94d23f849f8ea2075bcaec0
c11a3109fdfca9be337e509ecb2c085b60076213
refs/heads/master
2023-07-06T12:48:55.516692
2023-06-22T07:55:56
2023-06-22T07:55:56
259,613,157
6
2
null
2023-06-22T07:55:57
2020-04-28T11:07:49
null
UTF-8
Java
false
false
4,652
java
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. */ package pt.webdetails.cdf.dd.packager; import java.io.BufferedReader; import java.io.ByteArrayInputStream; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.InputStream; import java.io.SequenceInputStream; import java.io.UnsupportedEncodingException; import java.util.Enumeration; import java.util.NoSuchElementException; import org.apache.commons.io.IOUtils; import org.apache.commons.lang.StringUtils; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; /** * * @author pdpi */ class Concatenate { private static final Log logger = LogFactory.getLog(Concatenate.class); public static InputStream concat(File[] files) { ListOfFiles mylist = new ListOfFiles(files); return new SequenceInputStream(mylist); } public static InputStream concat(File[] files, String rootpath) { if (rootpath == null || StringUtils.isEmpty(rootpath)) { return concat(files); } StringBuffer buffer = new StringBuffer(); for (File file : files) { //TODO: review this! BufferedReader fr = null; try { StringBuffer tmp = new StringBuffer(); fr = new BufferedReader(new FileReader(file)); while (fr.ready()) { tmp.append(fr.readLine()); } rootpath = rootpath.replaceAll("\\\\", "/").replaceAll("/+", "/"); // Quick and dirty hack: if the path aims at the custom components, we point at getResource, else we point at the static resource folders String filePath = file.getPath().replaceAll("\\\\", "/"); // Fix windows slashes' String fileLocation = ""; if (filePath.contains("resources/custom")) { fileLocation = filePath.replaceAll(file.getName(), "") // Remove this file's name .replaceAll(rootpath, "../"); // //fileLocation = ""; } else if (filePath.matches(".*pentaho-cdf-dd/css/.*/.*$")) { fileLocation = filePath.replaceAll(file.getName(), "") // Remove this file's name .replaceAll(rootpath, "../"); } else if (filePath.matches(".*cde/components/.*/.*$")) { fileLocation = "../../res/" + filePath.substring(filePath.indexOf("cde/components/")).replaceAll(file.getName() + "$", ""); } else if (filePath.matches(".*system/c??.*")) fileLocation = "../" + filePath.substring(filePath.indexOf("system/")).replaceAll(file.getName() + "$", ""); buffer.append(tmp.toString() // // We need to replace all the URL formats .replaceAll("(url\\(['\"]?)", "$1" + fileLocation.replaceAll("/+", "/"))); // Standard URLs } catch (FileNotFoundException e) { logger.error("concat: File " + file.getAbsolutePath() + " doesn't exist! Skipping..."); } catch (Exception e) { logger.error("concat: Error while attempting to concatenate file " + file.getAbsolutePath() + ". Trying to continue...", e); } finally { IOUtils.closeQuietly(fr); } } try { return new ByteArrayInputStream(buffer.toString().getBytes("UTF8")); } catch (UnsupportedEncodingException e) { logger.error(e); return null; } } } class ListOfFiles implements Enumeration<FileInputStream> { private File[] listOfFiles; private int current = 0; public ListOfFiles(File[] listOfFiles) { this.listOfFiles = listOfFiles; } public boolean hasMoreElements() { if (current < listOfFiles.length) { return true; } else { return false; } } public FileInputStream nextElement() { FileInputStream in = null; if (!hasMoreElements()) { throw new NoSuchElementException("No more files."); } else { File nextElement = listOfFiles[current]; current++; try { in = new FileInputStream(nextElement); } catch (FileNotFoundException e) { System.err.println("ListOfFiles: Can't open " + nextElement); } } return in; } }
[ "yuzhongxing88@gmail.com" ]
yuzhongxing88@gmail.com
51b807db875a378d163c076563d93e11da2960e1
e5fce2ef8f4232154217f907248eced3c6b6f8f6
/src/main/java/com/systemmanager/configurations/entity/ConfigurationMap.java
6fc5e2f9c792c6bf1449443b58e8eb925e01672b
[]
no_license
IbrahimM14/ConfigurationManager2
71b2db2fc9339a1375ad7bf4259c1f3176e281e8
561d6ce363802de86230846d1edd5300172185a3
refs/heads/master
2022-10-17T10:25:45.977273
2020-06-12T08:04:01
2020-06-12T08:04:01
null
0
0
null
null
null
null
UTF-8
Java
false
false
7,491
java
package com.systemmanager.configurations.entity; //***** POJO CLASS **********/ // This is basically the POJO Class which contains the format of the DDB Table/// // Each Java Property (eg. domain,realm,etc.) corresponds to the Attributes of the items in Table import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Set; import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBAttribute; import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBAutoGenerated; import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBAutoGeneratedKey; import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBDocument; import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBHashKey; import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBIgnore; import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBRangeKey; import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBTable; import com.google.common.base.Joiner; @DynamoDBTable(tableName="ConfigurationTable") public class ConfigurationMap { private String domain; private String realm; private String cfgKey; private String stringValue; private Integer integerValue; private Double doubleValue; private MapValue mapValue; private String domainRealm; @DynamoDBIgnore public String getDomainName() {return domain;} public void setDomainName(String domain) {this.domain= domain; } @DynamoDBIgnore public String getRealm() {return realm;} public void setRealm(String realm) {this.realm = realm; } @DynamoDBHashKey(attributeName="DomainRealm") public String getDomainRealm() { return domainRealm; } public void setDomainRealm(String domainRealm) {this.domainRealm = domainRealm; } @DynamoDBRangeKey(attributeName="CfgKey") public String getCfgKey() {return cfgKey; } public void setCfgKey(String cfgKey) { this.cfgKey= cfgKey; } @DynamoDBAttribute(attributeName="StringValue") public String getStringValue() {return stringValue; } public void setStringValue(String stringValue) { this.stringValue= stringValue; } @DynamoDBAttribute(attributeName="IntegerValue") public Integer getIntegerValue() {return integerValue; } public void setIntegerValue(Integer integerValue) { this.integerValue= integerValue; } @DynamoDBAttribute(attributeName="DoubleValue") public Double getDoubleValue() {return doubleValue; } public void setDoubleValue(Double doubleValue) { this.doubleValue= doubleValue; } @DynamoDBAttribute(attributeName="MapValue") public MapValue getMapValue() { return mapValue;} public void setMapValue(MapValue mapValue) {this.mapValue = mapValue;} // Additional properties go here. @DynamoDBDocument public static class MapValue { private String credentials; private String url; private String reservationRequestsqueueURL; private String manualApprovalqueueURL; private String crawlCompletionResponsequeueURL; private String subscriptionsAllocationqueueURL; private String reallocationEventstopicArn; private String subscriptionEventstopicArn; private String connectTimeout; private String maxConnectRetries; private String maxTotalHttpConnections; private String maxHttpConnectionsPerHost; private String closeAfterUse; private String connectionStaleCheckingEnabled; private String maxReplyThreads; @DynamoDBAttribute(attributeName = "Credentials") public String getCredentials() { return credentials; } public void setCredentials(String credentials) { this.credentials = credentials; } @DynamoDBAttribute(attributeName = "URL") public String getUrl() { return url; } public void setUrl(String url) { this.url = url; } @DynamoDBAttribute(attributeName = "ReservationRequestsqueueURL") public String getReservationRequestsqueueURL() { return reservationRequestsqueueURL; } public void setReservationRequestsqueueURL(String reservationRequestsqueueURL) { this.reservationRequestsqueueURL = reservationRequestsqueueURL; } @DynamoDBAttribute(attributeName = "ManualApprovalqueueURL") public String getManualApprovalqueueURL() { return manualApprovalqueueURL; } public void setManualApprovalqueueURL(String manualApprovalqueueURL) { this.manualApprovalqueueURL = manualApprovalqueueURL; } @DynamoDBAttribute(attributeName = "CrawlCompletionResponsequeueURL") public String getCrawlCompletionResponsequeueURL() { return crawlCompletionResponsequeueURL; } public void setCrawlCompletionResponsequeueURL(String crawlCompletionResponsequeueURL) { this.crawlCompletionResponsequeueURL = crawlCompletionResponsequeueURL; } @DynamoDBAttribute(attributeName = "SubscriptionsAllocationqueueURL") public String getSubscriptionsAllocationqueueURL() { return subscriptionsAllocationqueueURL; } public void setSubscriptionsAllocationqueueURL(String subscriptionsAllocationqueueURL) { this.subscriptionsAllocationqueueURL = subscriptionsAllocationqueueURL; } @DynamoDBAttribute(attributeName = "ReallocationEventstopicArn") public String getReallocationEventstopicArn() {return reallocationEventstopicArn;} public void setReallocationEventstopicArn(String reallocationEventstopicArn) {this.reallocationEventstopicArn = reallocationEventstopicArn;} @DynamoDBAttribute(attributeName = "SubscriptionEventstopicArn") public String getSubscriptionEventstopicArn() {return subscriptionEventstopicArn;} public void setSubscriptionEventstopicArn(String subscriptionEventstopicArn) {this.subscriptionEventstopicArn = subscriptionEventstopicArn;} @DynamoDBAttribute(attributeName = "ConnectTimeout") public String getConnectTimeout() {return connectTimeout;} public void setConnectTimeout(String connectTimeout) {this.connectTimeout = connectTimeout;} @DynamoDBAttribute(attributeName = "MaxConnectRetries") public String getMaxConnectRetries() {return maxConnectRetries;} public void setMaxConnectRetries(String maxConnectRetries) {this.maxConnectRetries = maxConnectRetries;} @DynamoDBAttribute(attributeName = "MaxTotalHttpConnections") public String getMaxTotalHttpConnections() {return maxTotalHttpConnections;} public void setMaxTotalHttpConnections(String maxTotalHttpConnections) {this.maxTotalHttpConnections = maxTotalHttpConnections;} @DynamoDBAttribute(attributeName = "MaxHttpConnectionsPerHost") public String getMaxHttpConnectionsPerHost() {return maxHttpConnectionsPerHost;} public void setMaxHttpConnectionsPerHost(String maxHttpConnectionsPerHost) {this.maxHttpConnectionsPerHost = maxHttpConnectionsPerHost;} @DynamoDBAttribute(attributeName = "CloseAfterUse") public String getCloseAfterUse() {return closeAfterUse;} public void setCloseAfterUse(String closeAfterUse) {this.closeAfterUse = closeAfterUse;} @DynamoDBAttribute(attributeName = "ConnectionStaleCheckingEnabled") public String getConnectionStaleCheckingEnabled() {return connectionStaleCheckingEnabled;} public void setConnectionStaleCheckingEnabled(String connectionStaleCheckingEnabled) {this.connectionStaleCheckingEnabled = connectionStaleCheckingEnabled;} @DynamoDBAttribute(attributeName = "MaxReplyThreads") public String getMaxReplyThreads() {return maxReplyThreads;} public void setMaxReplyThreads(String maxReplyThreads) {this.maxReplyThreads = maxReplyThreads;} } }
[ "harishdewangan7@gmail.com" ]
harishdewangan7@gmail.com
1e6d5a660abf51ac4cf153d5cc519f5acfc1105f
fa91450deb625cda070e82d5c31770be5ca1dec6
/Diff-Raw-Data/5/5_117eca8c14e3906d360815aef21ec8c6570ece13/SearchExtension/5_117eca8c14e3906d360815aef21ec8c6570ece13_SearchExtension_s.java
35f4b6516e3ffad510aeebd8ab74ebc1addbf34d
[]
no_license
zhongxingyu/Seer
48e7e5197624d7afa94d23f849f8ea2075bcaec0
c11a3109fdfca9be337e509ecb2c085b60076213
refs/heads/master
2023-07-06T12:48:55.516692
2023-06-22T07:55:56
2023-06-22T07:55:56
259,613,157
6
2
null
2023-06-22T07:55:57
2020-04-28T11:07:49
null
UTF-8
Java
false
false
4,755
java
package com.whysearchtwice.rexster.extension; import java.util.ArrayList; import java.util.Calendar; import java.util.HashMap; import java.util.List; import java.util.Map; import com.tinkerpop.blueprints.Direction; import com.tinkerpop.blueprints.Graph; import com.tinkerpop.blueprints.Vertex; import com.tinkerpop.gremlin.groovy.Gremlin; import com.tinkerpop.gremlin.java.GremlinPipeline; import com.tinkerpop.pipes.Pipe; import com.tinkerpop.pipes.util.iterators.SingleIterator; import com.tinkerpop.rexster.RexsterResourceContext; import com.tinkerpop.rexster.extension.ExtensionDefinition; import com.tinkerpop.rexster.extension.ExtensionDescriptor; import com.tinkerpop.rexster.extension.ExtensionNaming; import com.tinkerpop.rexster.extension.ExtensionPoint; import com.tinkerpop.rexster.extension.ExtensionRequestParameter; import com.tinkerpop.rexster.extension.ExtensionResponse; import com.tinkerpop.rexster.extension.HttpMethod; import com.tinkerpop.rexster.extension.RexsterContext; import com.whysearchtwice.container.PageView; @ExtensionNaming(name = SearchExtension.NAME, namespace = AbstractParsleyExtension.NAMESPACE) public class SearchExtension extends AbstractParsleyExtension { public static final String NAME = "search"; @ExtensionDefinition(extensionPoint = ExtensionPoint.GRAPH, method = HttpMethod.GET) @ExtensionDescriptor(description = "Get the results of a search") public ExtensionResponse searchVertices( @RexsterContext RexsterResourceContext context, @RexsterContext Graph graph, @ExtensionRequestParameter(name = "userGuid", defaultValue = "", description = "The user to retrieve information for") String userGuid, @ExtensionRequestParameter(name = "domain", defaultValue = "", description = "Retrieve pages with this domain") String domain, @ExtensionRequestParameter(name = "openTime", defaultValue = "", description = "The middle of a time based query") String openTime, @ExtensionRequestParameter(name = "timeRange", defaultValue = "30", description = "The range of time to search around openTime (openTime +- timeRange/2)") Integer timeRange, @ExtensionRequestParameter(name = "timeRangeUnits", defaultValue = "minutes", description = "hours, minutes, seconds") String units) { // Catch some errors if (openTime.equals("")) { return ExtensionResponse.error("You should specify an openTime"); } else if (userGuid.equals("")) { return ExtensionResponse.error("You should specify a userGuid"); } Vertex user = graph.getVertex(userGuid); if (user == null) { return ExtensionResponse.error("Invalid userGuid"); } // Manipulate parameters Calendar pageOpenTime = Calendar.getInstance(); pageOpenTime.setTimeInMillis(Long.parseLong(openTime)); timeRange = adjustTimeRange(timeRange, units); List<PageView> pages = new ArrayList<PageView>(); // Perform search Pipe pipe = Gremlin.compile("_().out('owns').out('viewed')"); pipe.setStarts(new SingleIterator<Vertex>(user)); for (Object result : pipe) { if (result instanceof Vertex) { Vertex v = (Vertex) result; PageView pv = new PageView(v); // Add a reference to the parent and successors if edges exist for (Vertex neighbor : v.getVertices(Direction.OUT, "childOf")) { pv.setProperty("parent", neighbor.getId()); } for (Vertex neighbor : v.getVertices(Direction.OUT, "successorTo")) { pv.setProperty("predecessor", neighbor.getId()); } pages.add(pv); } } // Turn list into JSON to return String listAsJSON = "["; for(PageView pv : pages) { listAsJSON += pv.toString() + ", "; } listAsJSON = listAsJSON.substring(0, listAsJSON.length()-2); listAsJSON += "]"; // Map to store the results Map<String, String> map = new HashMap<String, String>(); map.put("results", listAsJSON); return ExtensionResponse.ok(map); } private int adjustTimeRange(int timeRange, String units) { if (units.equals("seconds")) { return timeRange * 1; } else if (units.equals("minutes")) { return timeRange * 1 * 60; } else if (units.equals("hours")) { return timeRange * 1 * 60 * 60; } else { return timeRange; } } }
[ "yuzhongxing88@gmail.com" ]
yuzhongxing88@gmail.com
dcd4e23445b96766e4413f914bb06d1a930b5fd6
3c2d928a5a1fe2a4611cbdde407e52632583def6
/MantenimientoWebApp/MantenimientoWebApp-ejb/src/main/java/sv/ues/TPI_2018/beans/PrioridadFacade.java
73b3b5f3bb070d6c215d588e7ed0b305bc1def31
[]
no_license
Josesvx/TPI
7f3996a895159161cb72cfeafe01518a36b7a54e
02182d15404a78387fb793c0efb819df4f7c576f
refs/heads/master
2020-03-13T19:40:33.858103
2018-04-28T06:17:19
2018-04-28T06:17:19
131,258,410
0
0
null
2018-04-27T10:54:47
2018-04-27T06:59:30
Java
UTF-8
Java
false
false
797
java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package sv.ues.TPI_2018.beans; import sv.ues.TPI_2018.beans.AbstractFacade; import javax.ejb.Stateless; import javax.persistence.EntityManager; import javax.persistence.PersistenceContext; import sv.ues.TPI_2018.entities.Prioridad; /** * * @author joker */ @Stateless public class PrioridadFacade extends AbstractFacade<Prioridad> implements PrioridadFacadeLocal { @PersistenceContext(unitName = "MantPU") private EntityManager em; @Override protected EntityManager getEntityManager() { return em; } public PrioridadFacade() { super(Prioridad.class); } }
[ "kejoromo1998@gmail.com" ]
kejoromo1998@gmail.com
244d5d9652b0a97568ff18de8ab40de042667587
626977e027f7909ebe923bdebae49866c038ed45
/src/main/java/org/zju/electric_factory/vo/EnergyCost.java
36c271bbb77bff5de7ac84840ca321e3a70b6c74
[]
no_license
VincentFxz/Electric_Managment
7053bbd31f2b441549d72e3864f5550fd7976d29
ea9a41a651940b31d527128da41af9477c0ca559
refs/heads/deve
2022-12-20T19:54:45.000967
2013-10-20T05:39:43
2013-10-20T05:39:43
5,270,583
1
0
null
2022-12-16T00:47:32
2012-08-02T09:21:17
JavaScript
UTF-8
Java
false
false
607
java
package org.zju.electric_factory.vo; import java.util.Date; public class EnergyCost { private String ammeterName; private float energyCost; private Date computeDate; public String getAmmeterName() { return ammeterName; } public void setAmmeterName(String ammeterName) { this.ammeterName = ammeterName; } public Date getComputeDate() { return computeDate; } public void setComputeDate(Date computeDate) { this.computeDate = computeDate; } public float getEnergyCost() { return energyCost; } public void setEnergyCost(float energyCost) { this.energyCost = energyCost; } }
[ "vincent.fxz@gmail.com" ]
vincent.fxz@gmail.com
38b8bee39a9ebb003cbf9387c8252a900c31d6cd
c8851674fcaa87f59b7823e297967a99a1ce3651
/src/main/java/com/bisket/engine/entity/InternationalConferenceFacility.java
2ff663da5fd0480e94b253dc673db6223d0a7e4e
[]
no_license
soohyeon317/bisket-engine
1c2244a49d37e2e6a1822bc9547e75a909b68eac
402c683112a4a15a13e3b8e6ad54e7d9b4d858dc
refs/heads/master
2023-01-04T10:22:41.762898
2020-11-04T15:35:54
2020-11-04T15:35:54
299,330,872
0
0
null
null
null
null
UTF-8
Java
false
false
8,062
java
package com.bisket.engine.entity; import lombok.AllArgsConstructor; import lombok.Data; import lombok.EqualsAndHashCode; import lombok.NoArgsConstructor; import javax.persistence.Column; import javax.persistence.DiscriminatorValue; import javax.persistence.Entity; @Entity @DiscriminatorValue("INTERNATIONAL_CONFERENCE_FACILITY") @EqualsAndHashCode(callSuper = true) @Data @NoArgsConstructor @AllArgsConstructor public class InternationalConferenceFacility extends Business { private String cultureSportsBusinessLineName; private String culturalBusinessOperatorClassificationName; private String regionClassificationName; private String buildingFloorCount; private String environmentName; @Column(columnDefinition = "TEXT") private String productionHandlingItemContent; private String insuranceOrganizationName; private String buildingUseName; private String groundFloorCount; private String basementFloorCount; private String guestRoomCount; private String annualBuildingArea; private String businessEnglishName; @Column(columnDefinition = "TEXT") private String businessEnglishAddress; private String shipTonnage; private String shipCount; @Column(columnDefinition = "TEXT") private String shipInformation; private String stageArea; private String seatingCapacity; private String souvenirKind; private String meetingRoomSeatingCapacity; private String facilityArea; @Column(columnDefinition = "TEXT") private String rideCountDetails; private String amusementFacilityCount; private String broadcastingFacilityFlag; private String powerProductionFacilityFlag; private String medicalOfficeFlag; private String informationDeskFlag; private String plannedTravelInsuranceStartDate; private String plannedTravelInsuranceEndDate; private String capital; private String insuranceStartDate; private String insuranceEndDate; @Column(columnDefinition = "TEXT") private String additionalFacilityDetails; private String facilityScale; public void getAndSetIdentification(InternationalConferenceFacility other) { this.setId(other.getId()); this.setCreatedAt(other.getCreatedAt()); this.setModifiedAt(other.getModifiedAt()); } public void update(InternationalConferenceFacility other) { // 개방서비스명 this.setOpenServiceName(other.getOpenServiceName()); // 인허가일자 this.setLicensingDate(other.getLicensingDate()); // 인허가취소일자 this.setLicensingCancelDate(other.getLicensingCancelDate()); // 영업상태코드 this.setBusinessStatusCode(other.getBusinessStatusCode()); // 영업상태명 this.setBusinessStatusName(other.getBusinessStatusName()); // 상세영업상태코드 this.setDetailedBusinessStatusCode(other.getDetailedBusinessStatusCode()); // 상세영업상태명 this.setDetailedBusinessStatusName(other.getDetailedBusinessStatusName()); // 폐업일자 this.setCloseDate(other.getCloseDate()); // 휴업시작일자 this.setIdleStartDate(other.getIdleStartDate()); // 휴업종료일자 this.setIdleEndDate(other.getIdleEndDate()); // 재개업일자 this.setReopenDate(other.getReopenDate()); // 소재지전화번호 this.setSitePhoneNumber(other.getSitePhoneNumber()); // 소재지면적 this.setSiteArea(other.getSiteArea()); // 소재지우편번호 this.setSitePostCode(other.getSitePostCode()); // 소재지전체주소 this.setSiteFullAddress(other.getSiteFullAddress()); // 도로명우편번호 this.setRoadNamePostCode(other.getRoadNamePostCode()); // 도로명전체주소 this.setRoadNameFullAddress(other.getRoadNameFullAddress()); // 사업장명 this.setBusinessPlaceName(other.getBusinessPlaceName()); // 최종수정시점 this.setLastModificationTime(other.getLastModificationTime()); // 데이터갱신구분 this.setDataUpdateClassification(other.getDataUpdateClassification()); // 데이터갱신일자 this.setDataUpdateDate(other.getDataUpdateDate()); // 업태구분명 this.setBusinessTypeClassificationName(other.getBusinessTypeClassificationName()); // 좌표정보(X) this.setXCoordinate(other.getXCoordinate()); // 좌표정보(Y) this.setYCoordinate(other.getYCoordinate()); // 문화체육업종명 this.setCultureSportsBusinessLineName(other.getCultureSportsBusinessLineName()); // 문화사업자구분명 this.setCulturalBusinessOperatorClassificationName(other.getCulturalBusinessOperatorClassificationName()); // 지역구분명 this.setRegionClassificationName(other.getRegionClassificationName()); // 총층수 this.setBuildingFloorCount(other.getBuildingFloorCount()); // 주변환경명 this.setEnvironmentName(other.getEnvironmentName()); // 제작취급품목내용 this.setProductionHandlingItemContent(other.getProductionHandlingItemContent()); // 보험기관명 this.setInsuranceOrganizationName(other.getInsuranceOrganizationName()); // 건물용도명 this.setBuildingUseName(other.getBuildingUseName()); // 지상층수 this.setGroundFloorCount(other.getGroundFloorCount()); // 지하층수 this.setBasementFloorCount(other.getBasementFloorCount()); // 객실수 this.setGuestRoomCount(other.getGuestRoomCount()); // 건축연면적 this.setAnnualBuildingArea(other.getAnnualBuildingArea()); // 영문상호명 this.setBusinessEnglishName(other.getBusinessEnglishName()); // 영문상호주소 this.setBusinessEnglishAddress(other.getBusinessEnglishAddress()); // 선박총톤수 this.setShipTonnage(other.getShipTonnage()); // 선박척수 this.setShipCount(other.getShipCount()); // 선박제원 this.setShipInformation(other.getShipInformation()); // 무대면적 this.setStageArea(other.getStageArea()); // 좌석수 this.setSeatingCapacity(other.getSeatingCapacity()); // 기념품종류 this.setSouvenirKind(other.getSouvenirKind()); // 회의실별동시수용인원 this.setMeetingRoomSeatingCapacity(other.getMeetingRoomSeatingCapacity()); // 시설면적 this.setFacilityArea(other.getFacilityArea()); // 놀이기구수내역 this.setRideCountDetails(other.getRideCountDetails()); // 놀이시설수 this.setAmusementFacilityCount(other.getAmusementFacilityCount()); // 방송시설유무 this.setBroadcastingFacilityFlag(other.getBroadcastingFacilityFlag()); // 발전시설유무 this.setPowerProductionFacilityFlag(other.getPowerProductionFacilityFlag()); // 의무실유무 this.setMedicalOfficeFlag(other.getMedicalOfficeFlag()); // 안내소유무 this.setInformationDeskFlag(other.getInformationDeskFlag()); // 기획여행보험시작일자 this.setPlannedTravelInsuranceStartDate(other.getPlannedTravelInsuranceStartDate()); // 기획여행보험종료일자 this.setPlannedTravelInsuranceEndDate(other.getPlannedTravelInsuranceEndDate()); // 자본금 this.setCapital(other.getCapital()); // 보험시작일자 this.setInsuranceStartDate(other.getInsuranceStartDate()); // 보험종료일자 this.setInsuranceEndDate(other.getInsuranceEndDate()); // 부대시설내역 this.setAdditionalFacilityDetails(other.getAdditionalFacilityDetails()); // 시설규모 this.setFacilityScale(other.getFacilityScale()); } }
[ "tngus90!" ]
tngus90!
dffbac6ea9d08e469bbed6d93b20c42db77cc704
a00326c0e2fc8944112589cd2ad638b278f058b9
/src/main/java/000/143/940/CWE789_Uncontrolled_Mem_Alloc__max_value_HashMap_74b.java
e95bcd3bb6e414948cac809081228b186c7025c7
[]
no_license
Lanhbao/Static-Testing-for-Juliet-Test-Suite
6fd3f62713be7a084260eafa9ab221b1b9833be6
b095b11c7cb6d4a5bb2b76181e35d6ee00e96e68
refs/heads/master
2020-08-24T13:34:04.004149
2019-10-25T09:26:00
2019-10-25T09:26:00
216,822,684
0
1
null
2019-11-08T09:51:54
2019-10-22T13:37:13
Java
UTF-8
Java
false
false
1,413
java
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE789_Uncontrolled_Mem_Alloc__max_value_HashMap_74b.java Label Definition File: CWE789_Uncontrolled_Mem_Alloc.int.label.xml Template File: sources-sink-74b.tmpl.java */ /* * @description * CWE: 789 Uncontrolled Memory Allocation * BadSource: max_value Set data to a hardcoded value of Integer.MAX_VALUE * GoodSource: A hardcoded non-zero, non-min, non-max, even number * Sinks: HashMap * BadSink : Create a HashMap using data as the initial size * Flow Variant: 74 Data flow: data passed in a HashMap from one method to another in different source files in the same package * * */ import java.util.HashMap; public class CWE789_Uncontrolled_Mem_Alloc__max_value_HashMap_74b { public void badSink(HashMap<Integer,Integer> dataHashMap ) throws Throwable { int data = dataHashMap.get(2); /* POTENTIAL FLAW: Create a HashMap using data as the initial size. data may be very large, creating memory issues */ HashMap intHashMap = new HashMap(data); } /* goodG2B() - use goodsource and badsink */ public void goodG2BSink(HashMap<Integer,Integer> dataHashMap ) throws Throwable { int data = dataHashMap.get(2); /* POTENTIAL FLAW: Create a HashMap using data as the initial size. data may be very large, creating memory issues */ HashMap intHashMap = new HashMap(data); } }
[ "anhtluet12@gmail.com" ]
anhtluet12@gmail.com
33d54c3bbbae2f529bf65041d3ffb3e77785d385
b73bbe9c943543f89b6a3ae260942af12e45a62c
/src/main/java/com/act/activiti/dao/MembershipDao.java
a60a9a9412de453da573fc683fb7685bf3100f13
[]
no_license
ZeroOneSummer/springboot-activiti
4345e5f6c632ad972716213da42cd8fed23e343d
ed3f2438c9afabc99e551075bada4dd873de16ae
refs/heads/master
2020-04-24T08:45:44.596330
2019-02-22T08:18:59
2019-02-22T08:18:59
171,840,908
0
0
null
null
null
null
UTF-8
Java
false
false
143
java
package com.act.activiti.dao; import com.act.activiti.entity.Membership; public interface MembershipDao { Membership find(String userId); }
[ "jiangping@dimaidt.com" ]
jiangping@dimaidt.com
a5b7cb10c8286d019b17e9d3ad8e5838a38abca4
585b32aa908a603aed56565f54e0e4bc44e3a9e9
/fastutil-6.4.6/src/it/unimi/dsi/fastutil/objects/AbstractReference2ObjectFunction.java
64ce8cf88a264108b125640c7e93a7854b51670b
[ "Apache-2.0" ]
permissive
commoncrawl/example-languageentropy
212008c219f2a2822321ca4e02bd35c4fb7eff1d
0653cf112f1c16dec4b16f4503feba6b100a7440
refs/heads/master
2021-01-16T23:13:59.123943
2013-01-15T11:25:11
2013-01-15T11:25:11
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,990
java
/* Generic definitions */ /* Assertions (useful to generate conditional code) */ /* Current type and class (and size, if applicable) */ /* Value methods */ /* Interfaces (keys) */ /* Interfaces (values) */ /* Abstract implementations (keys) */ /* Abstract implementations (values) */ /* Static containers (keys) */ /* Static containers (values) */ /* Implementations */ /* Synchronized wrappers */ /* Unmodifiable wrappers */ /* Other wrappers */ /* Methods (keys) */ /* Methods (values) */ /* Methods (keys/values) */ /* Methods that have special names depending on keys (but the special names depend on values) */ /* Equality */ /* Object/Reference-only definitions (keys) */ /* Object/Reference-only definitions (values) */ /* * Copyright (C) 2002-2012 Sebastiano Vigna * * 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 it.unimi.dsi.fastutil.objects; /** An abstract class providing basic methods for functions implementing a type-specific interface. * * <P>Optional operations just throw an {@link * UnsupportedOperationException}. Generic versions of accessors delegate to * the corresponding type-specific counterparts following the interface rules * (they take care of returning <code>null</code> on a missing key). * * <P>This class handles directly a default return * value (including {@linkplain #defaultReturnValue() methods to access * it}). Instances of classes inheriting from this class have just to return * <code>defRetValue</code> to denote lack of a key in type-specific methods. The value * is serialized. * * <P>Implementing subclasses have just to provide type-specific <code>get()</code>, * type-specific <code>containsKey()</code>, and <code>size()</code> methods. * */ public abstract class AbstractReference2ObjectFunction <K,V> implements Reference2ObjectFunction <K,V>, java.io.Serializable { public static final long serialVersionUID = -4940583368468432370L; protected AbstractReference2ObjectFunction() {} /** * The default return value for <code>get()</code>, <code>put()</code> and * <code>remove()</code>. */ protected V defRetValue; public void defaultReturnValue( final V rv ) { defRetValue = rv; } public V defaultReturnValue() { return defRetValue; } public V put( K key, V value ) { throw new UnsupportedOperationException(); } public V remove( Object key ) { throw new UnsupportedOperationException(); } public void clear() { throw new UnsupportedOperationException(); } }
[ "participant@hadoop-vm.(none)" ]
participant@hadoop-vm.(none)
9101a446866072803141e66feb57aa27e9bf367c
9f9b6b50df0e0cf1f54fe4918f9d6e2984ab30b4
/src/main/java/com/app/db/repository/ShopRepository.java
8bd4dc5ce1ca13a59dec8d52f9f364b429e0cf03
[]
no_license
nammishr/SpringDemo
7293db1e9b6940ef8a55061308f0db0c51fae751
bbfced6f6dd947dfd56bd0c312fe4ee28f8d0d47
refs/heads/master
2021-04-28T20:01:31.570887
2018-02-18T03:33:24
2018-02-18T03:33:24
121,912,661
0
0
null
null
null
null
UTF-8
Java
false
false
354
java
package com.app.db.repository; import com.app.model.Shop; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.repository.CrudRepository; import org.springframework.stereotype.Component; import org.springframework.stereotype.Repository; public interface ShopRepository extends JpaRepository<Shop, String> { }
[ "namratakec23@Namratas-MacBook-Air.local" ]
namratakec23@Namratas-MacBook-Air.local
f16f204387d484281d4a67f7082f0e709f406e41
218b34660a7470e637771e0b8b42205eec7cb9c2
/0099_Recover Binary Search Tree/RecoverBinarySearchTree.java
3f4ad36bfea55e55eac0b0cafeb3e9eedfe00192
[]
no_license
jiajionline/LeetcodeSolutionWithMultipleLanguages
9ca43aad9085ad2cadd70a39540386bb70d4c64e
705c13b2a8868d7380c9d8f529cad790fe0ee07c
refs/heads/master
2023-09-02T12:46:54.204888
2023-09-01T20:59:08
2023-09-01T20:59:08
88,291,206
37
25
null
2020-10-20T10:42:58
2017-04-14T18:07:49
Java
UTF-8
Java
false
false
819
java
/** * Definition for a binary tree node. * public class TreeNode { * int val; * TreeNode left; * TreeNode right; * TreeNode(int x) { val = x; } * } */ class Solution { private TreeNode prev = new TreeNode(Integer.MIN_VALUE); private TreeNode first = null; private TreeNode second = null; public void recoverTree(TreeNode root) { traverse(root); int v = first.val; first.val = second.val; second.val = v; } private void traverse(TreeNode node){ if(node == null) return; traverse(node.left); if(first == null && prev.val > node.val){ first = prev; } if(first !=null && node.val < prev.val){ second = node; } prev = node; traverse(node.right); } }
[ "jiajionline@gmail.com" ]
jiajionline@gmail.com
a175fab683aff753b09ea1c2cacdc26a6e648dfe
ca2eb2ca9a611f5c98f6ac66d98fcbf38727d1d0
/JAVARMI/ServidorFunciones.java
ad169598147486a625a7889e5b7c7ee40ae31a82
[]
no_license
mat105/JAVARMI
d05501b2dcc66231d61e7959926d8f69574c220a
6255c913d4f3d257988cf03eeae4effe79e1ab41
refs/heads/master
2021-01-10T07:19:14.316031
2016-03-27T22:14:20
2016-03-27T22:14:20
54,427,988
0
0
null
null
null
null
UTF-8
Java
false
false
366
java
import java.rmi.Remote; import java.rmi.RemoteException; import java.util.ArrayList; public interface ServidorFunciones extends Remote { void agregar(int id, String nombre) throws RemoteException; ArrayList<String> listado() throws RemoteException; Clima getClima(int id) throws RemoteException; Ciudad buscarCiudad(int id) throws RemoteException; }
[ "mat.105@hotmail.com" ]
mat.105@hotmail.com
2f00f4ff3d163ac4078a478b15e876a70dea8a3f
bc9d38cbfb3fa5ab85600b01a27ce81e83519ddf
/byog/Core/Board.java
63c4607380fec07768553d3081b05f7ab536c6b8
[]
no_license
udotneb/Piggy-Escape
ee7b85be8ce90c79fde1a51f7b6ccffe50619320
9677dde40bfd8b113db706c5bf3223f4eef7b3b7
refs/heads/master
2020-04-07T06:31:50.507427
2018-11-19T00:42:45
2018-11-19T00:42:45
158,139,468
0
0
null
null
null
null
UTF-8
Java
false
false
7,956
java
package byog.Core; import byog.TileEngine.Tileset; public class Board { /** * old rectangles top(X,Y), bot(X,Y), left(X,Y), right(X,Y) coordinates */ private static int[][] oldSides; /** * new rectangles top(X,Y), bot(X,Y),left(X,Y), right(X,Y) coordinates */ private static int[][] newSides; /** * creates everything */ public static void create() { oldSides = new int[][]{{0, 0}, {0, 0}, {0, 0}, {0, 0}}; newSides = new int[4][2]; int numRectangles = Game.RANDOM.nextInt(10) + 15; for (int i = 0; i < numRectangles; i++) { randRectangle(); createPath(); } Board.flowerBorders(); Board.flowerToFloor(); } /** * Game.RANDOM RECTANGLE CREATION */ public static void randRectangle() { //Tries 300 times to create a random rectangle, otherwise returns int tries = 0; int width = Game.RANDOM.nextInt(8) + 3; int height = Game.RANDOM.nextInt(8) + 3; int xLocation = Game.RANDOM.nextInt(Game.WIDTH - width); int yLocation = Game.RANDOM.nextInt(Game.HEIGHT - height); while (!locationCheck(xLocation, yLocation, width, height) && tries < 300) { xLocation = Game.RANDOM.nextInt(Game.WIDTH - width); yLocation = Game.RANDOM.nextInt(Game.HEIGHT - height); tries += 1; } drawRect(xLocation, yLocation, width, height); } private static boolean locationCheck(int x, int y, int w, int h) { // checks to see if desired rectangle has been used and makes for (int i = 0; i < w; i++) { for (int k = 0; k < h; k++) { //checks to see if array index error if (x + i >= Game.WIDTH || y + k >= Game.HEIGHT) { return false; } //checks to see if a wall has been placed there if (Game.world[x + i][y + k].equals(Tileset.WALL) || Game.world[x + i][y + k] == Tileset.FLOOR) { return false; } } } return true; } public static void drawRect(int x, int y, int w, int h) { // draws a rectangle for (int i = 0; i < w; i++) { for (int k = 0; k < h; k++) { if (Game.world[x + i][y + k] != Tileset.FLOWER) { Game.world[x + i][y + k] = Tileset.FLOOR; } } } outlineRect(x, y, w, h); } private static void outlineRect(int x, int y, int w, int h) { //adds walls to the outside of the rectnalge + updates sides coordinates for (int i = 0; i <= w; i++) { //sets the up down center node //sets bottom border if (Game.world[x + i][y] != Tileset.FLOWER) { Game.world[x + i][y] = Tileset.WALL; } //sets top border if (Game.world[x + i][y + h] != Tileset.FLOWER) { Game.world[x + i][y + h] = Tileset.WALL; } if (i == w / 2) { newSides[1][0] = x + i; //bottom x newSides[1][1] = y; //bottom y newSides[0][0] = x + i; //top x newSides[0][1] = y + h; //top y } } for (int i = 0; i < h; i++) { //sets the left right center node //sets left border if (Game.world[x][y + i] != Tileset.FLOWER) { Game.world[x][y + i] = Tileset.WALL; } //sets right border if (Game.world[x + w][y + i] != Tileset.FLOWER) { Game.world[x + w][y + i] = Tileset.WALL; } if (i == h / 2) { newSides[2][0] = x; //left x newSides[2][1] = y + i; //left y newSides[3][0] = x + w; //right x newSides[3][1] = y + i; //right y } } } /** * PATHING FUNCTIONS IN BETWEEN RECTANLGES */ public static void createPath() { //creates a path between last rectangle and new rectangle if (oldSides[0][0] == 0 && oldSides[1][0] == 0) { //if old hasn't been initialized, skip creating a new path Distance.deepCopy(oldSides, newSides); return; } else { int[] pathCoor = Distance.distance(oldSides, newSides); drawPath(pathCoor[0], pathCoor[1], pathCoor[2], pathCoor[3]); } //reassign new to old Distance.deepCopy(oldSides, newSides); } private static void drawPath(int x1, int y1, int x2, int y2) { /** * Draws a path made of flower tiles from coor a to coor b * takes in arguments old x, old y, new x, new y */ while (x1 < x2) { Game.world[x1][y1] = Tileset.FLOWER; x1 += 1; } while (x1 > x2) { Game.world[x1][y1] = Tileset.FLOWER; x1 -= 1; } while (y1 < y2) { Game.world[x1][y1] = Tileset.FLOWER; y1 += 1; } while (y1 > y2) { Game.world[x1][y1] = Tileset.FLOWER; y1 -= 1; } Game.world[x2][y2] = Tileset.FLOWER; //sets new rectangles center piece to flower } public static void flowerBorders() { // draws borders around flower tiles if Tileset.NOTHING is there for (int i = 0; i < Game.WIDTH; i++) { for (int k = 0; k < Game.HEIGHT; k++) { if (Game.world[i][k] == Tileset.FLOWER) { flowerBorderDrawer(i, k); } } } } private static void flowerBorderDrawer(int x, int y) { /** draws the flower borders */ //draws top left if (spotCheck(x - 1, y + 1)) { Game.world[x - 1][y + 1] = Tileset.WALL; } //draws top center if (spotCheck(x, y + 1)) { Game.world[x][y + 1] = Tileset.WALL; } //draws top right if (spotCheck(x + 1, y + 1)) { Game.world[x + 1][y + 1] = Tileset.WALL; } //draws left if (spotCheck(x - 1, y)) { Game.world[x - 1][y] = Tileset.WALL; } //draws right if (spotCheck(x + 1, y)) { Game.world[x + 1][y] = Tileset.WALL; } //draws bottom left if (spotCheck(x - 1, y - 1)) { Game.world[x - 1][y - 1] = Tileset.WALL; } //draws bottom center if (spotCheck(x, y - 1)) { Game.world[x][y - 1] = Tileset.WALL; } //draws bottom right if (spotCheck(x + 1, y - 1)) { Game.world[x + 1][y - 1] = Tileset.WALL; } } private static boolean spotCheck(int x, int y) { /** * checks to see if Tilesset.Nothing is in certain spot */ //checks for correct array index if (x >= Game.WIDTH || y >= Game.HEIGHT || x < 0 || y < 0) { return false; } if (Game.world[x][y] == Tileset.NOTHING) { return true; } return false; } public static void flowerToFloor() { /** * converts flower tiles to floor tiles */ for (int i = 0; i < Game.WIDTH; i++) { for (int k = 0; k < Game.HEIGHT; k++) { if (Game.world[i][k] == Tileset.FLOWER) { Game.world[i][k] = Tileset.FLOOR; } } } } /** * RESET BOARD */ public static void paintNone() { /** * Paints the entire board with nothings */ for (int x = 0; x < Game.WIDTH; x += 1) { for (int y = 0; y < Game.HEIGHT; y += 1) { Game.world[x][y] = Tileset.NOTHING; } } } }
[ "udotneb@berkeley.edu" ]
udotneb@berkeley.edu
ecc30a3513d98e811f274323b7baafcc90a7afbf
3e38dd80f880d90e382f5e579eeb9ba123d11a37
/replugin-sample/host/replugin-host-lib/src/main/java/com/qihoo360/replugin/helper/HostConfigHelper.java
64e1472081916aa8ce2e62fe79415f651082ccf5
[ "Apache-2.0" ]
permissive
chenxiaokai/chenxiaokai_Replugin
fca4863d62d329d2d24c1bac3efe3c3c5c89f6d5
a724e42d46ca597c6c34a193d506cbbd52ed99c9
refs/heads/master
2020-03-27T13:25:57.035628
2018-08-29T14:09:48
2018-08-29T14:09:48
null
0
0
null
null
null
null
UTF-8
Java
false
false
6,907
java
/* * Copyright (C) 2005-2017 Qihoo 360 Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed To in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the * License for the specific language governing permissions and limitations under * the License. */ package com.qihoo360.replugin.helper; import com.qihoo360.replugin.utils.ReflectUtils; /** * 从宿主的 RePluginHostConfig 中获取一些字段值, * RepluginHostConfig 文件由 replugin-host-gradlezai在编译期间生成 自动生成 * * @author RePlugin Team */ public class HostConfigHelper { //RePluginHostConfig.java 位于 E:\github\RePlugin-2.2.0\replugin-sample\host\app\build\generated\source\buildConfig\baidu\release\com\qihoo360\replugin\gen\RePluginHostConfig.java private static final String HOST_CONFIG_FILE_PATH = "com.qihoo360.replugin.gen."; private static final String HOST_CONFIG_FILE_NAME = "RePluginHostConfig"; private static Class<?> HOST_CONFIG_CLASS; //------------------------------------------------------------ // RePlugin 坑位默认配置项 // 注意:以下配置项必须和 replugin-host-gradle 插件中的配置相同 //------------------------------------------------------------ // 是否使用“常驻进程”(见PERSISTENT_NAME)作为插件的管理进程 public static boolean PERSISTENT_ENABLE = true; // 常驻进程名 public static String PERSISTENT_NAME = ":GuardService"; // 背景透明的坑的数量(每种 launchMode 不同) public static int ACTIVITY_PIT_COUNT_TS_STANDARD = 2; public static int ACTIVITY_PIT_COUNT_TS_SINGLE_TOP = 2; public static int ACTIVITY_PIT_COUNT_TS_SINGLE_TASK = 2; public static int ACTIVITY_PIT_COUNT_TS_SINGLE_INSTANCE = 3; // 背景不透明的坑的数量(每种 launchMode 不同) public static int ACTIVITY_PIT_COUNT_NTS_STANDARD = 6; public static int ACTIVITY_PIT_COUNT_NTS_SINGLE_TOP = 2; public static int ACTIVITY_PIT_COUNT_NTS_SINGLE_TASK = 3; public static int ACTIVITY_PIT_COUNT_NTS_SINGLE_INSTANCE = 2; // TaskAffinity 组数 public static int ACTIVITY_PIT_COUNT_TASK = 2; // 是否使用 AppCompat 库 public static boolean ACTIVITY_PIT_USE_APPCOMPAT = false; //------------------------------------------------------------ // 主程序支持的插件版本范围 //------------------------------------------------------------ // HOST 向下兼容的插件版本 public static int ADAPTER_COMPATIBLE_VERSION = 10; // HOST 插件版本 public static int ADAPTER_CURRENT_VERSION = 12; static { try { HOST_CONFIG_CLASS = ReflectUtils.getClass(HOST_CONFIG_FILE_PATH + HOST_CONFIG_FILE_NAME); } catch (ClassNotFoundException e) { // Ignore, Just use default value } try { PERSISTENT_ENABLE = readField("PERSISTENT_ENABLE"); } catch (NoSuchFieldException e) { // Ignore, Just use default value } try { PERSISTENT_NAME = readField("PERSISTENT_NAME"); } catch (NoSuchFieldException e) { // Ignore, Just use default value } try { ACTIVITY_PIT_USE_APPCOMPAT = readField("ACTIVITY_PIT_USE_APPCOMPAT"); } catch (NoSuchFieldException e) { // Ignore, Just use default value } try { ACTIVITY_PIT_COUNT_TS_STANDARD = readField("ACTIVITY_PIT_COUNT_TS_STANDARD"); } catch (NoSuchFieldException e) { // Ignore, Just use default value } try { ACTIVITY_PIT_COUNT_TS_SINGLE_TOP = readField("ACTIVITY_PIT_COUNT_TS_SINGLE_TOP"); } catch (NoSuchFieldException e) { // Ignore, Just use default value } try { ACTIVITY_PIT_COUNT_TS_SINGLE_TASK = readField("ACTIVITY_PIT_COUNT_TS_SINGLE_TASK"); } catch (NoSuchFieldException e) { // Ignore, Just use default value } try { ACTIVITY_PIT_COUNT_TS_SINGLE_INSTANCE = readField("ACTIVITY_PIT_COUNT_TS_SINGLE_INSTANCE"); } catch (NoSuchFieldException e) { // Ignore, Just use default value } try { ACTIVITY_PIT_COUNT_NTS_STANDARD = readField("ACTIVITY_PIT_COUNT_NTS_STANDARD"); } catch (NoSuchFieldException e) { // Ignore, Just use default value } try { ACTIVITY_PIT_COUNT_NTS_SINGLE_TOP = readField("ACTIVITY_PIT_COUNT_NTS_SINGLE_TOP"); } catch (NoSuchFieldException e) { // Ignore, Just use default value } try { ACTIVITY_PIT_COUNT_NTS_SINGLE_TASK = readField("ACTIVITY_PIT_COUNT_NTS_SINGLE_TASK"); } catch (NoSuchFieldException e) { // Ignore, Just use default value } try { ACTIVITY_PIT_COUNT_NTS_SINGLE_INSTANCE = readField("ACTIVITY_PIT_COUNT_NTS_SINGLE_INSTANCE"); } catch (NoSuchFieldException e) { // Ignore, Just use default value } try { ACTIVITY_PIT_COUNT_TASK = readField("ACTIVITY_PIT_COUNT_TASK"); } catch (NoSuchFieldException e) { // Ignore, Just use default value } try { ADAPTER_COMPATIBLE_VERSION = readField("ADAPTER_COMPATIBLE_VERSION"); } catch (NoSuchFieldException e) { // Ignore, Just use default value } try { ADAPTER_CURRENT_VERSION = readField("ADAPTER_CURRENT_VERSION"); } catch (NoSuchFieldException e) { // Ignore, Just use default value } } private static <T> T readField(String name) throws NoSuchFieldException { try { // 就是要强转 //noinspection unchecked return (T) ReflectUtils.readStaticField(HOST_CONFIG_CLASS, name); } catch (IllegalAccessException e) { // 此Field可能为非Public权限,不过由于我们做了Accessible处理,可能性非常低 // NOTE 因为类型转换发生在readField返回值之后才做,故“ClassCastException”只会出现在static方法块内 // NOTE 故在此处做Catch ClassCastException是无效的 throw new IllegalStateException(e); } // NOTE 不需要Catch NoSuchFieldException,因为只要此Field找不到就抛,符合预期 } public static void init() { // Nothing, Just init on "static" block 复制在 static 的 大括号中 } }
[ "324713943@qq.com" ]
324713943@qq.com
7d5093aac8a4b88c7a4b99559185ee9e5d0a623c
760a611186b5305ba2efd75e71b861c6fa4aee31
/BF/service/UserService.java
9e736c1f378946148062e143fd2b402a9f0d97e7
[]
no_license
Julia9803/BF-Interpreter
45e974c0470a2173864734251b5d7153345496ef
05db7ff405ca0020e5925aa2a2f2b6b36c6eab7c
refs/heads/master
2021-01-17T15:37:37.051721
2017-06-28T09:25:13
2017-06-28T09:25:13
95,302,926
0
1
null
null
null
null
UTF-8
Java
false
false
397
java
//服务器UserService的Stub,内容相同 package service; import java.rmi.Remote; import java.rmi.RemoteException; public interface UserService extends Remote{ public boolean login(String username, String password) throws RemoteException; public boolean logout(String username) throws RemoteException; public boolean register(String username, String password) throws RemoteException; }
[ "925583000@qq.com" ]
925583000@qq.com
b3bdebbae0889a190aaf40a76ecd73b737e556a6
ca5c4209ceed26ff8c4ce11f13b6a282fd1bba2d
/src/shopclient/BuyCapacitorJFrame.java
42e341aa5e4b6945c9f17dcead8cf0b96db75b02
[]
no_license
DestrJ/ShopClient
2984e4c098c1dd6b20877f9a70a3edfc5552baa7
4335f6ac79d5c10c1eee68e672e81648565b3880
refs/heads/master
2016-08-13T00:40:13.423072
2016-03-01T16:41:08
2016-03-01T16:41:08
52,892,913
0
0
null
null
null
null
UTF-8
Java
false
false
6,529
java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package shopclient; import service.Capacitor; import service.User; /** * * @author Destr */ public class BuyCapacitorJFrame extends javax.swing.JFrame { private User user; private int idCapacitor; /** * Creates new form BuyCapacitorJFrame */ public BuyCapacitorJFrame() { initComponents(); } public BuyCapacitorJFrame(User user, int idCapacitor) { initComponents(); this.user = user; this.idCapacitor = idCapacitor; } /** * This method is called from within the constructor to initialize the form. * WARNING: Do NOT modify this code. The content of this method is always * regenerated by the Form Editor. */ @SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jLabel1 = new javax.swing.JLabel(); jFormattedTextField1 = new javax.swing.JFormattedTextField(); jButton1 = new javax.swing.JButton(); jButton2 = new javax.swing.JButton(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); jLabel1.setText("Input capacitors count:"); jButton1.setText("Buy"); jButton1.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { makePurchase(evt); } }); jButton2.setText("Back"); jButton2.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { backToPreviousWindow(evt); } }); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() .addContainerGap(38, Short.MAX_VALUE) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jLabel1) .addComponent(jFormattedTextField1, javax.swing.GroupLayout.DEFAULT_SIZE, 123, Short.MAX_VALUE) .addComponent(jButton1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jButton2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addGap(39, 39, 39)) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGap(95, 95, 95) .addComponent(jLabel1) .addGap(18, 18, 18) .addComponent(jFormattedTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(18, 18, 18) .addComponent(jButton1) .addGap(18, 18, 18) .addComponent(jButton2) .addContainerGap(71, Short.MAX_VALUE)) ); pack(); }// </editor-fold>//GEN-END:initComponents private void makePurchase(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_makePurchase Integer capacitorCount = Integer.valueOf(jFormattedTextField1.getText()); boolean purchaseState = buyCapacitor(user.getId(), idCapacitor, capacitorCount); this.dispose(); }//GEN-LAST:event_makePurchase private void backToPreviousWindow(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_backToPreviousWindow this.dispose(); }//GEN-LAST:event_backToPreviousWindow /** * @param args the command line arguments */ public static void main(String args[]) { /* Set the Nimbus look and feel */ //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) "> /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel. * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html */ try { for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) { if ("Nimbus".equals(info.getName())) { javax.swing.UIManager.setLookAndFeel(info.getClassName()); break; } } } catch (ClassNotFoundException ex) { java.util.logging.Logger.getLogger(BuyCapacitorJFrame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } catch (InstantiationException ex) { java.util.logging.Logger.getLogger(BuyCapacitorJFrame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } catch (IllegalAccessException ex) { java.util.logging.Logger.getLogger(BuyCapacitorJFrame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } catch (javax.swing.UnsupportedLookAndFeelException ex) { java.util.logging.Logger.getLogger(BuyCapacitorJFrame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } //</editor-fold> /* Create and display the form */ java.awt.EventQueue.invokeLater(new Runnable() { public void run() { new BuyCapacitorJFrame().setVisible(true); } }); } // Variables declaration - do not modify//GEN-BEGIN:variables private javax.swing.JButton jButton1; private javax.swing.JButton jButton2; private javax.swing.JFormattedTextField jFormattedTextField1; private javax.swing.JLabel jLabel1; // End of variables declaration//GEN-END:variables private static boolean buyCapacitor(java.lang.Integer idCapacitor, java.lang.Integer idUser, java.lang.Integer capacitorCount) { service.StoreWS_Service service = new service.StoreWS_Service(); service.StoreWS port = service.getStoreWSPort(); return port.buyCapacitor(idCapacitor, idUser, capacitorCount); } }
[ "Destr@Destr-PC" ]
Destr@Destr-PC
cbf37acc929261532d9d239db17d0736062fa363
33b2d2c45d84eede111519071b6b25cb5019f411
/src/jm/audio/synth/TapDelay.java
2bd3d72d4240c65f7e38279255c9f1781529ef2a
[]
no_license
mgtcardenas/CONIELECOMP2019
5bdb4f11223cd61189ee93911b8f02962b3907f0
84c704668b9b72ce36a42a6bb63568ca2585992d
refs/heads/master
2020-04-25T13:10:05.609561
2019-09-12T16:02:39
2019-09-12T16:02:39
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,104
java
/* <This Java Class is part of the jMusic API version 1.5, March 2004.> Copyright (C) 2000 Andrew Sorensen & Andrew Brown This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ package jm.audio.synth; import jm.audio.AOException; import jm.audio.AudioObject; /** * Tap Delay ... * @author Andrew Sorensen * @version 1.0,Sun Feb 25 18:42:46 2001 */ public final class TapDelay extends AudioObject{ //The gain of this comb filter private float decay; //The delay (in samples) to use with this comb filter private int delay; //Number of samples to delay by private float[] delayLine; //Delay line current index private int delayIndex; //number of taps in this delay line private int taps; //number of samples which delay is equal to private int sampleDelay; //---------------------------------------------- // Constructors //---------------------------------------------- /** * @param delay delay in milliseconds * */ public TapDelay(AudioObject ao, int delay, int taps){ this(ao,delay,taps,0.5); } /** * @param delay delay in milliseconds * @param gain as a percent */ public TapDelay(AudioObject ao, int delay, int taps, double decay){ super(ao, "[Tap Delay]"); this.finished = false; this.decay = (float)decay; this.delay = delay; this.taps = taps; } //---------------------------------------------- // Methods //---------------------------------------------- /** * @param buffer any number of incoming samples */ public int work(float[] buffer)throws AOException{ int returned = buffer.length; if(!this.inst.finishedNewData && this.inst.getFinished()) returned = this.previous[0].nextWork(buffer); int i=0; float max = 0.0f; for(;i<returned;i++){ for(int k=1;k<=taps;k++){ int tapIndex = delayIndex+(sampleDelay*this.channels*k); if(tapIndex>=delayLine.length)tapIndex-=delayLine.length; delayLine[tapIndex] += buffer[i]*(decay/k); } buffer[i] += delayLine[delayIndex]; delayLine[delayIndex] = 0.0f; delayIndex++; if(delayIndex >= delayLine.length){ delayIndex = 0; } if(max < buffer[i])max=buffer[i]; } if(this.inst.iterations <= (0-delayLine.length)){ this.finished=true; } return i; } /** * */ public void build(){ if(delayLine == null){ this.sampleDelay = (int)(((float)this.delay/1000.0f) * (float)this.sampleRate); this.delayLine = new float[sampleDelay*this.channels*taps]; this.delayIndex = 0; } this.finished=false; } }
[ "mgtcardenas@gmail.com" ]
mgtcardenas@gmail.com
21ac1bed17cd7d56a9a09e2648f8efeb06a9249a
95d0f3518dab1cb15ed6818c4a163aa2e077b789
/src/test/java/Main.java
20317d093cf86110665f954d6d38ea200c558f2f
[]
no_license
mroodschild/froog-examples
10554bdc9d738e90393e1283fa02838f36528dcd
de13044d8727019139ccd522a6c894e84f3b54e5
refs/heads/master
2020-03-09T12:40:14.812950
2019-03-03T00:27:27
2019-03-03T00:27:27
128,791,317
0
0
null
null
null
null
UTF-8
Java
false
false
10,701
java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ import java.util.Random; import org.ejml.data.MatrixType; import org.ejml.dense.row.CommonOps_DDRM; import org.ejml.dense.row.mult.MatrixMatrixMult_DDRM; //import org.ejml.dense.row.CommonOps_DDRM; import org.ejml.simple.SimpleMatrix; import org.gitia.froog.statistics.Clock; /** * * @author Matías Roodschild <mroodschild@gmail.com> */ public class Main { public static void main(String[] args) { //System.setProperty("java.util.concurrent.ForkJoinPool.common.parallelism", "1"); Clock c = new Clock(); Random r;// = new Random(); int[] dimensiones = {6};//, 20, 30, 40, 50, 70, 100, 150, 200, 300, 400, 600, 800, 1000, 1500, 2000, 2500, 3000, 3500, 4000};//, 5000, 7000, 10000, 12000};//,17000}; SimpleMatrix A; SimpleMatrix B; SimpleMatrix C; // for (int i = 0; i < dimensiones.length; i++) { // r = new Random(1); // int dim = dimensiones[i]; // A = SimpleMatrix.random_DDRM(dim, dim, -200, 200, r); // B = SimpleMatrix.random_DDRM(dim, dim, -200, 200, r); // C = new SimpleMatrix(dim, dim, MatrixType.DDRM); // c.start(); // MatrixMatrixMult_DDRM.mult_reorder(A.getDDRM(), B.getDDRM(), C.getDDRM()); // c.stop(); // c.printTime("EJML dim:\t" + dim + "\t"); // //C.print(); // } // // for (int i = 0; i < dimensiones.length; i++) { // r = new Random(1); // int dim = dimensiones[i]; // A = SimpleMatrix.random_DDRM(dim, dim, -200, 200, r); // B = SimpleMatrix.random_DDRM(dim, dim, -200, 200, r); // C = new SimpleMatrix(dim, dim, MatrixType.DDRM); // c.start(); // Parallel.mult_reorder(A.getDDRM(), B.getDDRM(), C.getDDRM()); // c.stop(); // c.printTime("Par dim:\t" + dim + "\t"); // //C.print(); // } // // for (int i = 0; i < dimensiones.length; i++) { // r = new Random(1); // int dim = dimensiones[i]; // A = SimpleMatrix.random_DDRM(dim, dim * 2, -200, 200, r); // B = SimpleMatrix.random_DDRM(dim * 2, dim, -200, 200, r); // C = new SimpleMatrix(dim, dim, MatrixType.DDRM); // c.start(); // MatrixMatrixMult_DDRM.mult_small(A.getDDRM(), B.getDDRM(), C.getDDRM()); // c.stop(); // c.printTime("EJML_small dim:\t" + dim + "\t"); // //C.print(); // } // // for (int i = 0; i < dimensiones.length; i++) { // r = new Random(1); // int dim = dimensiones[i]; // A = SimpleMatrix.random_DDRM(dim, dim * 2, -200, 200, r); // B = SimpleMatrix.random_DDRM(dim * 2, dim, -200, 200, r); // C = new SimpleMatrix(dim, dim, MatrixType.DDRM); // c.start(); // Parallel.mult_small(A.getDDRM(), B.getDDRM(), C.getDDRM()); // c.stop(); // c.printTime("Par_small dim:\t" + dim + "\t"); // //C.print(); // } // // for (int i = 0; i < dimensiones.length; i++) { // r = new Random(1); // int dim = dimensiones[i]; // A = SimpleMatrix.random_DDRM(dim * 2, dim, -200, 200, r); // B = SimpleMatrix.random_DDRM(dim * 2, dim, -200, 200, r); // C = new SimpleMatrix(dim, dim, MatrixType.DDRM); // c.start(); // MatrixMatrixMult_DDRM.multTransA_reorder(A.getDDRM(), B.getDDRM(), C.getDDRM()); // c.stop(); // c.printTime("EJML_AtB dim:\t" + dim + "\t"); // //C.print(); // } // // for (int i = 0; i < dimensiones.length; i++) { // r = new Random(1); // int dim = dimensiones[i]; // A = SimpleMatrix.random_DDRM(dim * 2, dim, -200, 200, r); // B = SimpleMatrix.random_DDRM(dim * 2, dim, -200, 200, r); // C = new SimpleMatrix(dim, dim, MatrixType.DDRM); // c.start(); // Parallel.multTransA_reorder(A.getDDRM(), B.getDDRM(), C.getDDRM()); // c.stop(); // c.printTime("Par_AtB dim:\t" + dim + "\t"); // //C.print(); // } // for (int i = 0; i < dimensiones.length; i++) { // r = new Random(1); // int dim = dimensiones[i]; // A = SimpleMatrix.random_DDRM(dim, dim, -200, 200, r); // B = SimpleMatrix.random_DDRM(dim, 1, -200, 200, r); // C = new SimpleMatrix(dim, 1, MatrixType.DDRM); // c.start(); // Parallel.MatrixVectorMult_DDRM_mult(A.getDDRM(), B.getDDRM(), C.getDDRM()); // c.stop(); // c.printTime("MatrixVectorMult_DDRM_mult dim:\t" + dim + "\t element_sum:\t"+C.elementSum()); //// C.transpose().print(); // } // // for (int i = 0; i < dimensiones.length; i++) { // r = new Random(1); // int dim = dimensiones[i]; // A = SimpleMatrix.random_DDRM(dim, dim, -200, 200, r); // B = SimpleMatrix.random_DDRM(dim, 1, -200, 200, r); // C = new SimpleMatrix(dim, 1, MatrixType.DDRM); // c.start(); // Parallel.MatrixVectorMult_DDRM_mult_orig(A.getDDRM(), B.getDDRM(), C.getDDRM()); // c.stop(); // c.printTime("MatrixVectorMult_DDRM_mult_orig dim:\t" + dim + "\t element_sum:\t"+C.elementSum()); //// C.transpose().print(); // } // for (int i = 0; i < dimensiones.length; i++) { // r = new Random(1); // int dim = dimensiones[i]; // A = SimpleMatrix.random_DDRM(dim, dim, -200, 200, r); // C = new SimpleMatrix(dim, dim, MatrixType.DDRM); // c.start(); // CommonOps_DDRM_Parallel.elementExp_parallel(A.getDDRM(), C.getDDRM()); // c.stop(); // c.printTime("CommonOps_DDRM_elementExp_parallel dim:\t" + dim + "\t element_sum:\t" + C.elementSum()); //// C.transpose().print(); // } // // for (int i = 0; i < dimensiones.length; i++) { // r = new Random(1); // int dim = dimensiones[i]; // A = SimpleMatrix.random_DDRM(dim, dim, -200, 200, r); // C = new SimpleMatrix(dim, dim, MatrixType.DDRM); // c.start(); // CommonOps_DDRM_Parallel.elementExp(A.getDDRM(), C.getDDRM()); // c.stop(); // c.printTime("CommonOps_DDRM_elementExp dim:\t" + dim + "\t element_sum:\t" + C.elementSum()); //// C.transpose().print(); // } // for (int i = 0; i < dimensiones.length; i++) { // r = new Random(1); // int dim = dimensiones[i]; // A = SimpleMatrix.random_DDRM(dim, dim, -200, 200, r); // c.start(); // CommonOps_DDRM_Parallel.scale_parallel(5, A.getDDRM()); // c.stop(); // c.printTime("CommonOps_DDRM_scale_parallel dim:\t" + dim + "\t element_sum:\t" + A.elementSum()); //// C.transpose().print(); // } // // for (int i = 0; i < dimensiones.length; i++) { // r = new Random(1); // int dim = dimensiones[i]; // A = SimpleMatrix.random_DDRM(dim, dim, -200, 200, r); // c.start(); // CommonOps_DDRM_Parallel.scale(5, A.getDDRM()); // c.stop(); // c.printTime("CommonOps_DDRM_scale dim:\t" + dim + "\t element_sum:\t" + A.elementSum()); //// C.transpose().print(); // } // for (int i = 0; i < dimensiones.length; i++) { // r = new Random(1); // int dim = dimensiones[i]; // A = SimpleMatrix.random_DDRM(dim, dim, -200, 200, r); // C = new SimpleMatrix(dim, dim, MatrixType.DDRM); // c.start(); // CommonOps_DDRM_Parallel.elementPower(A.getDDRM(),-2,C.getDDRM()); // c.stop(); // c.printTime("CommonOps_DDRM_elementPower_parallel dim:\t" + dim + "\t element_sum:\t" + C.elementSum()); //// C.transpose().print(); // } // // for (int i = 0; i < dimensiones.length; i++) { // r = new Random(1); // int dim = dimensiones[i]; // A = SimpleMatrix.random_DDRM(dim, dim, -200, 200, r); // C = new SimpleMatrix(dim, dim, MatrixType.DDRM); // c.start(); // CommonOps_DDRM.elementPower(A.getDDRM(),-2,C.getDDRM()); // c.stop(); // c.printTime("CommonOps_DDRM_elementPower dim:\t" + dim + "\t element_sum:\t" + C.elementSum()); //// C.transpose().print(); // } for (int i = 0; i < dimensiones.length; i++) { r = new Random(1); int dim = dimensiones[i]; A = SimpleMatrix.random_DDRM(dim, dim+1, -200, 200, r); B = SimpleMatrix.random_DDRM(dim+1, dim, -200, 200, r); C = SimpleMatrix.random_DDRM(dim, dim, -200, 200, r); //C = new SimpleMatrix(dim, dim, MatrixType.DDRM); c.start(); //C=A.mult(B).plus(C).transpose(); MatrixMatrixMult_DDRM_Parallel.multAdd_reorder(A.getDDRM(),B.getDDRM(),C.getDDRM()); c.stop(); c.printTime("CommonOps_DDRM_multAdd_reorder_parallel dim:\t" + dim + "\t element_sum:\t" + C.elementSum()); // C.transpose().print(); C.print(); } for (int i = 0; i < dimensiones.length; i++) { //for (int i = 0; i < 1; i++) { r = new Random(1); int dim = dimensiones[i]; A = SimpleMatrix.random_DDRM(dim, dim+1, -200, 200, r); B = SimpleMatrix.random_DDRM(dim+1, dim, -200, 200, r); C = SimpleMatrix.random_DDRM(dim, dim, -200, 200, r); // // A = new SimpleMatrix(4, 4, true, new double[]{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16}); // B = new SimpleMatrix(4, 4, true, new double[]{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16}); // C = new SimpleMatrix(4, 4, true, new double[]{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16}); //C = new SimpleMatrix(dim, dim, MatrixType.DDRM); c.start(); MatrixMatrixMult_DDRM.multAdd_reorder(A.getDDRM(), B.getDDRM(), C.getDDRM()); c.stop(); c.printTime("CommonOps_DDRM_multAdd_reorder dim:\t" + dim + "\t element_sum:\t" + C.elementSum()); //C.transpose().print(); C.print(); } } }
[ "mroodschild@gmail.com" ]
mroodschild@gmail.com
494ed5ffd3d9d313a1f5b380d462cc98131562b8
37a6789660a234870e02babd6eb23f9903bf16f1
/ExperimentBook/app/src/main/java/com/example/experimentbook/ExperimentBookApplication.java
abfde9b4adf062099f33fb7143a68a370563745c
[]
no_license
Shao-Zhang/SZHANG2-TrialBook
9eb4a4a75dac8a5042e27288b5b75ab84bd54fac
9b3ff4ea151bfc422f6aba40f213ec456e5303e9
refs/heads/main
2023-03-02T08:57:27.928671
2021-02-12T19:34:24
2021-02-12T19:34:24
336,368,663
0
0
null
null
null
null
UTF-8
Java
false
false
862
java
package com.example.experimentbook; import android.app.Application; import java.util.ArrayList; // Reference from Cristian https://stackoverflow.com/users/244296/cristian // From Stackoverflow // https://stackoverflow.com/posts/4878259/revisions public class ExperimentBookApplication extends Application { transient private static ArrayList<Experiment> experiments; public static ArrayList<Experiment> getExperiments(){ if (experiments == null){ experiments = new ArrayList<>(); } return experiments; } public static Experiment getExperimentIndex(int position){ if (experiments == null) { return null; } else { return experiments.get(position); } } public static void removeExperiment(int position){ experiments.remove(position); } }
[ "sfeng.zhang39@gmail.com" ]
sfeng.zhang39@gmail.com
66718a0a224f37e64ef36c4bb636565ae40a6b22
4800c421e0b931bc7dece53f9e073a593f0a4dbf
/src/com/learnopengles/android/ShaderHelper.java
500125f11b2a8fd3d32a566dc251018d620098a2
[]
no_license
calebgomer/TardDroidBall
cedd2718cc7c40fd9b4f3a9cd93f43eed7b42d32
f5964174a5c0ef4b1f510c80f850a6fc40587aa0
refs/heads/master
2020-06-01T15:01:55.976974
2013-03-29T02:52:07
2013-03-29T02:52:07
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,854
java
package com.learnopengles.android; import android.opengl.GLES20; import android.util.Log; public class ShaderHelper { private static final String TAG = "ShaderHelper"; /** * Helper function to compile a shader. * * @param shaderType The shader type. * @param shaderSource The shader source code. * @return An OpenGL handle to the shader. */ public static int compileShader(final int shaderType, final String shaderSource) { int shaderHandle = GLES20.glCreateShader(shaderType); if (shaderHandle != 0) { // Pass in the shader source. GLES20.glShaderSource(shaderHandle, shaderSource); // Compile the shader. GLES20.glCompileShader(shaderHandle); // Get the compilation status. final int[] compileStatus = new int[1]; GLES20.glGetShaderiv(shaderHandle, GLES20.GL_COMPILE_STATUS, compileStatus, 0); // If the compilation failed, delete the shader. if (compileStatus[0] == 0) { Log.e(TAG, "Error compiling shader: " + GLES20.glGetShaderInfoLog(shaderHandle)); GLES20.glDeleteShader(shaderHandle); shaderHandle = 0; } } if (shaderHandle == 0) { throw new RuntimeException("Error creating shader."); } return shaderHandle; } /** * Helper function to compile and link a program. * * @param vertexShaderHandle An OpenGL handle to an already-compiled vertex shader. * @param fragmentShaderHandle An OpenGL handle to an already-compiled fragment shader. * @param attributes Attributes that need to be bound to the program. * @return An OpenGL handle to the program. */ public static int createAndLinkProgram(final int vertexShaderHandle, final int fragmentShaderHandle, final String[] attributes) { int programHandle = GLES20.glCreateProgram(); if (programHandle != 0) { // Bind the vertex shader to the program. GLES20.glAttachShader(programHandle, vertexShaderHandle); // Bind the fragment shader to the program. GLES20.glAttachShader(programHandle, fragmentShaderHandle); // Bind attributes if (attributes != null) { final int size = attributes.length; for (int i = 0; i < size; i++) { GLES20.glBindAttribLocation(programHandle, i, attributes[i]); } } // Link the two shaders together into a program. GLES20.glLinkProgram(programHandle); // Get the link status. final int[] linkStatus = new int[1]; GLES20.glGetProgramiv(programHandle, GLES20.GL_LINK_STATUS, linkStatus, 0); // If the link failed, delete the program. if (linkStatus[0] == 0) { Log.e(TAG, "Error compiling program: " + GLES20.glGetProgramInfoLog(programHandle)); GLES20.glDeleteProgram(programHandle); programHandle = 0; } } if (programHandle == 0) { throw new RuntimeException("Error creating program."); } return programHandle; } }
[ "calebgomer@gmail.com" ]
calebgomer@gmail.com
f723657c9a1c50657825dcd5bd2870d81497f71c
c796be102fba44607f5bd9b51d7f39f5c031041c
/src/main/java/com/oscarmorton/ejer09/ArithmeticExeptionTest.java
7e148f4f5a9926876745929e3ccc08d2bd76c6c5
[]
no_license
OscarGuiri/tema09
665ca9cf7cdb4aadf58792c2fb2e0ac94f46f933
d501bbcc3231a66d9d339b7d24447d22e640f6cb
refs/heads/master
2020-12-31T09:54:06.843584
2020-02-14T16:10:22
2020-02-14T16:10:22
238,987,553
0
0
null
null
null
null
UTF-8
Java
false
false
184
java
package com.oscarmorton.ejer09; public class ArithmeticExeptionTest extends ArithmeticException{ public ArithmeticExeptionTest(String message) { super(message); } }
[ "oscar.morton.a@ies1xabia.org" ]
oscar.morton.a@ies1xabia.org
a2cbfe170733d39002dc9eb99753d3eb3c29bd5a
a4dab24c0cdd7c8c52b5206f44a620c3d8dd8491
/madrid-hackathon/workshops/travel-content-api/src/main/java/com/expedia/eps/contentsystem/tcs/domain/ActivityDTO.java
8e2f4381f071d4e7f9807da3f054c9ff3d064bde
[]
no_license
houcin175/exp-connectivity-util
9cf79315442f776a4d9d3456eb455103a3effb8d
5bda8532ff5c8a577626a510ceffa2638209513c
refs/heads/master
2020-04-27T13:29:14.055666
2017-05-05T14:19:56
2017-05-05T14:19:56
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,880
java
package com.expedia.eps.contentsystem.tcs.domain; import java.util.Collections; import java.util.List; import java.util.Map; import java.util.stream.Collectors; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; import lombok.NoArgsConstructor; import lombok.Singular; @Data @Builder @NoArgsConstructor @AllArgsConstructor(suppressConstructorProperties = true) public class ActivityDTO implements SectionDTO { private String creationDate; private Map<String, GeneratedContentDTO.Content> generatedContent; @Singular("data") private List<Activity> data; public List<Activity> getActivities(Integer limit) { if (data.isEmpty()) { return Collections.emptyList(); } if (limit != null) { return data.stream().limit(limit).collect(Collectors.toList()); } return data; } @Data @Builder @NoArgsConstructor @AllArgsConstructor(suppressConstructorProperties = true) public static class Activity { private String activityId; private Destination destination; private Map<String, GeneratedContentDTO.Content> generatedContent; private PriceDTO price; private int recommendationScore; } @Data @Builder @NoArgsConstructor @AllArgsConstructor(suppressConstructorProperties = true) public static class Destination { private Description description; private Geo geo; private Description title; private List<ImageDTO> images; public List<ImageDTO> getImages(Integer limit) { if (images.isEmpty()) { return Collections.emptyList(); } if (limit != null) { return images.stream().limit(limit).collect(Collectors.toList()); } return images; } @Data @Builder @NoArgsConstructor @AllArgsConstructor(suppressConstructorProperties = true) public static class Geo { private double latitude; private double longitude; private String regionId; private AuditDTO audit = new AuditDTO(); } @Data @Builder @NoArgsConstructor @AllArgsConstructor(suppressConstructorProperties = true) public static class Description { private String id; private String value; } } @Data @Builder @NoArgsConstructor @AllArgsConstructor(suppressConstructorProperties = true) public static class PriceDTO { private float amount; private String currency; } @Override public int getSize() { return this.getData() == null ? 0 : this.getData().size(); } @Override public String getSectionName() { return Section.ACTIVITY.name(); } }
[ "gmasse@expedia.com" ]
gmasse@expedia.com
03839dbb7831e03f06fda70e0e0d9eff6753a285
5f1386d82bc45c510cbcdc5624a28a5118ce7555
/My_Project/Android_Mole/Catchme/src/com/example/catchme/GameBroad.java
4b8381016db00cedebba07e4d2978b53b907aea5
[]
no_license
dalzzing2/Study
aaaca99fcbee4a263f1c7c6ff29500719d2f94d2
9cfbaf39d2583948a23f61286bf22628eae33071
refs/heads/master
2020-03-25T06:31:39.655911
2018-08-04T07:51:44
2018-08-04T07:51:44
143,507,533
0
0
null
null
null
null
UHC
Java
false
false
805
java
package com.example.catchme; import android.app.Notification; import android.app.NotificationManager; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; public class GameBroad extends BroadcastReceiver{ public GameBroad(){ } public void onReceive(Context context, Intent intent){ Notification n_msg = new Notification.Builder(context) .setContentTitle("Made by SeonHo") //제목 .setContentText("Your Score is Max") //내용 .setSmallIcon(R.drawable.logo).build(); //아이콘 //인디케이터 바를 설정하거나 출력함 //getSystemService 메소드를 통해 NotificationManager 받아옴 NotificationManager nm = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE); nm.notify(0, n_msg); } }
[ "dalzzing2@naver.com" ]
dalzzing2@naver.com
b540f31db37cca8033d0f1b73786f6d129c6f635
b1f51f8ba05ad83ecfbd80e6e7f140e70850bf01
/ACE_ERP/src/transfer/tr00601_t01.java
bb27218412b8995a8bc7c68018e708d9d0bb90ce
[]
no_license
hyundaimovex-asanwas/asanwas-homepage
27e0ba1ed7b41313069e732f3dc9df20053caddd
75e30546f11258d8b70159cfbe8ee36b18371bd0
refs/heads/master
2023-06-07T03:41:10.170367
2021-07-01T10:23:54
2021-07-01T10:23:54
376,739,168
1
1
null
null
null
null
UHC
Java
false
false
4,883
java
package transfer; import com.gauce.*; import com.gauce.io.*; import com.gauce.common.*; import com.gauce.log.*; import com.gauce.db.*; import java.sql.*; import javax.servlet.*; import javax.servlet.http.*; public class tr00601_t01 extends HttpServlet{ public void doPost(HttpServletRequest req,HttpServletResponse res) { ServiceLoader loader = null; GauceService service = null; GauceContext context = null; Logger logger = null; GauceDBConnection gconn = null; try{ loader = new ServiceLoader(req, res); service = loader.newService(); context = service.getContext(); logger = context.getLogger(); GauceRequest GauceReq = null; GauceResponse GauceRes = null; try { gconn = service.getDBConnection(); GauceReq = service.getGauceRequest(); GauceRes = service.getGauceResponse(); GauceDataSet userSet = GauceReq.getGauceDataSet("USER"); String[] strArrCN = new String[]{ "USERID","USERPW","USERNM","REGNO","ZIPCD", "ADDR1","ADDR2","REGNM","TEL1","TEL2", "TEL3","FAX1","FAX2","FAX3","MOBILE1", "MOBILE2","MOBILE3","EMAIL","RELPART","CDATE" }; int[] idx = new int[20]; for (int i=0; i<strArrCN.length; i++) { idx[i] = userSet.indexOfColumn(strArrCN[i]); } GauceDataRow[] rows = userSet.getDataRows(); StringBuffer InsertSql = null; StringBuffer UpdateSql = null; StringBuffer DeleteSql = null; for (int j = 0; j < rows.length; j++){ String sa[] = new String[19]; for (int k=0; k<19; k++) sa[k] = rows[j].getString(idx[k]); if(rows[j].getJobType() == GauceDataRow.TB_JOB_INSERT) { InsertSql = new StringBuffer(); InsertSql.append( " INSERT INTO TRANSFER.LTUSER \n" ) .append( " ( " ) .append( " USERID, USERPW, USERNM, REGNO, ZIPCD, \n") .append( " ADDR1, ADDR2, REGNM, TEL1, TEL2, \n") .append( " TEL3, FAX1, FAX2, FAX3, MOBILE1, \n") .append( " MOBILE2, MOBILE3, EMAIL, RELPART \n") .append( " ) VALUES ( \n" ) .append( " UPPER('" + sa[0] + "'), '"+sa[1]+"', '"+sa[2]+"', '"+sa[3]+"', '"+sa[4]+"', \n") .append( " '"+sa[5]+"', '"+sa[6]+"', '"+sa[7]+"', '"+sa[8]+"', '"+sa[9]+"', \n") .append( " '"+sa[10]+"', '"+sa[11]+"', '"+sa[12]+"', '"+sa[13]+"', '"+sa[14]+"', \n") .append( " '"+sa[15]+"', '"+sa[16]+"', '"+sa[17]+"', '"+sa[18]+"') \n"); GauceStatement gstmt = gconn.getGauceStatement(InsertSql.toString()); gstmt.executeUpdate(); gstmt.close(); } if(rows[j].getJobType() == GauceDataRow.TB_JOB_UPDATE) { UpdateSql = new StringBuffer(); UpdateSql.append( " UPDATE TRANSFER.LTUSER \n" ) .append( " SET USERPW = '" + sa[1] + "', \n" ) .append( " USERNM = '" + sa[2] + "', \n" ) .append( " REGNO = '" + sa[3] + "', \n" ) .append( " ZIPCD = '" + sa[4] + "', \n" ) .append( " ADDR1 = '" + sa[5] + "', \n" ) .append( " ADDR2 = '" + sa[6] + "', \n" ) .append( " REGNM = '" + sa[7] + "', \n" ) .append( " TEL1 = '" + sa[8] + "', \n" ) .append( " TEL2 = '" + sa[9] + "', \n" ) .append( " TEL3 = '" + sa[10] + "', \n" ) .append( " FAX1 = '" + sa[11] + "', \n" ) .append( " FAX2 = '" + sa[12] + "', \n" ) .append( " FAX3 = '" + sa[13] + "', \n" ) .append( " MOBILE1 = '" + sa[14] + "', \n" ) .append( " MOBILE2 = '" + sa[15] + "', \n" ) .append( " MOBILE3 = '" + sa[16] + "', \n" ) .append( " EMAIL = '" + sa[17] + "', \n" ) .append( " RELPART = '" + sa[18] + "' \n" ) .append( " WHERE USERID = UPPER('" + sa[0] + "') " ); logger.dbg.println(this,UpdateSql.toString()); GauceStatement gstmt = gconn.getGauceStatement(UpdateSql.toString()); gstmt.executeUpdate(); gstmt.close(); } if(rows[j].getJobType() == GauceDataRow.TB_JOB_DELETE ) { DeleteSql = new StringBuffer(); DeleteSql.append( " DELETE FROM TRANSFER.LTUSER WHERE USERID = UPPER('" + sa[0] + "') " ); GauceStatement gstmt = gconn.getGauceStatement(DeleteSql.toString()); gstmt.executeUpdate(); } } } catch(Exception e){ GauceRes.writeException("Native","1111","저장시 알수없는 에러발생!!(Error Code :"+e.toString()+")"); } GauceRes.flush(); GauceRes.commit(); GauceRes.close(); } catch (Exception e) { logger.err.println(this,e); logger.dbg.println(this,e.toString()); } finally { if (gconn != null) { try { gconn.close(); } catch (Exception e) {}} loader.restoreService(service); } } }
[ "86274611+evnmoon@users.noreply.github.com" ]
86274611+evnmoon@users.noreply.github.com
1e44d92091ba12d3376add84be9f3f743a94877f
250b460905f39c4d81a3b02511ac9016c7978a2a
/src/test/java/io/github/satya64/powerbi/api/services/GroupsServiceTest.java
b9b745ee835e9ba3f136e356f36f97efb4056312
[ "MIT" ]
permissive
satya64/powerbi-sdk-java
5c1fc7191a261e5d068ca43cf18048559bcac6f8
e457536e9d5e57dc6b09abe739f8d968501214fc
refs/heads/master
2022-09-01T08:15:45.811080
2020-05-17T17:28:25
2020-05-17T17:28:25
251,054,701
2
0
MIT
2020-04-29T12:33:14
2020-03-29T14:41:16
Java
UTF-8
Java
false
false
1,403
java
package io.github.satya64.powerbi.api.services; import io.github.satya64.powerbi.api.CustomMockDispatcher; import io.github.satya64.powerbi.api.TestUtils; import io.github.satya64.powerbi.api.model.Group; import io.github.satya64.powerbi.api.model.ODataResponse; import okhttp3.mockwebserver.MockWebServer; import org.junit.After; import org.junit.Before; import org.junit.Test; import retrofit2.Response; import java.io.IOException; import java.util.List; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; public class GroupsServiceTest { private MockWebServer mockWebServer = new MockWebServer(); private GroupsService groupsService; @Before public void setup() throws IOException { mockWebServer.setDispatcher(new CustomMockDispatcher.GroupServiceMockDispatcher()); mockWebServer.start(); groupsService = TestUtils.createService(mockWebServer, GroupsService.class); } @After public void teardown() throws IOException { mockWebServer.shutdown(); } @Test public void testGetGroups() throws IOException { Response<ODataResponse<List<Group>>> actual = groupsService.getGroups().execute(); assertNotNull(actual); assertNotNull(actual.body()); assertNotNull(actual.body().getValue()); assertEquals(2, actual.body().getValue().size()); } }
[ "satyan.jntuk@gmail.com" ]
satyan.jntuk@gmail.com
7da621b7bf942fbe209e9fe4e13cd4de4bd92e0b
a6bf81d4ce3cc92b838e5e97cb0bf1f08f69703d
/src/java/boa/datagen/SeqSortMerge.java
b16c38df28a215977bf66d85f72477cac34e6b98
[ "Apache-2.0" ]
permissive
ankuraga1508/compiler
15ca4fc253405ed6b490a70f4fb0d759bab8deba
6d935dbfb44a3cabc5a33357b451f6c782d2b368
refs/heads/master
2021-01-19T17:59:50.838365
2016-02-03T01:06:34
2016-02-03T01:06:34
45,808,809
0
1
null
2015-11-09T01:54:32
2015-11-09T01:54:32
null
UTF-8
Java
false
false
4,244
java
/* * Copyright 2015, Hridesh Rajan, Robert Dyer, Hoan Nguyen * and Iowa State University of Science and Technology * * 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 boa.datagen; import java.io.IOException; import java.util.Arrays; import java.util.Comparator; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.fs.FileStatus; import org.apache.hadoop.fs.FileSystem; import org.apache.hadoop.fs.Path; import org.apache.hadoop.io.BytesWritable; import org.apache.hadoop.io.SequenceFile; import org.apache.hadoop.io.SequenceFile.Reader; import org.apache.hadoop.io.Text; /** * @author hoan * @author hridesh */ public class SeqSortMerge { private static String base = "hdfs://boa-njt/"; private static Configuration conf = new Configuration(); private static final int NUM_FILES = 15; public static void main(String[] args) throws IOException { conf.set("fs.default.name", base); FileSystem fs = FileSystem.get(conf); String inPath = "/tmprepcache/2015-07-sorted/"; while (true) { FileStatus[] files = fs.listStatus(new Path(inPath)); if (files.length < 2) break; Path path = new Path(inPath + System.currentTimeMillis()); fs.mkdirs(path); SequenceFile.Writer w = SequenceFile.createWriter(fs, conf, new Path(inPath + path.getName() + "/part-00000"), Text.class, BytesWritable.class); FileStatus[] candidates = getCandidates(files); System.out.println("Merging " + candidates.length + " from " + files.length); SequenceFile.Reader[] readers = new SequenceFile.Reader[candidates.length]; for (int i = 0; i < candidates.length; i++) readers[i] = new SequenceFile.Reader(fs, new Path(inPath + candidates[i].getPath().getName() + "/part-00000"), conf); Text[] keys = new Text[candidates.length]; BytesWritable[] values = new BytesWritable[candidates.length]; read(readers, keys, values); while (true) { int index = min(keys); if (keys[index].toString().isEmpty()) break; w.append(keys[index], values[index]); read(readers[index], keys[index], values[index]); } for (int i = 0; i < readers.length; i++) readers[i].close(); w.close(); for (int i = 0; i < readers.length; i++) fs.delete(new Path(inPath + candidates[i].getPath().getName()), true); } } private static int min(Text[] keys) { int index = 0; Text min = keys[0]; for (int i = 1; i < keys.length; i++) { Text key = keys[i]; if (!key.toString().isEmpty() && key.compareTo(min) < 0) { index = i; min = key; } } return index; } private static void read(Reader[] readers, Text[] keys, BytesWritable[] values) { for (int i = 0; i < readers.length; i++) read(readers[i], keys[i], values[i]); } private static void read(Reader reader, Text key, BytesWritable val) { try { if (reader.next(key, val)) return; } catch (Throwable t) { t.printStackTrace(); } key.set(""); } private static FileStatus[] getCandidates(FileStatus[] files) throws IOException { if (files.length <= NUM_FILES) return files; Arrays.sort(files, new Comparator<FileStatus>() { @Override public int compare(FileStatus f1, FileStatus f2) { long d = 0; try { d = getLen(f1) - getLen(f2); } catch (IOException e) { e.printStackTrace(); } if (d < 0) return -1; if (d > 0) return 1; return 0; } }); FileStatus[] candidates = new FileStatus[NUM_FILES]; for (int i = 0; i < NUM_FILES; i++) candidates[i] = files[i]; return candidates; } private static long getLen(FileStatus file) throws IOException { Path path = new Path(file.getPath(), "part-00000"); long len = path.getFileSystem(conf).getFileStatus(path).getLen(); return len; } }
[ "hridesh@cs.iastate.edu" ]
hridesh@cs.iastate.edu
a4535b0cf66b11e72a35f4f3ba2f2091c82450c8
5c13f1d7b726e600324d9d02a7215adf376c3c6d
/apiman-dt/apiman-dt-api/apiman-dt-api-beans/src/main/java/org/overlord/apiman/dt/api/beans/audit/data/EntityFieldChange.java
f2c0195f4e301836877f7f44a26d31731ad2462e
[ "Apache-2.0" ]
permissive
marcospereira/apiman
8d1c5e5f193ff8feb559f7ea4775f55fb4bd8406
c9d3875e4a3e8efaf11112cedecb9d168f1a42eb
refs/heads/master
2020-12-29T02:19:20.457626
2014-11-07T20:53:22
2014-11-07T20:53:22
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,991
java
/* * Copyright 2014 JBoss Inc * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.overlord.apiman.dt.api.beans.audit.data; import org.jboss.errai.common.client.api.annotations.Portable; /** * Models a change in an entity field's value for auditing purposes. * * @author eric.wittmann@redhat.com */ @Portable public class EntityFieldChange { private String name; private String before; private String after; /** * Constructor. */ public EntityFieldChange() { } /** * Constructor. * @param name * @param before * @param after */ public EntityFieldChange(String name, String before, String after) { this.name = name; this.setBefore(before); this.setAfter(after); } /** * @return the before */ public String getBefore() { return before; } /** * @param before the before to set */ public void setBefore(String before) { this.before = before; } /** * @return the after */ public String getAfter() { return after; } /** * @param after the after to set */ public void setAfter(String after) { this.after = after; } /** * @return the name */ public String getName() { return name; } /** * @param name the name to set */ public void setName(String name) { this.name = name; } }
[ "eric.wittmann@gmail.com" ]
eric.wittmann@gmail.com
33b05dc065bcd103d128be4f350f6bc0e78e5156
6d3b2bd8e6789bfd566f9bf1c80b31065208fecc
/src/main/java/com/ycx/manager/service/UploadManager.java
b837dd1ebfb2e8428ab5f4bcf3fd045f815897b5
[]
no_license
Guoqiangxu1992/BookingMovie
e58871ff8a08e88212aad437c598ff9c789a0f27
e491144b1c2d634c22987eef756ae44dc55f8651
refs/heads/master
2021-08-19T17:17:46.754978
2017-11-27T02:10:56
2017-11-27T02:10:56
106,247,678
0
0
null
null
null
null
UTF-8
Java
false
false
514
java
/** * */ package com.ycx.manager.service; import java.io.File; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpSession; import org.springframework.web.multipart.MultipartFile; import com.ycx.manager.bean.UploadParam; /** * @author Create By Yangchunxue * @date 2016年10月20日--下午8:16:00-- * */ public interface UploadManager { public UploadParam uploadFile(HttpSession session, File f, String filename, UploadParam param, Long carId); }
[ "summer@summer-PC" ]
summer@summer-PC
700c7b3741be4457b1cf788b45a62c04b364ff82
f0d152ca12750a443942eef4c02debe8822c6592
/app/src/test/java/inkinite/com/inkinitelens/ExampleUnitTest.java
cbb08f030e65e4abf6a950022864b77a79d7efd6
[]
no_license
dpallagolla/inkinitelens
1384f222e8b9d2283399437a25cae141fb76885e
281e1eeaa6ad91548997fd22c299eb1494bb69f3
refs/heads/master
2021-01-01T04:34:59.405262
2016-05-24T09:08:41
2016-05-24T09:08:41
59,556,943
1
3
null
null
null
null
UTF-8
Java
false
false
332
java
package inkinite.com.inkinitelens; import org.junit.Test; import static org.junit.Assert.*; /** * To work on unit tests, switch the Test Artifact in the Build Variants view. */ public class ExampleUnitTest { @Test public void addition_isCorrect() throws Exception { assertEquals(4, 2 + 2); } }
[ "palla.golla.dwarakesh@sap.com" ]
palla.golla.dwarakesh@sap.com
44c2a1deb3635604d23869c9e6f29d8594947b8c
b4162e023b797eeac775800156ff398b7090886a
/app/src/androidTest/java/com/example/usapdisabler/ExampleInstrumentedTest.java
836a0ad3d28c8a667d6a95e27ee16dd66ff8e86e
[]
no_license
ChD1/usapdisabler
5f358a03814e1f934d69332acf7b2a47b5e689f0
789cbf99cbadd8e5466fc4eea44117ca00ec094e
refs/heads/main
2023-02-05T01:40:39.571421
2020-12-27T19:25:05
2020-12-27T19:25:05
324,830,949
2
0
null
null
null
null
UTF-8
Java
false
false
762
java
package com.example.usapdisabler; import android.content.Context; import androidx.test.platform.app.InstrumentationRegistry; import androidx.test.ext.junit.runners.AndroidJUnit4; import org.junit.Test; import org.junit.runner.RunWith; import static org.junit.Assert.*; /** * Instrumented test, which will execute on an Android device. * * @see <a href="http://d.android.com/tools/testing">Testing documentation</a> */ @RunWith(AndroidJUnit4.class) public class ExampleInstrumentedTest { @Test public void useAppContext() { // Context of the app under test. Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext(); assertEquals("com.example.usapdisabler", appContext.getPackageName()); } }
[ "nm.dmitry@gmail.com" ]
nm.dmitry@gmail.com
d32d21bb5ad007b0ad3c1a16c5f5e206502d2a0a
d4bc7c91ff6e28422c8769a2c32a730420540536
/src/main/java/hu/mak/Training360/WebshopAkcio/Akcio.java
2c28fcd3769f5e312d200733cd478c530634ac63
[]
no_license
Romas99/WebshopAkcio
d26fa3dc855fc4f64bd97b34156e47c21ba6bcee
0f3d5240b000eedfc42b7ddb71746c8d21fcbbee
refs/heads/master
2022-12-30T12:06:40.691969
2020-10-19T19:29:38
2020-10-19T19:29:38
304,249,911
0
0
null
null
null
null
UTF-8
Java
false
false
1,712
java
package hu.mak.Training360.WebshopAkcio; public enum Akcio { A_23("2=3 akció","D01", "DB",3, 0L), A_MEGA("Megapack akció","M01","MEGA",12, 6000L); private final String akcioNev; private final String akcioKod; private final String akcioTipus; private final int akcioDb; private final Long akcioFixKedv; private Akcio(String akcioNev, String akcioKod, String akcioTipus, int akcioDb, Long akcioFixKedv){ this.akcioNev = akcioNev; this.akcioKod = akcioKod; this.akcioTipus = akcioTipus; this.akcioDb = akcioDb; this.akcioFixKedv = akcioFixKedv; if (Akcio.Dummy.maxIndex == null || Akcio.Dummy.maxIndex < this.ordinal()) { Akcio.Dummy.maxIndex = this.ordinal(); } } public String getAkcioNev() { return akcioNev; } public String getAkcioKod() { return akcioKod; } public String getAkcioTipus() { return akcioTipus; } public int getAkcioDb() { return akcioDb; } public Long getAkcioFixKedv() { return akcioFixKedv; } @Override public String toString() { return "Akcio{" + "akcioNev='" + akcioNev + '\'' + ", akcioKod='" + akcioKod + '\'' + ", akcioTipus='" + akcioTipus + '\'' + ", akcioDb=" + akcioDb + ", akcioFixKedv=" + akcioFixKedv + '}'; } // This seems to be needed because you can't access static fields in enum constructors private static class Dummy { private static Integer maxIndex = null; } public static int getMaxIndex() { return Akcio.Dummy.maxIndex; } }
[ "lexus@chello.hu" ]
lexus@chello.hu
2237da08db73c2a63ddccb525a717412c6bdee9b
1f9956d176db5797169e69295cc925d7dcb30920
/krs-server/src/stta/bahrie/sisterserver/utilities/DatabaseUtilities.java
923307f71dce7baa5d1c572f250e79c4e1df1215
[]
no_license
bahrie127/sistem-krs-java-rmi
059cb5b28dfc5965364dc5aefb59693b22834c3e
9cdc00f8eeabfe7b94f26fae1169fc1c6f127a7f
refs/heads/master
2016-09-06T01:01:08.316992
2011-08-06T00:36:18
2011-08-06T00:36:18
3,830,245
5
1
null
null
null
null
UTF-8
Java
false
false
890
java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package stta.bahrie.sisterserver.utilities; import java.sql.Connection; import java.sql.DriverManager; import java.sql.SQLException; import java.util.logging.Level; import java.util.logging.Logger; /** * * @author bahrie */ public class DatabaseUtilities { private static Connection connection; public static Connection getConnection() { if (connection == null) { try { DriverManager.registerDriver(new com.mysql.jdbc.Driver()); connection=DriverManager.getConnection("jdbc:mysql://localhost:3306/sister_krs", "root", "root"); } catch (SQLException ex) { Logger.getLogger(DatabaseUtilities.class.getName()).log(Level.SEVERE, null, ex); } } return connection; } }
[ "bahrie172@gmail.com" ]
bahrie172@gmail.com
3084a7d0e66b523b21f3abf61481687c88ea3a49
23f4cb0b6e910f37f7859ac8730e578d85546bd8
/FirstData-master.zip_expanded/FirstData-master/src/main/java/de/tekup/rest/data/services/StudientServiceImpl.java
c3e649908735a3a22a7847ce56df24dce9f089c1
[]
no_license
MaherBenNacef/Spring-boot
0c7f8d28186d6cd31343fa33c0183ad29b7040fa
c6ca2d58ce8224dc28ef2714be04d375c199631e
refs/heads/main
2023-01-05T17:45:18.881964
2020-11-01T20:18:20
2020-11-01T20:18:20
309,179,400
0
0
null
null
null
null
UTF-8
Java
false
false
3,033
java
package de.tekup.rest.data.services; import java.util.ArrayList; import java.util.List; import java.util.NoSuchElementException; import java.util.Optional; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import de.tekup.rest.data.models.ClassRoomEntity; import de.tekup.rest.data.models.GamesEntity; import de.tekup.rest.data.models.PersonEntity; import de.tekup.rest.data.models.StudentEntity; import de.tekup.rest.data.models.TelephoneNumberEntity; import de.tekup.rest.data.repositories.ClassRoomRepository; import de.tekup.rest.data.repositories.GamesRepository; import de.tekup.rest.data.repositories.StudientRepository; import de.tekup.rest.data.repositories.TelephoneNumberRepository; @Service public class StudientServiceImpl implements StudientService{ private StudientRepository respo; private ClassRoomRepository repo; private TelephoneNumberRepository rep; private GamesRepository repository; @Autowired public StudientServiceImpl(StudientRepository respo, ClassRoomRepository repo, TelephoneNumberRepository rep, GamesRepository repository) { super(); this.respo = respo; this.repo = repo; this.rep = rep; this.repository = repository; } @Override public StudentEntity createStudientEntity(StudentEntity entity) { ClassRoomEntity room =entity.getClassRoom(); ClassRoomEntity RoomInBase= repo.save(room); entity.setClassRoom(RoomInBase); entity = respo.save(entity); //save person in telephoneNumber so this is why we add tel.setStudent in the for for (TelephoneNumberEntity tel : entity.getTelephoneNumber()) { tel.setStudent(entity); rep.save(tel); } List<StudentEntity> student; for(GamesEntity games : entity.getGame()) { if(games.getStudent()!=null) { student=games.getStudent(); }else { student=new ArrayList<>(); } student.add(entity); games.setStudent(student); repository.save(games); } return entity; } @Override public StudentEntity deleteStudientEntityById(long id) { StudentEntity entity = this.getStudientEntityById(id); respo.deleteById(id); return entity; } @Override public List<StudentEntity> getAllStudientEntities() { // TODO Auto-generated method stub return respo.findAll(); } @Override public StudentEntity getStudientEntityById(long id) { StudentEntity entity; Optional<StudentEntity> opt = respo.findById(id); if(opt.isPresent()) entity = opt.get(); else throw new NoSuchElementException("Studient with this id is not found"); return entity; } @Override public StudentEntity modifyStudientEntity(long id, StudentEntity entity) { StudentEntity oldEntity = this.getStudientEntityById(id); if(entity.getName() != null) oldEntity.setName(entity.getName()); if(entity.getCode() != 0) oldEntity.setCode(entity.getCode()); return respo.save(oldEntity); } }
[ "noreply@github.com" ]
noreply@github.com
5930deb298bfbfdee6de4302bec2cfb11dd01e5d
5042557ebb9918defc8e8d9b63df7ce1216c2590
/src/main/java/tw/gov/ndc/emsg/mydata/web/Waiting429DownloadAndFtp.java
2ea4a04b4bd6fec2f64170bd632ea335a039d47d
[]
no_license
jennyming622/mydata-master
71f4b5dde8c64401d55672e6986fc70c844d16c8
cfa5c6dbc4669ce7450058c3873d30b1b4cbb087
refs/heads/main
2023-07-10T03:35:19.493574
2021-08-09T07:50:24
2021-08-09T07:50:24
394,197,542
0
3
null
null
null
null
UTF-8
Java
false
false
60,050
java
package tw.gov.ndc.emsg.mydata.web; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.net.HttpURLConnection; import java.net.InetAddress; import java.net.URL; import java.nio.file.Files; import java.nio.file.Paths; import java.security.KeyManagementException; import java.security.NoSuchAlgorithmException; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Arrays; import java.util.Base64; import java.util.Calendar; import java.util.Date; import java.util.GregorianCalendar; import java.util.HashMap; import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.Map.Entry; import javax.net.ssl.HttpsURLConnection; import com.riease.common.enums.ActionEvent; import com.riease.common.helper.HttpClientHelper; import com.riease.common.helper.SequenceHelper; import com.riease.common.helper.ValidatorHelper; import org.apache.commons.io.FileUtils; import org.apache.commons.io.FilenameUtils; import org.apache.commons.lang3.BooleanUtils; import org.apache.commons.lang3.StringUtils; import org.apache.commons.net.ftp.FTP; import org.apache.commons.net.ftp.FTPClient; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.HttpStatus; import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.ObjectMapper; import com.riease.common.sysinit.SessionRecord; import com.riease.common.util.SslUtils; import net.lingala.zip4j.exception.ZipException; import tw.gov.ndc.emsg.mydata.Config; import tw.gov.ndc.emsg.mydata.entity.*; import tw.gov.ndc.emsg.mydata.mapper.PortalBatchDownloadMapper; import tw.gov.ndc.emsg.mydata.mapper.PortalBoxMapper; import tw.gov.ndc.emsg.mydata.mapper.PortalResourceDownloadMapper; import tw.gov.ndc.emsg.mydata.mapper.PortalServiceDownloadMapper; import tw.gov.ndc.emsg.mydata.type.RequestType; import tw.gov.ndc.emsg.mydata.type.SendType; import tw.gov.ndc.emsg.mydata.util.DigestUtil; import tw.gov.ndc.emsg.mydata.util.MailUtil; import tw.gov.ndc.emsg.mydata.util.SMSUtil; import tw.gov.ndc.emsg.mydata.util.SendLogUtil; import tw.gov.ndc.emsg.mydata.util.UlogUtil; public class Waiting429DownloadAndFtp extends Thread { private static Logger logger = LoggerFactory.getLogger(Waiting429DownloadAndFtp.class); private static SimpleDateFormat sdf7 = new SimpleDateFormat("yyyy年MM月dd日HH時mm分"); private static SimpleDateFormat sdf8 = new SimpleDateFormat("yyyy/M/d HH:mm"); private static final int BUFFER_SIZE = 4096; private int next = 0; private File tempFile; private String ftpHost; private String ftpUsername; private String ftpPassword; private String ftpSecretkey; private int wait_time; private PortalResource portalResource; private PortalService portalService; private PortalResourceDownloadMapper portalResourceDownloadMapper; private PortalBoxMapper portalBoxMapper; private PortalBatchDownloadMapper portalBatchDownloadMapper; private PortalServiceDownloadMapper portalServiceDownloadMapper; private UlogUtil ulogUtil; private SendLogUtil sendLogUtil; private SessionRecord sr; private String transactionUid; private Map<String, Object> paramMap; private Integer batchId; private Integer psdId; private static Base64.Encoder base64Encoder = Base64.getEncoder(); private static Base64.Decoder base64Decoder = Base64.getDecoder(); private String scopeStr; private String tmpBoxId; private String txId; public Waiting429DownloadAndFtp(int next,File tempFile,String ftpHost,String ftpUsername,String ftpPassword,int wait_time,String ftpSecretkey, PortalResource portalResource,PortalResourceDownloadMapper portalResourceDownloadMapper,PortalBoxMapper portalBoxMapper, UlogUtil ulogUtil,SendLogUtil sendLogUtil,SessionRecord sr,String transactionUid,Map<String, Object> paramMap,Integer batchId,Integer psdId, PortalBatchDownloadMapper portalBatchDownloadMapper, PortalServiceDownloadMapper portalServiceDownloadMapper, String scopeStr, PortalService portalService, String txId) throws NoSuchAlgorithmException, KeyManagementException { this.next = (next+1); this.tempFile = tempFile; this.ftpHost = ftpHost; this.ftpUsername = ftpUsername; this.ftpPassword = ftpPassword; this.wait_time = wait_time; this.ftpSecretkey = ftpSecretkey; this.portalResource = portalResource; this.portalResourceDownloadMapper = portalResourceDownloadMapper; this.portalBoxMapper = portalBoxMapper; this.ulogUtil = ulogUtil; this.sendLogUtil = sendLogUtil; this.sr = sr; this.transactionUid = transactionUid; this.paramMap = paramMap; this.batchId = batchId; this.psdId = psdId; this.portalBatchDownloadMapper = portalBatchDownloadMapper; this.portalServiceDownloadMapper = portalServiceDownloadMapper; this.scopeStr = scopeStr; this.portalService = portalService; this.txId = txId; } /** * 一定是ActionType=1,標準流程 * @throws Exception * * 429流程控制 * /rest/personal/apply/{prId} * /rest/mutipledownload/apply/{prIdEncode} * /rest/service/apply/{psId} * 當第二次延長時間時 (均須延長),但需考慮有否多Thread未完成情形 * portalResourceDownloadMapper(無) * portalBatchDownloadMapper(有)----> 先不考慮,因目前沒有線上回問流程 * portalServiceDownloadMapper(有) * portalBoxMapper(無) */ public void run() { logger.info("[{}] ===Waiting429DownloadAndFtp start=== ", transactionUid); int httpstatuscode = 0; Integer retryAfter = 0; ObjectMapper om = new ObjectMapper(); String tmpUrl = portalResource.getDataEndpoint(); if(wait_time>0) { try { Thread.sleep(wait_time*1000); logger.info("[{}] -- sleep {} sec --", transactionUid, wait_time); } catch (InterruptedException e) { logger.error(e.getLocalizedMessage(), e); } } String account = null; try { logger.info("[{}] member >> {}",transactionUid, new ObjectMapper().writeValueAsString(sr.getMember())); account = SessionMember.getSessionMemberToMember(sr.getMember()).getAccount(); } catch(Exception e) { logger.error(e.getLocalizedMessage(), e); } if(account==null||StringUtils.isBlank(account)) { logger.error("[{}] Account not found", transactionUid); return; } Map<String, Object> param = new HashMap<String, Object>(); param.put("prId", ValidatorHelper.limitNumber(portalResource.getPrId())); param.put("providerKey", account); param.put("transactionUid", transactionUid); Calendar cal = GregorianCalendar.getInstance(); cal.setTime(new Date()); cal.add(Calendar.HOUR_OF_DAY, -8); Date startTime = cal.getTime(); param.put("sCtime", startTime); //param.put("stat", 0); param.put("code", "429"); List<PortalResourceDownload> portalResourceDownloadList = portalResourceDownloadMapper.selectByExample(param); try { if (tmpUrl.startsWith("https")) { /** * SSL disable */ SslUtils.ignoreSsl(); if (portalResource.getDataSendMethod().equalsIgnoreCase("post")) { String scopeStr1 = ""; ulogUtil.recordFullByPr(sr, portalService, txId, portalResource, transactionUid, ActionEvent.EVENT_250, scopeStr1, null, null); // post Long systime = System.currentTimeMillis(); URL connectto; connectto = new URL(portalResource.getDataEndpoint()); HttpsURLConnection conn = (HttpsURLConnection) connectto.openConnection(); conn.setRequestMethod("POST"); /** * portalResource.getDataHeader() header參數 */ logger.info("[{}] ===portalResource.getDataParam()==: {}", transactionUid, portalResource.getDataParam()); byte[] contentByteArray = null; if(portalResource.getDataParam()==null) { contentByteArray = "{}".getBytes("UTF-8"); }else { contentByteArray = PersonalRestController.replaceParamStrForPost(portalResource.getDataParam().trim(),sr).getBytes("UTF-8"); } if (portalResource.getDataHeader() != null && portalResource.getDataHeader().trim().length() > 0) { try { JsonNode jsonNode = om.readTree(PersonalRestController.replaceParamStrForPostNotAppendEscapAppendTransactionUid(portalResource.getDataHeader().trim(), sr,transactionUid,paramMap)); Iterator<Entry<String, JsonNode>> jsonNodes = jsonNode.fields(); while (jsonNodes.hasNext()) { Entry<String, JsonNode> node = jsonNodes.next(); conn.setRequestProperty(node.getKey(), node.getValue().asText()); } logger.info("[{}] contentByteArray.length= {}", transactionUid, contentByteArray.length); conn.setRequestProperty("Content-Length", String.valueOf(contentByteArray.length)); } catch (IOException e) { logger.error("[{}] {}", transactionUid, e); } } conn.setUseCaches(false); conn.setAllowUserInteraction(false); conn.setInstanceFollowRedirects(false); conn.setDoOutput(true); /** * portalResource.getDataParam() body參數 */ OutputStream os = null; try { os = conn.getOutputStream(); os.write(contentByteArray,0,contentByteArray.length); os.close(); }finally { if(os!=null) { HttpClientHelper.safeClose(os); } } /** * 連線狀態 */ httpstatuscode = conn.getResponseCode(); Long endTime = System.currentTimeMillis() - systime; logger.info("[{}] ===post httpstatuscode===: {}", transactionUid, httpstatuscode); if(httpstatuscode == HttpStatus.OK.value()) { // 不需處理,直接下載 200 InputStream inputStream = null; FileOutputStream outputStream = null; try { inputStream = conn.getInputStream(); outputStream = new FileOutputStream(tempFile); int bytesRead = -1; byte[] buffer = new byte[BUFFER_SIZE]; if(inputStream!=null&&outputStream!=null) { while ((bytesRead = inputStream.read(buffer)) != -1) { outputStream.write(buffer, 0, bytesRead); } } if(outputStream!=null) { outputStream.close(); } if(inputStream!=null) { inputStream.close(); } } catch (IOException e) { logger.error(e.getLocalizedMessage(), e); }finally { if(inputStream!=null) { HttpClientHelper.safeClose(inputStream); } if(outputStream!=null) { HttpClientHelper.safeClose(outputStream); } } logger.info("[{}] File downloaded", transactionUid); if(portalResourceDownloadList!=null&&portalResourceDownloadList.size()>0) { for(PortalResourceDownload prd:portalResourceDownloadList) { PortalResourceDownload prd1 = new PortalResourceDownload(); prd1.setDownloadSn(ValidatorHelper.removeSpecialCharacters(prd.getDownloadSn())); prd1.setCode("200"); prd1.setServerDownloadTime(new Date()); prd1.setResponseTime(endTime.intValue()); prd1.setDigest(DigestUtil.generateFileDigest(tempFile)); portalResourceDownloadMapper.updateByPrimaryKeySelective(prd1); } } ulogUtil.recordFullByPr(sr, portalService, txId, portalResource, transactionUid, null, scopeStr, 18, null); ulogUtil.recordFullByPr(sr, portalService, txId, portalResource, transactionUid, ActionEvent.EVENT_280, null, null, null); }else if(httpstatuscode == HttpStatus.TOO_MANY_REQUESTS.value()||httpstatuscode == HttpStatus.UPGRADE_REQUIRED.value()){ //get all headers Map<String, List<String>> headersmap = conn.getHeaderFields(); logger.info("[{}] === 429 start ===:2:", transactionUid); for (Map.Entry<String, List<String>> entry : headersmap.entrySet()) { logger.info("[{}] Key : {}, Value : {}", transactionUid, entry.getKey(), entry.getValue()); //Retry-After if(entry!=null&&entry.getKey()!=null&&entry.getKey().equalsIgnoreCase("Retry-After")) { retryAfter = ValidatorHelper.limitNumber(Integer.valueOf(entry.getValue().get(0))); } } // Waiting429DownloadAndFtp if(next<=16) { Integer nextWaittime = 0; if(portalResourceDownloadList!=null&&portalResourceDownloadList.size()>0) { PortalResourceDownload prd = portalResourceDownloadList.get(0); nextWaittime = ValidatorHelper.limitNumber(prd.getWaitTime())+retryAfter; /** * 小於90 min(5400 sec) */ if(nextWaittime<=5400) { PortalResourceDownload prd1 = new PortalResourceDownload(); prd1.setDownloadSn(ValidatorHelper.removeSpecialCharacters(prd.getDownloadSn())); prd1.setWaitTime(nextWaittime); portalResourceDownloadMapper.updateByPrimaryKeySelective(prd1); if(batchId!=null) { PortalBatchDownload portalBatchDownload = portalBatchDownloadMapper.selectByPrimaryKey(ValidatorHelper.limitNumber(batchId)); if(portalBatchDownload!=null&&portalBatchDownload.getWaitTime().compareTo(nextWaittime)<0) { PortalBatchDownload portalBatchDownload1 = new PortalBatchDownload(); portalBatchDownload1.setId(ValidatorHelper.limitNumber(portalBatchDownload.getId())); portalBatchDownload1.setWaitTime(nextWaittime); portalBatchDownloadMapper.updateByPrimaryKeySelective(portalBatchDownload1); } } if(psdId!=null) { PortalServiceDownload portalServiceDownload = portalServiceDownloadMapper.selectByPrimaryKey(ValidatorHelper.limitNumber(psdId)); if(portalServiceDownload!=null&&portalServiceDownload.getWaitTime().compareTo(nextWaittime)<0) { PortalServiceDownload portalServiceDownload1 = new PortalServiceDownload(); portalServiceDownload1.setId(ValidatorHelper.limitNumber(portalServiceDownload.getId())); portalServiceDownload1.setWaitTime(nextWaittime); portalServiceDownloadMapper.updateByPrimaryKeySelective(portalServiceDownload1); } } } } /** * box時間延長 */ if(nextWaittime<=5400) { Map<String, Object> boxparam = new HashMap<String, Object>(); boxparam.put("downloadSn", ValidatorHelper.removeSpecialCharacters(portalResourceDownloadList.get(0).getDownloadSn())); boxparam.put("ctimeDesc", true); List<PortalBox> portalBoxList = portalBoxMapper.selectByExample(boxparam); if(portalBoxList!=null&&portalBoxList.size()>0) { PortalBox box = portalBoxList.get(0); Calendar cal2 = GregorianCalendar.getInstance(); cal2.setTime(new Date()); cal2.add(Calendar.SECOND, retryAfter); Date boxStartTime = cal2.getTime(); PortalBox box1 = new PortalBox(); box1.setId(ValidatorHelper.limitNumber(box.getId())); box1.setCtime(boxStartTime); //必須判斷欄位 box1.setAgentUid(ValidatorHelper.removeSpecialCharacters(box.getAgentUid())); box1.setAgentBirthdate(ValidatorHelper.limitDate(box.getAgentBirthdate())); box1.setAgentVerify(ValidatorHelper.removeSpecialCharacters(box.getAgentVerify())); box1.setAgreeAgent(ValidatorHelper.limitNumber(box.getAgreeAgent())); portalBoxMapper.updateByPrimaryKeySelective(box1); } Waiting429DownloadAndFtp newThread = new Waiting429DownloadAndFtp(next, tempFile, ftpHost, ftpUsername, ftpPassword, retryAfter, ftpSecretkey, portalResource, portalResourceDownloadMapper,portalBoxMapper, ulogUtil, sendLogUtil, sr, transactionUid, paramMap, batchId, psdId, portalBatchDownloadMapper, portalServiceDownloadMapper, scopeStr, portalService, txId); newThread.start(); }else { if(portalResourceDownloadList!=null&&portalResourceDownloadList.size()>0) { for(PortalResourceDownload prd:portalResourceDownloadList) { PortalResourceDownload prd1 = new PortalResourceDownload(); prd1.setDownloadSn(ValidatorHelper.removeSpecialCharacters(prd.getDownloadSn())); prd1.setCode("508"); prd1.setRequestStatus(RequestType.fail.name()); prd1.setResponseTime(endTime.intValue()); portalResourceDownloadMapper.updateByPrimaryKeySelective(prd1); } ulogUtil.recordFullByPr(sr, portalService, txId, portalResource, transactionUid, null, scopeStr, 19, null); } } }else { if(portalResourceDownloadList!=null&&portalResourceDownloadList.size()>0) { for(PortalResourceDownload prd:portalResourceDownloadList) { PortalResourceDownload prd1 = new PortalResourceDownload(); prd1.setDownloadSn(ValidatorHelper.removeSpecialCharacters(prd.getDownloadSn())); prd1.setCode("508"); prd1.setRequestStatus(RequestType.fail.name()); prd1.setResponseTime(endTime.intValue()); portalResourceDownloadMapper.updateByPrimaryKeySelective(prd1); } ulogUtil.recordFullByPr(sr, portalService, txId, portalResource, transactionUid, null, scopeStr, 19, null); } } }else if(httpstatuscode == HttpStatus.NO_CONTENT.value()) { if(portalResourceDownloadList!=null&&portalResourceDownloadList.size()>0) { for(PortalResourceDownload prd:portalResourceDownloadList) { PortalResourceDownload prd1 = new PortalResourceDownload(); prd1.setDownloadSn(ValidatorHelper.removeSpecialCharacters(prd.getDownloadSn())); prd1.setCode("204"); prd1.setResponseTime(endTime.intValue()); portalResourceDownloadMapper.updateByPrimaryKeySelective(prd1); } ulogUtil.recordFullByPr(sr, portalService, txId, portalResource, transactionUid, null, scopeStr, 18, null); } } else { if(httpstatuscode == HttpStatus.FOUND.value()) { try { Map<String, List<String>> headersmap = conn.getHeaderFields(); logger.info("[{}] === 302 start ===:", transactionUid); for (Map.Entry<String, List<String>> entry : headersmap.entrySet()) { logger.info("[{}] Key : {}, Value : {}", transactionUid, entry.getKey(), entry.getValue()); } }catch(Exception e) { logger.error("[{}] {} 302 inner error!", transactionUid, e); } } if(portalResourceDownloadList!=null&&portalResourceDownloadList.size()>0) { for(PortalResourceDownload prd:portalResourceDownloadList) { PortalResourceDownload prd1 = new PortalResourceDownload(); prd1.setDownloadSn(ValidatorHelper.removeSpecialCharacters(prd.getDownloadSn())); prd1.setCode(ValidatorHelper.removeSpecialCharacters(String.valueOf(httpstatuscode))); prd1.setRequestStatus(RequestType.fail.name()); prd1.setResponseTime(endTime.intValue()); portalResourceDownloadMapper.updateByPrimaryKeySelective(prd1); } ulogUtil.recordFullByPr(sr, portalService, txId, portalResource, transactionUid, null, scopeStr, 19, null); } } }else { // get Long systime = System.currentTimeMillis(); URL connectto = new URL(portalResource.getDataEndpoint()); HttpsURLConnection conn = (HttpsURLConnection) connectto.openConnection(); conn.setRequestMethod("GET"); if (portalResource.getDataHeader() != null && portalResource.getDataHeader().trim().length() > 0) { try { JsonNode jsonNode = om.readTree(PersonalRestController.replaceParamStrForPostNotAppendEscapAppendTransactionUid(portalResource.getDataHeader().trim(), sr,transactionUid,paramMap)); Iterator<Entry<String, JsonNode>> jsonNodes = jsonNode.fields(); while (jsonNodes.hasNext()) { Entry<String, JsonNode> node = jsonNodes.next(); conn.setRequestProperty(node.getKey(), node.getValue().asText()); } } catch (IOException e) { logger.error("[{}] {}", transactionUid, e); } } conn.setUseCaches(false); conn.setAllowUserInteraction(false); conn.setInstanceFollowRedirects(false); conn.setDoOutput(true); /** * portalResource.getDataParam() body參數 */ /** * 連線狀態 */ httpstatuscode = conn.getResponseCode(); Long endTime = System.currentTimeMillis() - systime; logger.info("[{}] ===get httpstatuscode===: {}", transactionUid, httpstatuscode); if(httpstatuscode == HttpStatus.OK.value()) { // 不需處理,直接下載 200 InputStream inputStream = null; FileOutputStream outputStream = null; try { inputStream = conn.getInputStream(); outputStream = new FileOutputStream(tempFile); int bytesRead = -1; byte[] buffer = new byte[BUFFER_SIZE]; if(inputStream!=null&&outputStream!=null) { while ((bytesRead = inputStream.read(buffer)) != -1) { outputStream.write(buffer, 0, bytesRead); } } if(outputStream!=null) { outputStream.close(); } if(inputStream!=null) { inputStream.close(); } } catch (IOException e) { logger.error(e.getLocalizedMessage(), e); }finally { if(inputStream!=null) { HttpClientHelper.safeClose(inputStream); } if(outputStream!=null) { HttpClientHelper.safeClose(outputStream); } } logger.info("[{}] File downloaded ", transactionUid); if(portalResourceDownloadList!=null&&portalResourceDownloadList.size()>0) { for(PortalResourceDownload prd:portalResourceDownloadList) { PortalResourceDownload prd1 = new PortalResourceDownload(); prd1.setDownloadSn(ValidatorHelper.removeSpecialCharacters(prd.getDownloadSn())); prd1.setCode("200"); prd1.setServerDownloadTime(new Date()); prd1.setResponseTime(endTime.intValue()); prd1.setDigest(DigestUtil.generateFileDigest(tempFile)); portalResourceDownloadMapper.updateByPrimaryKeySelective(prd1); } } ulogUtil.recordFullByPr(sr, portalService, txId, portalResource, transactionUid, null, scopeStr, 18, null); ulogUtil.recordFullByPr(sr, portalService, txId, portalResource, transactionUid, ActionEvent.EVENT_280, null, null, null); }else if(httpstatuscode == HttpStatus.TOO_MANY_REQUESTS.value()||httpstatuscode == HttpStatus.UPGRADE_REQUIRED.value()){ //429 //get all headers logger.info("[{}] === 429 start ===:2: ", transactionUid); Map<String, List<String>> headersmap = conn.getHeaderFields(); for (Map.Entry<String, List<String>> entry : headersmap.entrySet()) { logger.info("[{}] Key : {}, Value : {}", transactionUid, entry.getKey(), entry.getValue()); //Retry-After if(entry!=null&&entry.getKey()!=null&&entry.getKey().equalsIgnoreCase("Retry-After")) { retryAfter = ValidatorHelper.limitNumber(Integer.valueOf(entry.getValue().get(0))); } } // Waiting429DownloadAndFtp if(next<=16) { Integer nextWaittime = 0; if(portalResourceDownloadList!=null&&portalResourceDownloadList.size()>0) { PortalResourceDownload prd = portalResourceDownloadList.get(0); nextWaittime = ValidatorHelper.limitNumber(prd.getWaitTime())+retryAfter; /** * 小於90 min(5400 sec) */ if(nextWaittime<=5400) { PortalResourceDownload prd1 = new PortalResourceDownload(); prd1.setDownloadSn(ValidatorHelper.removeSpecialCharacters(prd.getDownloadSn())); prd1.setWaitTime(nextWaittime); portalResourceDownloadMapper.updateByPrimaryKeySelective(prd1); if(batchId!=null) { PortalBatchDownload portalBatchDownload = portalBatchDownloadMapper.selectByPrimaryKey(ValidatorHelper.limitNumber(batchId)); if(portalBatchDownload!=null&&portalBatchDownload.getWaitTime().compareTo(nextWaittime)<0) { PortalBatchDownload portalBatchDownload1 = new PortalBatchDownload(); portalBatchDownload1.setId(ValidatorHelper.limitNumber(portalBatchDownload.getId())); portalBatchDownload1.setWaitTime(nextWaittime); portalBatchDownloadMapper.updateByPrimaryKeySelective(portalBatchDownload1); } } if(psdId!=null) { PortalServiceDownload portalServiceDownload = portalServiceDownloadMapper.selectByPrimaryKey(ValidatorHelper.limitNumber(psdId)); if(portalServiceDownload!=null&&portalServiceDownload.getWaitTime().compareTo(nextWaittime)<0) { PortalServiceDownload portalServiceDownload1= new PortalServiceDownload(); portalServiceDownload1.setId(ValidatorHelper.limitNumber(portalServiceDownload.getId())); portalServiceDownload1.setWaitTime(nextWaittime); portalServiceDownloadMapper.updateByPrimaryKeySelective(portalServiceDownload1); } } } } /** * box時間延長 */ if(nextWaittime<=5400) { Map<String, Object> boxparam = new HashMap<String, Object>(); boxparam.put("downloadSn", ValidatorHelper.removeSpecialCharacters(portalResourceDownloadList.get(0).getDownloadSn())); boxparam.put("ctimeDesc", true); List<PortalBox> portalBoxList = portalBoxMapper.selectByExample(boxparam); if(portalBoxList!=null&&portalBoxList.size()>0) { PortalBox box = portalBoxList.get(0); Calendar cal2 = GregorianCalendar.getInstance(); cal2.setTime(new Date()); cal2.add(Calendar.SECOND, retryAfter); Date boxStartTime = cal2.getTime(); PortalBox box1 = new PortalBox(); box1.setId(ValidatorHelper.limitNumber(box.getId())); box1.setCtime(boxStartTime); //必須判斷欄位 box1.setAgentUid(ValidatorHelper.removeSpecialCharacters(box.getAgentUid())); box1.setAgentBirthdate(ValidatorHelper.limitDate(box.getAgentBirthdate())); box1.setAgentVerify(ValidatorHelper.removeSpecialCharacters(box.getAgentVerify())); box1.setAgreeAgent(ValidatorHelper.limitNumber(box.getAgreeAgent())); portalBoxMapper.updateByPrimaryKeySelective(box1); } Waiting429DownloadAndFtp newThread = new Waiting429DownloadAndFtp(next, tempFile, ftpHost, ftpUsername, ftpPassword, retryAfter, ftpSecretkey, portalResource, portalResourceDownloadMapper,portalBoxMapper, ulogUtil, sendLogUtil, sr, transactionUid, paramMap, batchId, psdId, portalBatchDownloadMapper, portalServiceDownloadMapper, scopeStr, portalService, txId); newThread.start(); }else { if(portalResourceDownloadList!=null&&portalResourceDownloadList.size()>0) { for(PortalResourceDownload prd:portalResourceDownloadList) { PortalResourceDownload prd1 = new PortalResourceDownload(); prd1.setDownloadSn(ValidatorHelper.removeSpecialCharacters(prd.getDownloadSn())); prd1.setCode("508"); prd1.setRequestStatus(RequestType.fail.name()); prd1.setResponseTime(endTime.intValue()); portalResourceDownloadMapper.updateByPrimaryKeySelective(prd1); } ulogUtil.recordFullByPr(sr, portalService, txId, portalResource, transactionUid, null, scopeStr, 19, null); } } }else { if(portalResourceDownloadList!=null&&portalResourceDownloadList.size()>0) { for(PortalResourceDownload prd:portalResourceDownloadList) { PortalResourceDownload prd1 = new PortalResourceDownload(); prd1.setDownloadSn(ValidatorHelper.removeSpecialCharacters(prd.getDownloadSn())); prd1.setCode("508"); prd1.setRequestStatus(RequestType.fail.name()); prd1.setResponseTime(endTime.intValue()); portalResourceDownloadMapper.updateByPrimaryKeySelective(prd1); } ulogUtil.recordFullByPr(sr, portalService, txId, portalResource, transactionUid, null, scopeStr, 19, null); } } }else if(httpstatuscode == HttpStatus.NO_CONTENT.value()) { if(portalResourceDownloadList!=null&&portalResourceDownloadList.size()>0) { for(PortalResourceDownload prd:portalResourceDownloadList) { PortalResourceDownload prd1 = new PortalResourceDownload(); prd1.setDownloadSn(ValidatorHelper.removeSpecialCharacters(prd.getDownloadSn())); prd1.setCode("204"); prd1.setResponseTime(endTime.intValue()); portalResourceDownloadMapper.updateByPrimaryKeySelective(prd1); } ulogUtil.recordFullByPr(sr, portalService, txId, portalResource, transactionUid, null, scopeStr, 18, null); } } else { if(httpstatuscode == HttpStatus.FOUND.value()) { try { Map<String, List<String>> headersmap = conn.getHeaderFields(); logger.info("[{}] === 302 start ===:", transactionUid); for (Map.Entry<String, List<String>> entry : headersmap.entrySet()) { logger.info("[{}] Key : {}, Value : {}", transactionUid, entry.getKey(), entry.getValue()); } }catch(Exception e) { logger.error("[{}] {} 302 inner error!", transactionUid, e); } } if(portalResourceDownloadList!=null&&portalResourceDownloadList.size()>0) { for(PortalResourceDownload prd:portalResourceDownloadList) { PortalResourceDownload prd1 = new PortalResourceDownload(); prd1.setDownloadSn(ValidatorHelper.removeSpecialCharacters(prd.getDownloadSn())); prd1.setCode(ValidatorHelper.removeSpecialCharacters(String.valueOf(httpstatuscode))); prd1.setRequestStatus(RequestType.fail.name()); prd1.setResponseTime(endTime.intValue()); portalResourceDownloadMapper.updateByPrimaryKeySelective(prd1); } ulogUtil.recordFullByPr(sr, portalService, txId, portalResource, transactionUid, null, scopeStr, 19, null); } } } }else { if (portalResource.getDataSendMethod().equalsIgnoreCase("post")) { // post Long systime = System.currentTimeMillis(); URL connectto = new URL(portalResource.getDataEndpoint()); HttpURLConnection conn = (HttpURLConnection) connectto.openConnection(); conn.setRequestMethod("POST"); /** * portalResource.getDataHeader() header參數 */ logger.info("[{}] ===portalResource.getDataParam()==: {}", transactionUid, portalResource.getDataParam()); byte[] contentByteArray = null; if(portalResource.getDataParam()==null) { contentByteArray = "{}".getBytes("UTF-8"); }else { contentByteArray = PersonalRestController.replaceParamStrForPost(portalResource.getDataParam().trim(),sr).getBytes("UTF-8"); } if (portalResource.getDataHeader() != null && portalResource.getDataHeader().trim().length() > 0) { try { JsonNode jsonNode = om.readTree(PersonalRestController.replaceParamStrForPostNotAppendEscapAppendTransactionUid(portalResource.getDataHeader().trim(), sr,transactionUid,paramMap)); Iterator<Entry<String, JsonNode>> jsonNodes = jsonNode.fields(); while (jsonNodes.hasNext()) { Entry<String, JsonNode> node = jsonNodes.next(); conn.setRequestProperty(node.getKey(), node.getValue().asText()); } logger.info("[{}] contentByteArray.length= {}", transactionUid, contentByteArray.length); conn.setRequestProperty("Content-Length", String.valueOf(contentByteArray.length)); } catch (IOException e) { logger.error("[{}] {}", transactionUid, e); } } conn.setUseCaches(false); conn.setAllowUserInteraction(false); conn.setInstanceFollowRedirects(false); conn.setDoOutput(true); /** * portalResource.getDataParam() body參數 */ OutputStream os = null; try { os = conn.getOutputStream(); os.write(contentByteArray,0,contentByteArray.length); os.close(); }finally { if(os!=null) { HttpClientHelper.safeClose(os); } } /** * 連線狀態 */ httpstatuscode = conn.getResponseCode(); Long endTime = System.currentTimeMillis() - systime; logger.info("[{}] ===post httpstatuscode===: {}", transactionUid, httpstatuscode); if(httpstatuscode == HttpStatus.OK.value()) { // 不需處理,直接下載 200 InputStream inputStream = null; FileOutputStream outputStream = null; try { inputStream = conn.getInputStream(); outputStream = new FileOutputStream(tempFile); int bytesRead = -1; byte[] buffer = new byte[BUFFER_SIZE]; if(inputStream!=null&&outputStream!=null) { while ((bytesRead = inputStream.read(buffer)) != -1) { outputStream.write(buffer, 0, bytesRead); } } if(outputStream!=null) { outputStream.close(); } if(inputStream!=null) { inputStream.close(); } } catch (IOException e) { logger.error(e.getLocalizedMessage(), e); }finally { if(inputStream!=null) { HttpClientHelper.safeClose(inputStream); } if(outputStream!=null) { HttpClientHelper.safeClose(outputStream); } } logger.info("[{}] File downloaded ", transactionUid); if(portalResourceDownloadList!=null&&portalResourceDownloadList.size()>0) { for(PortalResourceDownload prd:portalResourceDownloadList) { PortalResourceDownload prd1 = new PortalResourceDownload(); prd1.setDownloadSn(ValidatorHelper.removeSpecialCharacters(prd.getDownloadSn())); prd1.setCode("200"); prd1.setServerDownloadTime(new Date()); prd1.setResponseTime(endTime.intValue()); prd1.setDigest(DigestUtil.generateFileDigest(tempFile)); portalResourceDownloadMapper.updateByPrimaryKeySelective(prd1); } } ulogUtil.recordFullByPr(sr, portalService, txId, portalResource, transactionUid, null, scopeStr, 18, null); ulogUtil.recordFullByPr(sr, portalService, txId, portalResource, transactionUid, ActionEvent.EVENT_280, null, null, null); }else if(httpstatuscode == HttpStatus.TOO_MANY_REQUESTS.value()||httpstatuscode == HttpStatus.UPGRADE_REQUIRED.value()){ //get all headers logger.info("[{}] === 429 start ===:2: ", transactionUid); Map<String, List<String>> headersmap = conn.getHeaderFields(); for (Map.Entry<String, List<String>> entry : headersmap.entrySet()) { logger.info("[{}] Key : {} , Value : {} ", transactionUid, entry.getKey(), entry.getValue()); //Retry-After if(entry!=null&&entry.getKey()!=null&&entry.getKey().equalsIgnoreCase("Retry-After")) { retryAfter = ValidatorHelper.limitNumber(Integer.valueOf(entry.getValue().get(0))); } } // Waiting429DownloadAndFtp if(next<=16) { Integer nextWaittime = 0; if(portalResourceDownloadList!=null&&portalResourceDownloadList.size()>0) { PortalResourceDownload prd = portalResourceDownloadList.get(0); nextWaittime = ValidatorHelper.limitNumber(prd.getWaitTime())+retryAfter; /** * 小於90 min(5400 sec) */ if(nextWaittime<=5400) { PortalResourceDownload prd1 = new PortalResourceDownload(); prd1.setDownloadSn(ValidatorHelper.removeSpecialCharacters(prd.getDownloadSn())); prd1.setWaitTime(nextWaittime); portalResourceDownloadMapper.updateByPrimaryKeySelective(prd1); if(batchId!=null) { PortalBatchDownload portalBatchDownload = portalBatchDownloadMapper.selectByPrimaryKey(ValidatorHelper.limitNumber(batchId)); if(portalBatchDownload!=null&&portalBatchDownload.getWaitTime().compareTo(nextWaittime)<0) { PortalBatchDownload portalBatchDownload1 = new PortalBatchDownload(); portalBatchDownload1.setId(ValidatorHelper.limitNumber(portalBatchDownload.getId())); portalBatchDownload1.setWaitTime(nextWaittime); portalBatchDownloadMapper.updateByPrimaryKeySelective(portalBatchDownload1); } } if(psdId!=null) { PortalServiceDownload portalServiceDownload = portalServiceDownloadMapper.selectByPrimaryKey(ValidatorHelper.limitNumber(psdId)); if(portalServiceDownload!=null&&portalServiceDownload.getWaitTime().compareTo(nextWaittime)<0) { PortalServiceDownload portalServiceDownload1= new PortalServiceDownload(); portalServiceDownload1.setId(ValidatorHelper.limitNumber(portalServiceDownload.getId())); portalServiceDownload1.setWaitTime(nextWaittime); portalServiceDownloadMapper.updateByPrimaryKeySelective(portalServiceDownload1); } } } } /** * box時間延長 */ if(nextWaittime<=5400) { Map<String, Object> boxparam = new HashMap<String, Object>(); boxparam.put("downloadSn", ValidatorHelper.removeSpecialCharacters(portalResourceDownloadList.get(0).getDownloadSn())); boxparam.put("ctimeDesc", true); List<PortalBox> portalBoxList = portalBoxMapper.selectByExample(boxparam); if(portalBoxList!=null&&portalBoxList.size()>0) { PortalBox box = portalBoxList.get(0); Calendar cal2 = GregorianCalendar.getInstance(); cal2.setTime(new Date()); cal2.add(Calendar.SECOND, retryAfter); Date boxStartTime = cal2.getTime(); PortalBox box1 = new PortalBox(); box1.setId(ValidatorHelper.limitNumber(box.getId())); box1.setCtime(boxStartTime); //必須判斷欄位 box1.setAgentUid(ValidatorHelper.removeSpecialCharacters(box.getAgentUid())); box1.setAgentBirthdate(ValidatorHelper.limitDate(box.getAgentBirthdate())); box1.setAgentVerify(ValidatorHelper.removeSpecialCharacters(box.getAgentVerify())); box1.setAgreeAgent(ValidatorHelper.limitNumber(box.getAgreeAgent())); portalBoxMapper.updateByPrimaryKeySelective(box1); } Waiting429DownloadAndFtp newThread = new Waiting429DownloadAndFtp(next, tempFile, ftpHost, ftpUsername, ftpPassword, retryAfter, ftpSecretkey, portalResource, portalResourceDownloadMapper,portalBoxMapper, ulogUtil, sendLogUtil, sr, transactionUid, paramMap, batchId, psdId, portalBatchDownloadMapper, portalServiceDownloadMapper, scopeStr, portalService, txId); newThread.start(); }else { if(portalResourceDownloadList!=null&&portalResourceDownloadList.size()>0) { for(PortalResourceDownload prd:portalResourceDownloadList) { PortalResourceDownload prd1 = new PortalResourceDownload(); prd1.setDownloadSn(ValidatorHelper.removeSpecialCharacters(prd.getDownloadSn())); prd1.setCode("508"); prd1.setRequestStatus(RequestType.fail.name()); prd1.setResponseTime(endTime.intValue()); portalResourceDownloadMapper.updateByPrimaryKeySelective(prd1); } ulogUtil.recordFullByPr(sr, portalService, txId, portalResource, transactionUid, null, scopeStr, 19, null); } } }else { if(portalResourceDownloadList!=null&&portalResourceDownloadList.size()>0) { for(PortalResourceDownload prd:portalResourceDownloadList) { PortalResourceDownload prd1 = new PortalResourceDownload(); prd1.setDownloadSn(ValidatorHelper.removeSpecialCharacters(prd.getDownloadSn())); prd1.setCode("508"); prd1.setRequestStatus(RequestType.fail.name()); prd1.setResponseTime(endTime.intValue()); portalResourceDownloadMapper.updateByPrimaryKeySelective(prd1); } ulogUtil.recordFullByPr(sr, portalService, txId, portalResource, transactionUid, null, scopeStr, 19, null); } } }else if(httpstatuscode == HttpStatus.NO_CONTENT.value()) { if(portalResourceDownloadList!=null&&portalResourceDownloadList.size()>0) { for(PortalResourceDownload prd:portalResourceDownloadList) { PortalResourceDownload prd1 = new PortalResourceDownload(); prd1.setDownloadSn(ValidatorHelper.removeSpecialCharacters(prd.getDownloadSn())); prd1.setCode("204"); prd1.setResponseTime(endTime.intValue()); portalResourceDownloadMapper.updateByPrimaryKeySelective(prd1); } ulogUtil.recordFullByPr(sr, portalService, txId, portalResource, transactionUid, null, scopeStr, 18, null); } }else { if(portalResourceDownloadList!=null&&portalResourceDownloadList.size()>0) { for(PortalResourceDownload prd:portalResourceDownloadList) { PortalResourceDownload prd1 = new PortalResourceDownload(); prd1.setDownloadSn(ValidatorHelper.removeSpecialCharacters(prd.getDownloadSn())); prd1.setCode(ValidatorHelper.removeSpecialCharacters(String.valueOf(httpstatuscode))); prd1.setRequestStatus(RequestType.fail.name()); prd1.setResponseTime(endTime.intValue()); portalResourceDownloadMapper.updateByPrimaryKeySelective(prd1); } ulogUtil.recordFullByPr(sr, portalService, txId, portalResource, transactionUid, null, scopeStr, 19, null); } } }else { Long systime = System.currentTimeMillis(); // get URL connectto = new URL(portalResource.getDataEndpoint()); HttpURLConnection conn = (HttpURLConnection) connectto.openConnection(); conn.setRequestMethod("GET"); if (portalResource.getDataHeader() != null && portalResource.getDataHeader().trim().length() > 0) { try { JsonNode jsonNode = om.readTree(PersonalRestController.replaceParamStrForPostNotAppendEscapAppendTransactionUid(portalResource.getDataHeader().trim(), sr,transactionUid,paramMap)); Iterator<Entry<String, JsonNode>> jsonNodes = jsonNode.fields(); while (jsonNodes.hasNext()) { Entry<String, JsonNode> node = jsonNodes.next(); conn.setRequestProperty(node.getKey(), node.getValue().asText()); } } catch (IOException e) { logger.error("[{}] {}", transactionUid, e); } } conn.setUseCaches(false); conn.setAllowUserInteraction(false); conn.setInstanceFollowRedirects(false); conn.setDoOutput(true); /** * portalResource.getDataParam() body參數 */ /** * 連線狀態 */ httpstatuscode = conn.getResponseCode(); Long endTime = System.currentTimeMillis() - systime; logger.info("[{}] ===get httpstatuscode===: {} ", transactionUid, httpstatuscode); if(httpstatuscode == HttpStatus.OK.value()) { // 不需處理,直接下載 200 InputStream inputStream = null; FileOutputStream outputStream = null; try { inputStream = conn.getInputStream(); outputStream = new FileOutputStream(tempFile); int bytesRead = -1; byte[] buffer = new byte[BUFFER_SIZE]; if(inputStream!=null&&outputStream!=null) { while ((bytesRead = inputStream.read(buffer)) != -1) { outputStream.write(buffer, 0, bytesRead); } } if(outputStream!=null) { outputStream.close(); } if(inputStream!=null) { inputStream.close(); } } catch (IOException e) { logger.error(e.getLocalizedMessage(), e); }finally { if(inputStream!=null) { HttpClientHelper.safeClose(inputStream); } if(outputStream!=null) { HttpClientHelper.safeClose(outputStream); } } logger.info("[{}] File downloaded", transactionUid); if(portalResourceDownloadList!=null&&portalResourceDownloadList.size()>0) { for(PortalResourceDownload prd:portalResourceDownloadList) { PortalResourceDownload prd1 = new PortalResourceDownload(); prd1.setDownloadSn(ValidatorHelper.removeSpecialCharacters(prd.getDownloadSn())); prd1.setCode("200"); prd1.setServerDownloadTime(new Date()); prd1.setResponseTime(endTime.intValue()); prd1.setDigest(DigestUtil.generateFileDigest(tempFile)); portalResourceDownloadMapper.updateByPrimaryKeySelective(prd1); } } ulogUtil.recordFullByPr(sr, portalService, txId, portalResource, transactionUid, null, scopeStr, 18, null); ulogUtil.recordFullByPr(sr, portalService, txId, portalResource, transactionUid, ActionEvent.EVENT_280, null, null, null); }else if(httpstatuscode == HttpStatus.TOO_MANY_REQUESTS.value()||httpstatuscode == HttpStatus.UPGRADE_REQUIRED.value()){ //429 //get all headers Map<String, List<String>> headersmap = conn.getHeaderFields(); logger.info("[{}] === 429 start ===:2:", transactionUid); for (Map.Entry<String, List<String>> entry : headersmap.entrySet()) { System.out.println("Key : " + entry.getKey() + " ,Value : " + entry.getValue()); //Retry-After if(entry!=null&&entry.getKey()!=null&&entry.getKey().equalsIgnoreCase("Retry-After")) { retryAfter = ValidatorHelper.limitNumber(Integer.valueOf(entry.getValue().get(0))); } } // Waiting429DownloadAndFtp if(next<=16) { Integer nextWaittime = 0; if(portalResourceDownloadList!=null&&portalResourceDownloadList.size()>0) { PortalResourceDownload prd = portalResourceDownloadList.get(0); nextWaittime = ValidatorHelper.limitNumber(prd.getWaitTime())+retryAfter; /** * 小於90 min(5400 sec) */ if(nextWaittime<=5400) { PortalResourceDownload prd1 = new PortalResourceDownload(); prd1.setDownloadSn(ValidatorHelper.removeSpecialCharacters(prd.getDownloadSn())); prd1.setWaitTime(nextWaittime); portalResourceDownloadMapper.updateByPrimaryKeySelective(prd1); if(batchId!=null) { PortalBatchDownload portalBatchDownload = portalBatchDownloadMapper.selectByPrimaryKey(ValidatorHelper.limitNumber(batchId)); if(portalBatchDownload!=null&&portalBatchDownload.getWaitTime().compareTo(nextWaittime)<0) { PortalBatchDownload portalBatchDownload1 = new PortalBatchDownload(); portalBatchDownload1.setId(ValidatorHelper.limitNumber(portalBatchDownload.getId())); portalBatchDownload1.setWaitTime(nextWaittime); portalBatchDownloadMapper.updateByPrimaryKeySelective(portalBatchDownload1); } } if(psdId!=null) { PortalServiceDownload portalServiceDownload = portalServiceDownloadMapper.selectByPrimaryKey(ValidatorHelper.limitNumber(psdId)); if(portalServiceDownload!=null&&portalServiceDownload.getWaitTime().compareTo(nextWaittime)<0) { PortalServiceDownload portalServiceDownload1= new PortalServiceDownload(); portalServiceDownload1.setId(ValidatorHelper.limitNumber(portalServiceDownload.getId())); portalServiceDownload1.setWaitTime(nextWaittime); portalServiceDownloadMapper.updateByPrimaryKeySelective(portalServiceDownload1); } } } } /** * box時間延長 */ if(nextWaittime<=5400) { Map<String, Object> boxparam = new HashMap<String, Object>(); boxparam.put("downloadSn", ValidatorHelper.removeSpecialCharacters(portalResourceDownloadList.get(0).getDownloadSn())); boxparam.put("ctimeDesc", true); List<PortalBox> portalBoxList = portalBoxMapper.selectByExample(boxparam); if(portalBoxList!=null&&portalBoxList.size()>0) { PortalBox box = portalBoxList.get(0); Calendar cal2 = GregorianCalendar.getInstance(); cal2.setTime(new Date()); cal2.add(Calendar.SECOND, retryAfter); Date boxStartTime = cal2.getTime(); PortalBox box1 = new PortalBox(); box1.setId(ValidatorHelper.limitNumber(box.getId())); box1.setCtime(boxStartTime); //必須判斷欄位 box1.setAgentUid(ValidatorHelper.removeSpecialCharacters(box.getAgentUid())); box1.setAgentBirthdate(ValidatorHelper.limitDate(box.getAgentBirthdate())); box1.setAgentVerify(ValidatorHelper.removeSpecialCharacters(box.getAgentVerify())); box1.setAgreeAgent(ValidatorHelper.limitNumber(box.getAgreeAgent())); portalBoxMapper.updateByPrimaryKeySelective(box1); } Waiting429DownloadAndFtp newThread = new Waiting429DownloadAndFtp(next, tempFile, ftpHost, ftpUsername, ftpPassword, retryAfter, ftpSecretkey, portalResource, portalResourceDownloadMapper,portalBoxMapper, ulogUtil, sendLogUtil, sr, transactionUid, paramMap, batchId, psdId, portalBatchDownloadMapper, portalServiceDownloadMapper, scopeStr, portalService, txId); newThread.start(); }else { if(portalResourceDownloadList!=null&&portalResourceDownloadList.size()>0) { for(PortalResourceDownload prd:portalResourceDownloadList) { PortalResourceDownload prd1 = new PortalResourceDownload(); prd1.setDownloadSn(ValidatorHelper.removeSpecialCharacters(prd.getDownloadSn())); prd1.setCode("508"); prd1.setRequestStatus(RequestType.fail.name()); prd1.setResponseTime(endTime.intValue()); portalResourceDownloadMapper.updateByPrimaryKeySelective(prd1); } ulogUtil.recordFullByPr(sr, portalService, txId, portalResource, transactionUid, null, scopeStr, 19, null); } } }else { if(portalResourceDownloadList!=null&&portalResourceDownloadList.size()>0) { for(PortalResourceDownload prd:portalResourceDownloadList) { PortalResourceDownload prd1 = new PortalResourceDownload(); prd1.setDownloadSn(ValidatorHelper.removeSpecialCharacters(prd.getDownloadSn())); prd1.setCode("508"); prd1.setRequestStatus(RequestType.fail.name()); prd1.setResponseTime(endTime.intValue()); portalResourceDownloadMapper.updateByPrimaryKeySelective(prd1); } ulogUtil.recordFullByPr(sr, portalService, txId, portalResource, transactionUid, null, scopeStr, 19, null); } } }else if(httpstatuscode == HttpStatus.NO_CONTENT.value()) { if(portalResourceDownloadList!=null&&portalResourceDownloadList.size()>0) { for(PortalResourceDownload prd:portalResourceDownloadList) { PortalResourceDownload prd1 = new PortalResourceDownload(); prd1.setDownloadSn(ValidatorHelper.removeSpecialCharacters(prd.getDownloadSn())); prd1.setCode("204"); prd1.setResponseTime(endTime.intValue()); portalResourceDownloadMapper.updateByPrimaryKeySelective(prd1); } ulogUtil.recordFullByPr(sr, portalService, txId, portalResource, transactionUid, null, scopeStr, 18, null); } }else { if(portalResourceDownloadList!=null&&portalResourceDownloadList.size()>0) { for(PortalResourceDownload prd:portalResourceDownloadList) { PortalResourceDownload prd1 = new PortalResourceDownload(); prd1.setDownloadSn(ValidatorHelper.removeSpecialCharacters(prd.getDownloadSn())); prd1.setCode(ValidatorHelper.removeSpecialCharacters(String.valueOf(httpstatuscode))); prd1.setRequestStatus(RequestType.fail.name()); prd1.setResponseTime(endTime.intValue()); portalResourceDownloadMapper.updateByPrimaryKeySelective(prd1); } ulogUtil.recordFullByPr(sr, portalService, txId, portalResource, transactionUid, null, scopeStr, 19, null); } } } } } catch (Exception e1) { for(PortalResourceDownload prd:portalResourceDownloadList) { PortalResourceDownload prd1 = new PortalResourceDownload(); prd1.setDownloadSn(ValidatorHelper.removeSpecialCharacters(prd.getDownloadSn())); prd1.setCode("403"); prd1.setRequestStatus(RequestType.fail.name()); portalResourceDownloadMapper.updateByPrimaryKeySelective(prd1); } ulogUtil.recordFullByPr(sr, portalService, txId, portalResource, transactionUid, null, scopeStr, 20, null); logger.error("[{}] {}", transactionUid, e1.getLocalizedMessage()); logger.error(e1.getLocalizedMessage(), e1); e1.printStackTrace(); } /** * 4. FTP */ if(httpstatuscode==HttpStatus.OK.value()) { try { logger.info("[{}] ==tempFile.getAbsolutePath()==: {}", transactionUid, tempFile.getAbsolutePath()); /** * 檔案路徑重新整理 * API.vTL7cCtoSl 財產資料(RAW DATA) * API.mBqP4awHJY 所得資料(RAW DATA) * tempFile ---> new tempFile */ List<String> resourceIdSpecList = Arrays.asList("API.vTL7cCtoSl", "API.mBqP4awHJY"); if(!Config.AppContextUrl.equalsIgnoreCase("https://mydatadev.nat.gov.tw/mydata")&&resourceIdSpecList.contains(portalResource.getResourceId())) { tempFile = ResourceApplyThread.handleSpecPath(tempFile); } byte[] b = Files.readAllBytes(Paths.get(tempFile.getAbsolutePath())); byte[] encryptb = PersonalRestController.encrypt(b,ftpSecretkey); File filename1enc = new File(tempFile.getParentFile().getAbsolutePath() + File.separator + FilenameUtils.getBaseName(tempFile.getAbsolutePath())+"enc."+FilenameUtils.getExtension(tempFile.getAbsolutePath())); logger.info("[{}] ==filename1enc.getAbsolutePath()==: {}", transactionUid, filename1enc.getAbsolutePath()); //System.out.println("==filename1enc.getAbsolutePath()==:"+filename1enc.getAbsolutePath()); FileUtils.writeByteArrayToFile(filename1enc, encryptb); logger.info("[{}] ==filename1enc.getAbsolutePath() ok!==", transactionUid); //System.out.println("==filename1enc.getAbsolutePath() ok!=="); FTPClient client = new FTPClient(); FileOutputStream fos = null; FileInputStream fis = null; try { fis = new FileInputStream(filename1enc); client.connect(ftpHost, 21); client.login(ftpUsername, ftpPassword); client.setFileType(FTP.BINARY_FILE_TYPE); client.setBufferSize(1024 * 1024 * 10); client.changeWorkingDirectory("/mydata"); client.storeFile(tempFile.getName(), fis); client.logout(); client.disconnect(); }finally { if(fis!=null) { HttpClientHelper.safeClose(fis); } } /** * 寄信或發簡訊通知(目前僅httpcode 200且檔案準備完成才寄通知) * 1. psdId == null (個人和多筆下載需通知,服務不用) * 2. 觀察member聯絡方式區分MAIL或簡訊 */ /** * 單筆非即時資料集,簡訊或通知信 */ try { Member member = SessionMember.getSessionMemberToMember(sr.getMember()); if(StringUtils.equals(member.getInformMethod(), "email") && BooleanUtils.isTrue(member.getEmailVerified())) { String from = "mydata_system@ndc.gov.tw"; String title = "【個人化資料自主運用(MyData)平臺】個人資料已完成下載(系統信件)"; Map<String, Object> boxparam = new HashMap<String, Object>(); boxparam.put("downloadSn", ValidatorHelper.removeSpecialCharacters(portalResourceDownloadList.get(0).getDownloadSn())); boxparam.put("ctimeDesc", true); List<PortalBox> portalBoxList = portalBoxMapper.selectByExample(boxparam); if(portalBoxList!=null&&portalBoxList.size()>0) { tmpBoxId = portalBoxList.get(0).getId().toString(); }else { tmpBoxId = ""; } String content = "您好:<br><br>\n\n" + "感謝您使用個人化資料自主運用(MyData)平臺,您申請的「" + portalResource.getName() + "」已於"+sdf8.format(new Date())+"下載完畢。" + "請您於8小時內返回個人化資料自主運用(MyData)平臺,並登入<a href=\""+ Config.AppContextUrl +"/signin?toPage=verification"+ tmpBoxId +"\">資料條碼區</a>查看。<br>\n" + "<br>\n"; /** * 僅線上服務不用此段文字 */ // if(!(psdId!= null && txId !=null && txId.trim().length()>0)) { // content= content+ "請您於8小時內返回 個人化資料自主運用(MyData)平臺,並登入 <a href=\""+ Config.AppContextUrl +"/signin?toPage=verification"+ tmpBoxId +"\">資料條碼區</a>查看。<br>\n"; // } content= content+ "<br>\n" + "此為系統信件,請勿回信。<br>\n" + "如有任何疑問或非您本人下載資料,請洽客服電話:0800-009-868,或寄信至客服信箱:mydata@ndc.gov.tw。<br>\n" + "<br>\n" + "——-<br>\n" + "我為什麼會收到這封信?<br>\n" + "您會收到此封信件,是因為您有同意並授權國家發展委員會個人化資料自主運用(MyData)平臺轉存或傳輸您的個人資料給上述單位,當您轉存或當服務單位收到您的個人資料,系統會自動發此信通知您。<br>\n"; List<String> tmpReveicers = new ArrayList<String>(); tmpReveicers.add(member.getEmail()); MailUtil.sendHtmlMail(tmpReveicers,from, title,content,Config.mailEnable); sendLogUtil.writeSendLog(SendType.email, member.getAccount(), member.getEmail(), title, content); } else if (StringUtils.equals(member.getInformMethod(), "mobile") && BooleanUtils.isTrue(member.getMobileVerified())) { String smbody = "MyData通知-您申請「"+portalResource.getName()+"」資料已於"+sdf8.format(new Date())+"下載完成。如非您本人下載,請洽客服0800-009-868"; SMSUtil.sendSms(member.getMobile(), smbody); sendLogUtil.writeSendLog(SendType.mobile, member.getAccount(), member.getMobile(), smbody); } else { System.out.println("--寄信失敗--:\n無綁定任何聯絡方式"); } }catch(Exception ex) { System.out.println("--寄信失敗--:\n"+ex); } } catch (Exception e1) { for(PortalResourceDownload prd:portalResourceDownloadList) { PortalResourceDownload prd1 = new PortalResourceDownload(); prd1.setDownloadSn(ValidatorHelper.removeSpecialCharacters(prd.getDownloadSn())); prd1.setCode("403"); prd1.setRequestStatus(RequestType.fail.name()); portalResourceDownloadMapper.updateByPrimaryKeySelective(prd1); } ulogUtil.recordFullByPr(sr, portalService, txId, portalResource, transactionUid, null, scopeStr, 20, null); logger.error("{} >> error ", transactionUid); logger.error(e1.getLocalizedMessage(), e1); } } else if (httpstatuscode==HttpStatus.NO_CONTENT.value()){ try { if(psdId==null) { Member member = SessionMember.getSessionMemberToMember(sr.getMember()); if(StringUtils.equals(member.getInformMethod(), "email") && BooleanUtils.isTrue(member.getEmailVerified())) { String from = "mydata_system@ndc.gov.tw"; String title = "【個人化資料自主運用(MyData)平臺】個人資料查詢完成(系統信件)"; String content = "您好:\n\n" + "感謝您使用 個人化資料自主運用(MyData)平臺,您申請的「" + portalResource.getName() + "」已於"+sdf8.format(new Date())+"確認查無相關(證明)資料。\n" + "\n" + "此為系統信件,請勿回信。\n" + "如有任何疑問,請洽客服電話:0800-009-868,或寄信至客服信箱:mydata@ndc.gov.tw。\n"; List<String> tmpReveicers = new ArrayList<String>(); tmpReveicers.add(member.getEmail()); MailUtil.sendMail(tmpReveicers,from, title,content,Config.mailEnable); logger.debug("send Email for 204"); } else if (StringUtils.equals(member.getInformMethod(), "mobile") && BooleanUtils.isTrue(member.getMobileVerified())) { String smbody = "MyData 平臺通知-個人資料查詢完成,您申請的「"+portalResource.getName()+"」查無相關(證明)資料"; SMSUtil.sendSms(member.getMobile(), smbody); logger.debug("send mobile for 204"); } else { System.out.println("--寄信失敗--:\n無綁定任何聯絡方式"); } } }catch(Exception ex) { System.out.println("--寄信失敗--:\n"+ex); } } } }
[ "82488195+jennyming622@users.noreply.github.com" ]
82488195+jennyming622@users.noreply.github.com
5107290e4375a45497cd552bef32bdcf1f1a4b0c
1a42a2a6bd07e2125235c089a93e8305bc1cc5f1
/src/main/java/com/bbva/service/impl/ImageServiceImpl.java
ff8af892b2ac2b7bd00806af5da3bed4cd121b6a
[]
no_license
georgevazj/ranchertool
1a872f676e31266dbb9be4e29c260b1c6d391b07
650bf1a470523c43e8b99569098d2a225809109f
refs/heads/master
2021-01-25T07:44:14.603543
2017-06-20T08:27:17
2017-06-20T08:27:17
93,657,304
0
0
null
null
null
null
UTF-8
Java
false
false
1,710
java
package com.bbva.service.impl; import com.bbva.component.ImageConverter; import com.bbva.entity.Image; import com.bbva.model.ImageModel; import com.bbva.repository.ImageRepository; import com.bbva.service.ImageService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.util.ArrayList; import java.util.List; /** * Created by Jorge on 9/6/17. */ @Service public class ImageServiceImpl implements ImageService { @Autowired private ImageRepository imageRepository; @Autowired private ImageConverter imageConverter; @Override public ImageModel addImage(ImageModel imageModel) { Image image = imageConverter.model2entity(imageModel); imageRepository.save(image); return imageConverter.entity2model(image); } @Override public ImageModel findImageByName(String name) { return imageConverter.entity2model(imageRepository.findImageByName(name)); } @Override public ImageModel findImageById(int id) { Image image = imageRepository.findImageById(id); return imageConverter.entity2model(image); } @Override public List<ImageModel> listAllImages() { List<Image> images = imageRepository.findAll(); List<ImageModel> imageModels = new ArrayList<ImageModel>(); for (Image image:images){ imageModels.add(imageConverter.entity2model(image)); } return imageModels; } @Override public void removeImage(int id) { Image image = imageConverter.model2entity(findImageById(id)); if (image != null){ imageRepository.delete(image); } } }
[ "georgevazj@gmail.com" ]
georgevazj@gmail.com
1af4939f13016fc681618897ddf89c682efc93a2
fa91450deb625cda070e82d5c31770be5ca1dec6
/Diff-Raw-Data/13/13_5752050afe6884f4d131b40872f18b9838ea9789/IbisSerializationInputStream/13_5752050afe6884f4d131b40872f18b9838ea9789_IbisSerializationInputStream_t.java
235e6c3b8c014e5d5e7d4dfab00927c002057c63
[]
no_license
zhongxingyu/Seer
48e7e5197624d7afa94d23f849f8ea2075bcaec0
c11a3109fdfca9be337e509ecb2c085b60076213
refs/heads/master
2023-07-06T12:48:55.516692
2023-06-22T07:55:56
2023-06-22T07:55:56
259,613,157
6
2
null
2023-06-22T07:55:57
2020-04-28T11:07:49
null
UTF-8
Java
false
false
74,646
java
/* $Id: IbisSerializationInputStream.java 6556 2007-10-12 14:19:08Z ceriel $ */ package ibis.io; import java.io.EOFException; import java.io.IOException; import java.io.InvalidObjectException; import java.io.NotActiveException; import java.io.ObjectStreamClass; import java.io.ObjectInputStream; import java.io.StreamCorruptedException; import java.lang.reflect.Field; import java.lang.reflect.Method; import java.util.Hashtable; import org.apache.log4j.Logger; /** * This is the <code>SerializationInputStream</code> version that is used * for Ibis serialization. */ public class IbisSerializationInputStream extends DataSerializationInputStream { private static final Logger logger = Logger.getLogger(IbisSerializationInputStream.class); private static final boolean DEBUG = IOProperties.DEBUG; private static final boolean ASSERTS = IOProperties.ASSERTS; /** If <code>false</code>, makes all timer calls disappear. */ private static final boolean TIME_IBIS_SERIALIZATION = IOProperties.properties.getBooleanProperty(IOProperties.s_timer_ibis); /** * Record how many objects of any class are sent the expensive way: * via the uninitialized native creator. */ private static final boolean STATS_NONREWRITTEN = IOProperties.properties.getBooleanProperty(IOProperties.s_stats_nonrewritten); // if STATS_NONREWRITTEN static Hashtable<Class<?>, Integer> nonRewritten = null; // Only works as of Java 1.4, earlier versions of Java don't have Unsafe. // Use introspection, so that it at least compiles on systems that don't // have unsafe. private static Object unsafe = null; private static Method unsafeObjectFieldOffsetMethod; private static Method unsafePutDoubleMethod; private static Method unsafePutLongMethod; private static Method unsafePutFloatMethod; private static Method unsafePutIntMethod; private static Method unsafePutShortMethod; private static Method unsafePutCharMethod; private static Method unsafePutBooleanMethod; private static Method unsafePutByteMethod; private static Method unsafePutObjectMethod; static { try { // unsafe = Unsafe.getUnsafe(); // does not work when a classloader is present, so we get it // from ObjectStreamClass. Class<?> cl = Class.forName("java.io.ObjectStreamClass$FieldReflector"); Field uf = cl.getDeclaredField("unsafe"); uf.setAccessible(true); unsafe = uf.get(null); cl = unsafe.getClass(); unsafeObjectFieldOffsetMethod = cl.getMethod( "objectFieldOffset", new Class[] {Field.class}); unsafePutDoubleMethod = cl.getMethod( "putDouble", new Class[] {Object.class, Long.TYPE, Double.TYPE}); unsafePutLongMethod = cl.getMethod( "putLong", new Class[] {Object.class, Long.TYPE, Long.TYPE}); unsafePutFloatMethod = cl.getMethod( "putFloat", new Class[] {Object.class, Long.TYPE, Float.TYPE}); unsafePutIntMethod = cl.getMethod( "putInt", new Class[] {Object.class, Long.TYPE, Integer.TYPE}); unsafePutShortMethod = cl.getMethod( "putShort", new Class[] {Object.class, Long.TYPE, Short.TYPE}); unsafePutCharMethod = cl.getMethod( "putChar", new Class[] {Object.class, Long.TYPE, Character.TYPE}); unsafePutByteMethod = cl.getMethod( "putByte", new Class[] {Object.class, Long.TYPE, Byte.TYPE}); unsafePutBooleanMethod = cl.getMethod( "putBoolean", new Class[] {Object.class, Long.TYPE, Boolean.TYPE}); unsafePutObjectMethod = cl.getMethod( "putObject", new Class[] {Object.class, Long.TYPE, Object.class}); } catch (Exception e) { System.out.println("Got exception while getting unsafe: " + e); unsafe = null; } if (STATS_NONREWRITTEN) { nonRewritten = new Hashtable<Class<?>, Integer>(); System.out.println("IbisSerializationInputStream.STATS_NONREWRITTEN" + " enabled"); Runtime.getRuntime().addShutdownHook( new Thread("IbisSerializationInputStream ShutdownHook") { public void run() { System.out.print("Serializable objects created " + "nonrewritten: "); System.out.println(nonRewritten); } }); } } private static ClassLoader customClassLoader; /** List of objects, for cycle checking. */ private IbisVector objects; /** First free object index. */ private int next_handle; /** Handle to invalidate. */ private int unshared_handle = 0; /** First free type index. */ private int next_type = 1; /** List of types seen sofar. */ private IbisVector types; /** * There is a notion of a "current" object. This is needed when a * user-defined <code>readObject</code> refers to * <code>defaultReadObject</code> or to * <code>getFields</code>. */ Object current_object; /** * There also is a notion of a "current" level. * The "level" of a serializable class is computed as follows:<ul> * <li> if its superclass is serializable: the level of the superclass + 1. * <li> if its superclass is not serializable: 1. * </ul> * This level implies a level at which an object can be seen. The "current" * level is the level at which <code>current_object</code> is being * processed. */ int current_level; /** * The <code>current_object</code> and <code>current_level</code> * are maintained in * stacks, so that they can be managed by IOGenerator-generated code. */ private Object[] object_stack; private int[] level_stack; private int max_stack_size = 0; private int stack_size = 0; /** <code>AlternativeTypeInfo</code> for <code>boolean</code> arrays. */ private static AlternativeTypeInfo booleanArrayInfo = AlternativeTypeInfo.getAlternativeTypeInfo(Constants.classBooleanArray); /** <code>AlternativeTypeInfo</code> for <code>byte</code> arrays. */ private static AlternativeTypeInfo byteArrayInfo = AlternativeTypeInfo.getAlternativeTypeInfo(Constants.classByteArray); /** <code>AlternativeTypeInfo</code> for <code>char</code> arrays. */ private static AlternativeTypeInfo charArrayInfo = AlternativeTypeInfo.getAlternativeTypeInfo(Constants.classCharArray); /** <code>AlternativeTypeInfo</code> for <code>short</code> arrays. */ private static AlternativeTypeInfo shortArrayInfo = AlternativeTypeInfo.getAlternativeTypeInfo(Constants.classShortArray); /** <code>AlternativeTypeInfo</code> for <code>int</code> arrays. */ private static AlternativeTypeInfo intArrayInfo = AlternativeTypeInfo.getAlternativeTypeInfo(Constants.classIntArray); /** <code>AlternativeTypeInfo</code> for <code>long</code> arrays. */ private static AlternativeTypeInfo longArrayInfo = AlternativeTypeInfo.getAlternativeTypeInfo(Constants.classLongArray); /** <code>AlternativeTypeInfo</code> for <code>float</code> arrays. */ private static AlternativeTypeInfo floatArrayInfo = AlternativeTypeInfo.getAlternativeTypeInfo(Constants.classFloatArray); /** <code>AlternativeTypeInfo</code> for <code>double</code> arrays. */ private static AlternativeTypeInfo doubleArrayInfo = AlternativeTypeInfo.getAlternativeTypeInfo(Constants.classDoubleArray); static { String clName = System.getProperty(IOProperties.s_classloader); if (clName != null) { //we try to instanciate it try { Class<?> classDefinition = Class.forName(clName); customClassLoader = (ClassLoader) classDefinition.newInstance(); } catch (Exception e) { logger.warn("Warning: could not find or load custom " + "classloader " + clName, e); } } } /** * Constructor with a <code>DataInputStream</code>. * @param in the underlying <code>DataInputStream</code> * @exception IOException gets thrown when an IO error occurs. */ public IbisSerializationInputStream(DataInputStream in) throws IOException { super(in); objects = new IbisVector(1024); init(true); } /** * Constructor, may be used when this class is sub-classed. */ protected IbisSerializationInputStream() throws IOException { super(); objects = new IbisVector(1024); init(true); } public boolean reInitOnNewConnection() { return true; } /* * If you at some point want to override IbisSerializationOutputStream, * you probably need to override the methods from here on up until * comment tells you otherwise. */ public String serializationImplName() { return "ibis"; } public void close() throws IOException { objects.clear(); objects = null; types = null; current_object = null; object_stack = null; level_stack = null; super.close(); } /* * If you are overriding IbisSerializationInputStream, * you can stop now :-) * The rest is built on top of these. */ public void readArray(boolean[] ref, int off, int len) throws IOException { if (TIME_IBIS_SERIALIZATION) { timer.start(); } try { readArrayHeader(Constants.classBooleanArray, len); } catch (ClassNotFoundException e) { if (DEBUG && logger.isDebugEnabled() && logger.isDebugEnabled()) { logger.debug("Caught exception, rethrow as SerializationError", e); } throw new SerializationError("require boolean[]", e); } readBooleanArray(ref, off, len); if (TIME_IBIS_SERIALIZATION) { timer.stop(); } } public void readArray(byte[] ref, int off, int len) throws IOException { if (TIME_IBIS_SERIALIZATION) { timer.start(); } try { readArrayHeader(Constants.classByteArray, len); } catch (ClassNotFoundException e) { if (DEBUG && logger.isDebugEnabled()) { logger.debug("Caught exception, rethrow as SerializationError", e); } throw new SerializationError("require byte[]", e); } readByteArray(ref, off, len); if (TIME_IBIS_SERIALIZATION) { timer.stop(); } } public void readArray(char[] ref, int off, int len) throws IOException { if (TIME_IBIS_SERIALIZATION) { timer.start(); } try { readArrayHeader(Constants.classCharArray, len); } catch (ClassNotFoundException e) { if (DEBUG && logger.isDebugEnabled()) { logger.debug("Caught exception, rethrow as SerializationError", e); } throw new SerializationError("require char[]", e); } readCharArray(ref, off, len); if (TIME_IBIS_SERIALIZATION) { timer.stop(); } } public void readArray(short[] ref, int off, int len) throws IOException { if (TIME_IBIS_SERIALIZATION) { timer.start(); } try { readArrayHeader(Constants.classShortArray, len); } catch (ClassNotFoundException e) { if (DEBUG && logger.isDebugEnabled()) { logger.debug("Caught exception, rethrow as SerializationError", e); } throw new SerializationError("require short[]", e); } readShortArray(ref, off, len); if (TIME_IBIS_SERIALIZATION) { timer.stop(); } } public void readArray(int[] ref, int off, int len) throws IOException { if (TIME_IBIS_SERIALIZATION) { timer.start(); } try { readArrayHeader(Constants.classIntArray, len); } catch (ClassNotFoundException e) { if (DEBUG && logger.isDebugEnabled()) { logger.debug("Caught exception, rethrow as SerializationError", e); } throw new SerializationError("require int[]", e); } readIntArray(ref, off, len); if (TIME_IBIS_SERIALIZATION) { timer.stop(); } } public void readArray(long[] ref, int off, int len) throws IOException { if (TIME_IBIS_SERIALIZATION) { timer.start(); } try { readArrayHeader(Constants.classLongArray, len); } catch (ClassNotFoundException e) { if (DEBUG && logger.isDebugEnabled()) { logger.debug("Caught exception, rethrow as SerializationError", e); } throw new SerializationError("require long[]", e); } readLongArray(ref, off, len); if (TIME_IBIS_SERIALIZATION) { timer.stop(); } } public void readArray(float[] ref, int off, int len) throws IOException { if (TIME_IBIS_SERIALIZATION) { timer.start(); } try { readArrayHeader(Constants.classFloatArray, len); } catch (ClassNotFoundException e) { if (DEBUG && logger.isDebugEnabled()) { logger.debug("Caught exception, rethrow as SerializationError", e); } throw new SerializationError("require float[]", e); } readFloatArray(ref, off, len); if (TIME_IBIS_SERIALIZATION) { timer.stop(); } } public void readArray(double[] ref, int off, int len) throws IOException { if (TIME_IBIS_SERIALIZATION) { timer.start(); } try { readArrayHeader(Constants.classDoubleArray, len); } catch (ClassNotFoundException e) { if (DEBUG && logger.isDebugEnabled()) { logger.debug("Caught exception, rethrow as SerializationError", e); } throw new SerializationError("require double[]", e); } readDoubleArray(ref, off, len); if (TIME_IBIS_SERIALIZATION) { timer.stop(); } } public void readArray(Object[] ref, int off, int len) throws IOException, ClassNotFoundException { if (TIME_IBIS_SERIALIZATION) { timer.start(); } readArrayHeader(ref.getClass(), len); for (int i = off; i < off + len; i++) { ref[i] = doReadObject(false); } if (TIME_IBIS_SERIALIZATION) { timer.stop(); } } /** * Allocates and reads an array of bytes from the input stream. * This method is used by IOGenerator-generated code. * @return the array read. * @exception IOException in case of error. */ public byte[] readArrayByte() throws IOException { if (TIME_IBIS_SERIALIZATION) { timer.start(); } int len = readInt(); byte[] b = new byte[len]; addObjectToCycleCheck(b); readByteArray(b, 0, len); if (TIME_IBIS_SERIALIZATION) { timer.stop(); } return b; } /** * See {@link #readArrayByte()}, this one is for an array of boolans. */ public boolean[] readArrayBoolean() throws IOException { if (TIME_IBIS_SERIALIZATION) { timer.start(); } int len = readInt(); boolean[] b = new boolean[len]; addObjectToCycleCheck(b); readBooleanArray(b, 0, len); if (TIME_IBIS_SERIALIZATION) { timer.stop(); } return b; } /** * See {@link #readArrayByte()}, this one is for an array of chars. */ public char[] readArrayChar() throws IOException { if (TIME_IBIS_SERIALIZATION) { timer.start(); } int len = readInt(); char[] b = new char[len]; addObjectToCycleCheck(b); readCharArray(b, 0, len); if (TIME_IBIS_SERIALIZATION) { timer.stop(); } return b; } /** * See {@link #readArrayByte()}, this one is for an array of shorts. */ public short[] readArrayShort() throws IOException { if (TIME_IBIS_SERIALIZATION) { timer.start(); } int len = readInt(); short[] b = new short[len]; addObjectToCycleCheck(b); readShortArray(b, 0, len); if (TIME_IBIS_SERIALIZATION) { timer.stop(); } return b; } /** * See {@link #readArrayByte()}, this one is for an array of ints. */ public int[] readArrayInt() throws IOException { if (TIME_IBIS_SERIALIZATION) { timer.start(); } int len = readInt(); int[] b = new int[len]; addObjectToCycleCheck(b); readIntArray(b, 0, len); if (TIME_IBIS_SERIALIZATION) { timer.stop(); } return b; } /** * See {@link #readArrayByte()}, this one is for an array of longs. */ public long[] readArrayLong() throws IOException { if (TIME_IBIS_SERIALIZATION) { timer.start(); } int len = readInt(); long[] b = new long[len]; addObjectToCycleCheck(b); readLongArray(b, 0, len); if (TIME_IBIS_SERIALIZATION) { timer.stop(); } return b; } /** * See {@link #readArrayByte()}, this one is for an array of floats. */ public float[] readArrayFloat() throws IOException { if (TIME_IBIS_SERIALIZATION) { timer.start(); } int len = readInt(); float[] b = new float[len]; addObjectToCycleCheck(b); readFloatArray(b, 0, len); if (TIME_IBIS_SERIALIZATION) { timer.stop(); } return b; } /** * See {@link #readArrayByte()}, this one is for an array of doubles. */ public double[] readArrayDouble() throws IOException { if (TIME_IBIS_SERIALIZATION) { timer.start(); } int len = readInt(); double[] b = new double[len]; addObjectToCycleCheck(b); readDoubleArray(b, 0, len); if (TIME_IBIS_SERIALIZATION) { timer.stop(); } return b; } /** * Initializes the <code>objects</code> and <code>types</code> fields, * including their indices. * * @param do_types set when the type table must be initialized as well * (this is not needed after a reset). */ private void init(boolean do_types) { if (do_types) { types = new IbisVector(); types.add(0, null); // Vector requires this types.add(Constants.TYPE_BOOLEAN, booleanArrayInfo); types.add(Constants.TYPE_BYTE, byteArrayInfo); types.add(Constants.TYPE_CHAR, charArrayInfo); types.add(Constants.TYPE_SHORT, shortArrayInfo); types.add(Constants.TYPE_INT, intArrayInfo); types.add(Constants.TYPE_LONG, longArrayInfo); types.add(Constants.TYPE_FLOAT, floatArrayInfo); types.add(Constants.TYPE_DOUBLE, doubleArrayInfo); next_type = Constants.PRIMITIVE_TYPES; } objects.clear(); next_handle = Constants.CONTROL_HANDLES; } /** * resets the stream, by clearing the object and type table. */ private void do_reset(boolean cleartypes) { if (DEBUG && logger.isDebugEnabled()) { logger.debug("received reset: next handle = " + next_handle + "."); } init(cleartypes); } public void clear() { if (DEBUG && logger.isDebugEnabled()) { logger.debug("explicit clear: next handle = " + next_handle + "."); } init(false); } public void statistics() { System.err.println("IbisSerializationInputStream: " + "statistics() not yet implemented"); } /* This is the data output / object output part */ /** * Reads a handle, which is just an int representing an index * in the object table. * @exception IOException gets thrown when an IO error occurs. * @return the handle read. */ private final int readHandle() throws IOException { int handle = readInt(); /* this replaces the checks for the reset handle everywhere else. --N */ for (;;) { if (handle == Constants.RESET_HANDLE) { if (DEBUG && logger.isDebugEnabled()) { logger.debug("received a RESET"); } do_reset(false); handle = readInt(); } else if (handle == Constants.CLEAR_HANDLE) { if (DEBUG && logger.isDebugEnabled()) { logger.debug("received a CLEAR"); } do_reset(true); handle = readInt(); } else { break; } } if (DEBUG && logger.isDebugEnabled()) { logger.debug("read handle " + handle); } return handle; } /** * Reads a <code>Class</code> object from the stream and tries to load it. * @exception IOException when an IO error occurs. * @exception ClassNotFoundException when the class could not be loaded. * @return the <code>Class</code> object read. */ public Class<?> readClass() throws IOException, ClassNotFoundException { if (TIME_IBIS_SERIALIZATION) { timer.start(); } int handle = readHandle(); if (handle == Constants.NUL_HANDLE) { if (TIME_IBIS_SERIALIZATION) { timer.stop(); } return null; } if ((handle & Constants.TYPE_BIT) == 0) { /* Ah, it's a handle. Look it up, return the stored ptr */ Class<?> o = (Class<?>) objects.get(handle); if (DEBUG && logger.isDebugEnabled()) { logger.debug("readobj: handle = " + (handle - Constants.CONTROL_HANDLES) + " obj = " + o); } return o; } readType(handle & Constants.TYPE_MASK); String s = readUTF(); Class<?> c = getClassFromName(s); addObjectToCycleCheck(c); if (TIME_IBIS_SERIALIZATION) { timer.stop(); } return c; } /** * Reads the header of an array. * This header consists of a handle, a type, and an integer representing * the length. * Note that the data read is mostly redundant. * * @exception IOException when an IO error occurs. * @exception ClassNotFoundException when the array class could * not be loaded. */ void readArrayHeader(Class<?> clazz, int len) throws IOException, ClassNotFoundException { if (DEBUG && logger.isDebugEnabled()) { logger.debug("readArrayHeader: class = " + clazz.getName() + " len = " + len); } int type = readHandle(); if ((type & Constants.TYPE_BIT) == 0) { throw new StreamCorruptedException( "Array slice header but I receive a HANDLE!"); } Class<?> in_clazz = readType(type & Constants.TYPE_MASK).clazz; int in_len = readInt(); if (ASSERTS && !clazz.isAssignableFrom(in_clazz)) { throw new ClassCastException("Cannot assign class " + clazz + " from read class " + in_clazz); } if (ASSERTS && in_len != len) { throw new ArrayIndexOutOfBoundsException("Cannot read " + in_len + " into " + len + " elements"); } } /** * Adds an object <code>o</code> to the object table, for cycle checking. * This method is public because it gets called from IOGenerator-generated * code. * @param o the object to be added */ public void addObjectToCycleCheck(Object o) { if (DEBUG && logger.isDebugEnabled()) { logger.debug("addObjectToCycleCheck: handle = " + next_handle); } if (unshared_handle == next_handle) { objects.add(next_handle, null); unshared_handle = 0; } else { objects.add(next_handle, o); } next_handle++; } /** * Looks up an object in the object table. * This method is public because it gets called from IOGenerator-generated * code. * @param handle the handle of the object to be looked up * @return the corresponding object. */ public Object getObjectFromCycleCheck(int handle) { Object o = objects.get(handle); // - CONTROL_HANDLES); if (DEBUG && logger.isDebugEnabled()) { logger.debug("getObjectFromCycleCheck: handle = " + handle); } return o; } /** * Method used by IOGenerator-generated code to read a handle, and * determine if it has to read a new object or get one from the object * table. * * @exception IOException when an IO error occurs. * @return 0 for a null object, -1 for a new object, and the handle for an * object already in the object table. */ public final int readKnownTypeHeader() throws IOException, ClassNotFoundException { int handle_or_type = readHandle(); if ((handle_or_type & Constants.TYPE_BIT) == 0) { // Includes NUL_HANDLE. if (DEBUG && logger.isDebugEnabled()) { if (handle_or_type == Constants.NUL_HANDLE) { logger.debug("readKnownTypeHeader -> read NUL_HANDLE"); } else { logger.debug("readKnownTypeHeader -> read OLD HANDLE " + handle_or_type); } } return handle_or_type; } handle_or_type &= Constants.TYPE_MASK; if (handle_or_type >= next_type) { readType(handle_or_type); } if (DEBUG && logger.isDebugEnabled()) { AlternativeTypeInfo t = (AlternativeTypeInfo) types.get(handle_or_type); logger.debug("readKnownTypeHeader -> reading NEW object, class = " + t.clazz.getName()); } return -1; } /** * Reads an array from the stream. * The handle and type have already been read. * * @param clazz the type of the array to be read * @param type an index in the types table, but * also an indication of the base type of * the array * * @exception IOException when an IO error occurs. * @exception ClassNotFoundException when element type is Object and * readObject throws it. * * @return the array read. */ Object readArray(Class<?> clazz, int type) throws IOException, ClassNotFoundException { if (DEBUG && logger.isDebugEnabled()) { if (clazz != null) { logger.debug("readArray " + clazz.getName() + " type " + type); } } switch (type) { case Constants.TYPE_BOOLEAN: return readArrayBoolean(); case Constants.TYPE_BYTE: return readArrayByte(); case Constants.TYPE_SHORT: return readArrayShort(); case Constants.TYPE_CHAR: return readArrayChar(); case Constants.TYPE_INT: return readArrayInt(); case Constants.TYPE_LONG: return readArrayLong(); case Constants.TYPE_FLOAT: return readArrayFloat(); case Constants.TYPE_DOUBLE: return readArrayDouble(); default: int len = readInt(); Object ref = java.lang.reflect.Array.newInstance( clazz.getComponentType(), len); addObjectToCycleCheck(ref); for (int i = 0; i < len; i++) { Object o = doReadObject(false); ((Object[]) ref)[i] = o; } return ref; } } /** * This method tries to load a class given its name. It tries the * default classloader, and the one from the thread context. Also, * apparently some classloaders do not understand array classes, and * from the Java documentation, it is not clear that they should. * Therefore, if the typeName indicates an array type, and the * obvious attempts to load the class fail, this method also tries * to load the base type of the array. * * @param typeName the name of the type to be loaded * @exception ClassNotFoundException is thrown when the class could * not be loaded. * @return the loaded class */ Class<?> getClassFromName(String typeName) throws ClassNotFoundException { try { return Class.forName(typeName); } catch (ClassNotFoundException e) { try { if (DEBUG && logger.isDebugEnabled()) { logger.debug("Could not load class " + typeName + " using Class.forName(), trying " + "Thread.currentThread()." + "getContextClassLoader().loadClass()"); logger.debug("Default class loader is " + this.getClass().getClassLoader()); logger.debug("now trying " + Thread.currentThread().getContextClassLoader()); } return Thread.currentThread().getContextClassLoader() .loadClass(typeName); } catch (ClassNotFoundException e2) { int dim = 0; /* Some classloaders are not able to load array classes. * Therefore, if the name * describes an array, try again with the base type. */ if (typeName.length() > 0 && typeName.charAt(0) == '[') { char[] s = typeName.toCharArray(); while (dim < s.length && s[dim] == '[') { dim++; } int begin = dim; int end = s.length; if (dim < s.length && s[dim] == 'L') { begin++; } if (s[end - 1] == ';') { end--; } typeName = typeName.substring(begin, end); int dims[] = new int[dim]; for (int i = 0; i < dim; i++) dims[i] = 0; /* Now try to load the base class, create an array * from it and then return its class. */ return java.lang.reflect.Array.newInstance( getClassFromName(typeName), dims).getClass(); } return loadClassFromCustomCL(typeName); } } } private Class<?> loadClassFromCustomCL(String className) throws ClassNotFoundException { if (DEBUG && logger.isDebugEnabled()) { System.out.println("loadClassTest " + className); } if (customClassLoader == null) { throw new ClassNotFoundException(className); } if (DEBUG && logger.isDebugEnabled()) { System.out.println("******* Calling custom classloader"); } return customClassLoader.loadClass(className); } /** * Returns the <code>AlternativeTypeInfo</code> corresponding to the type * number given as parameter. * If the parameter indicates a type not yet read, its name is read * (as an UTF), and the class is loaded. * * @param type the type number * @exception ClassNotFoundException is thrown when the class could * not be loaded. * @exception IOException is thrown when an IO error occurs * @return the <code>AlternativeTypeInfo</code> for <code>type</code>. */ private AlternativeTypeInfo readType(int type) throws IOException, ClassNotFoundException { if (type < next_type) { if (DEBUG && logger.isDebugEnabled()) { logger.debug("read type number 0x" + Integer.toHexString(type)); } return (AlternativeTypeInfo) types.get(type); } if (next_type != type) { throw new SerializationError("Internal error: next_type = " + next_type + ", type = " + type); } String typeName = readUTF(); if (DEBUG && logger.isDebugEnabled()) { logger.debug("read NEW type number 0x" + Integer.toHexString(type) + " type " + typeName); } Class<?> clazz = getClassFromName(typeName); AlternativeTypeInfo t = AlternativeTypeInfo.getAlternativeTypeInfo(clazz); types.add(next_type, t); next_type++; return t; } /** * This method reads a value from the stream and assigns it to a * final field. * IOGenerator uses this method when assigning final fields of an * object that is rewritten, but super is not, and super is serializable. * The problem with this situation is that IOGenerator cannot create * a proper constructor for this object, so cannot assign * to final fields without falling back to native code. * * @param ref object with a final field * @param fieldname name of the field * @param classname the name of the class * @exception IOException is thrown when an IO error occurs. */ public void readFieldDouble(Object ref, String fieldname, String classname) throws IOException { double d = readDouble(); if (unsafe != null) { try { Class<?> cl = getClassFromName(classname); Field f = cl.getDeclaredField(fieldname); Object key = unsafeObjectFieldOffsetMethod.invoke(unsafe, f); unsafePutDoubleMethod.invoke(unsafe, ref, key, d); return; } catch (Throwable ex) { throw new IbisIOException("got exception", ex); } } throw new IOException("No unsafe"); } /** * See {@link #readFieldDouble(Object, String, String)} for a description. */ public void readFieldLong(Object ref, String fieldname, String classname) throws IOException { long d = readLong(); if (unsafe != null) { try { Class<?> cl = getClassFromName(classname); Field f = cl.getDeclaredField(fieldname); Object key = unsafeObjectFieldOffsetMethod.invoke(unsafe, f); unsafePutLongMethod.invoke(unsafe, ref, key, d); return; } catch (Throwable ex) { throw new IbisIOException("got exception", ex); } } throw new IOException("No unsafe"); } /** * See {@link #readFieldDouble(Object, String, String)} for a description. */ public void readFieldFloat(Object ref, String fieldname, String classname) throws IOException { float d = readFloat(); if (unsafe != null) { try { Class<?> cl = getClassFromName(classname); Field f = cl.getDeclaredField(fieldname); Object key = unsafeObjectFieldOffsetMethod.invoke(unsafe, f); unsafePutFloatMethod.invoke(unsafe, ref, key, d); return; } catch (Throwable ex) { throw new IbisIOException("got exception", ex); } } throw new IOException("No unsafe"); } /** * See {@link #readFieldDouble(Object, String, String)} for a description. */ public void readFieldInt(Object ref, String fieldname, String classname) throws IOException { int d = readInt(); if (unsafe != null) { try { Class<?> cl = getClassFromName(classname); Field f = cl.getDeclaredField(fieldname); Object key = unsafeObjectFieldOffsetMethod.invoke(unsafe, f); unsafePutIntMethod.invoke(unsafe, ref, key, d); return; } catch (Throwable ex) { throw new IbisIOException("got exception", ex); } } throw new IOException("No unsafe"); } /** * See {@link #readFieldDouble(Object, String, String)} for a description. */ public void readFieldShort(Object ref, String fieldname, String classname) throws IOException { short d = readShort(); if (unsafe != null) { try { Class<?> cl = getClassFromName(classname); Field f = cl.getDeclaredField(fieldname); Object key = unsafeObjectFieldOffsetMethod.invoke(unsafe, f); unsafePutShortMethod.invoke(unsafe, ref, key, d); return; } catch (Throwable ex) { throw new IbisIOException("got exception", ex); } } throw new IOException("No unsafe"); } /** * See {@link #readFieldDouble(Object, String, String)} for a description. */ public void readFieldChar(Object ref, String fieldname, String classname) throws IOException { char d = readChar(); if (unsafe != null) { try { Class<?> cl = getClassFromName(classname); Field f = cl.getDeclaredField(fieldname); Object key = unsafeObjectFieldOffsetMethod.invoke(unsafe, f); unsafePutCharMethod.invoke(unsafe, ref, key, d); return; } catch (Throwable ex) { throw new IbisIOException("got exception", ex); } } throw new IOException("No unsafe"); } /** * See {@link #readFieldDouble(Object, String, String)} for a description. */ public void readFieldByte(Object ref, String fieldname, String classname) throws IOException { byte d = readByte(); if (unsafe != null) { try { Class<?> cl = getClassFromName(classname); Field f = cl.getDeclaredField(fieldname); Object key = unsafeObjectFieldOffsetMethod.invoke(unsafe, f); unsafePutByteMethod.invoke(unsafe, ref, key, d); return; } catch (Throwable ex) { throw new IbisIOException("got exception", ex); } } throw new IOException("No unsafe"); } /** * See {@link #readFieldDouble(Object, String, String)} for a description. */ public void readFieldBoolean(Object ref, String fieldname, String classname) throws IOException { boolean d = readBoolean(); if (unsafe != null) { try { Class<?> cl = getClassFromName(classname); Field f = cl.getDeclaredField(fieldname); Object key = unsafeObjectFieldOffsetMethod.invoke(unsafe, f); unsafePutBooleanMethod.invoke(unsafe, ref, key, d); return; } catch (Throwable ex) { throw new IbisIOException("got exception", ex); } } throw new IOException("No unsafe"); } /** * See {@link #readFieldDouble(Object, String, String)} for a description. */ public void readFieldString(Object ref, String fieldname, String classname) throws IOException { String d = readString(); if (unsafe != null) { try { Class<?> cl = getClassFromName(classname); Field f = cl.getDeclaredField(fieldname); Object key = unsafeObjectFieldOffsetMethod.invoke(unsafe, f); unsafePutObjectMethod.invoke(unsafe, ref, key, d); return; } catch (Throwable ex) { throw new IbisIOException("got exception", ex); } } throw new IOException("No unsafe"); } /** * See {@link #readFieldDouble(Object, String, String)} for a description. * @exception ClassNotFoundException when the class could not be loaded. */ public void readFieldClass(Object ref, String fieldname, String classname) throws IOException, ClassNotFoundException { Class<?> d = readClass(); if (unsafe != null) { try { Class<?> cl = getClassFromName(classname); Field f = cl.getDeclaredField(fieldname); Object key = unsafeObjectFieldOffsetMethod.invoke(unsafe, f); unsafePutObjectMethod.invoke(unsafe, ref, key, d); return; } catch (Throwable ex) { throw new IbisIOException("got exception", ex); } } throw new IOException("No unsafe"); } /** * See {@link #readFieldDouble(Object, String, String)} for a description. * @param fieldsig signature of the field * @exception ClassNotFoundException when readObject throws it. */ public void readFieldObject(Object ref, String fieldname, String classname, String fieldsig) throws IOException, ClassNotFoundException { Object d = doReadObject(false); if (unsafe != null) { try { Class<?> cl = getClassFromName(classname); Field f = cl.getDeclaredField(fieldname); if (d != null && !f.getType().isInstance(d)) { throw new IbisIOException("wrong field type"); } Object key = unsafeObjectFieldOffsetMethod.invoke(unsafe, f); unsafePutObjectMethod.invoke(unsafe, ref, key, d); return; } catch (Throwable ex) { throw new IbisIOException("got exception", ex); } } throw new IOException("No unsafe"); } /** * Reads the serializable fields of an object <code>ref</code> using the * type information <code>t</code>. * * @param t the type info for object <code>ref</code> * @param ref the object of which the fields are to be read * * @exception IOException when an IO error occurs * @exception IllegalAccessException when access to a field is denied. * @exception ClassNotFoundException when readObject throws it. */ void alternativeDefaultReadObject(AlternativeTypeInfo t, Object ref) throws ClassNotFoundException, IllegalAccessException, IOException { int temp = 0; if (DEBUG && logger.isDebugEnabled()) { logger.debug("alternativeDefaultReadObject, class = " + t.clazz.getName()); } for (int i = 0; i < t.double_count; i++) { if (t.fields_final[temp]) { readFieldDouble(ref, t.serializable_fields[temp].getName(), t.clazz.getName()); } else { t.serializable_fields[temp].setDouble(ref, readDouble()); } temp++; } for (int i = 0; i < t.long_count; i++) { if (t.fields_final[temp]) { readFieldLong(ref, t.serializable_fields[temp].getName(), t.clazz.getName()); } else { t.serializable_fields[temp].setLong(ref, readLong()); } temp++; } for (int i = 0; i < t.float_count; i++) { if (t.fields_final[temp]) { readFieldFloat(ref, t.serializable_fields[temp].getName(), t.clazz.getName()); } else { t.serializable_fields[temp].setFloat(ref, readFloat()); } temp++; } for (int i = 0; i < t.int_count; i++) { if (t.fields_final[temp]) { readFieldInt(ref, t.serializable_fields[temp].getName(), t.clazz.getName()); } else { t.serializable_fields[temp].setInt(ref, readInt()); } temp++; } for (int i = 0; i < t.short_count; i++) { if (t.fields_final[temp]) { readFieldShort(ref, t.serializable_fields[temp].getName(), t.clazz.getName()); } else { t.serializable_fields[temp].setShort(ref, readShort()); } temp++; } for (int i = 0; i < t.char_count; i++) { if (t.fields_final[temp]) { readFieldChar(ref, t.serializable_fields[temp].getName(), t.clazz.getName()); } else { t.serializable_fields[temp].setChar(ref, readChar()); } temp++; } for (int i = 0; i < t.byte_count; i++) { if (t.fields_final[temp]) { readFieldByte(ref, t.serializable_fields[temp].getName(), t.clazz.getName()); } else { t.serializable_fields[temp].setByte(ref, readByte()); } temp++; } for (int i = 0; i < t.boolean_count; i++) { if (t.fields_final[temp]) { readFieldBoolean(ref, t.serializable_fields[temp].getName(), t.clazz.getName()); } else { t.serializable_fields[temp].setBoolean(ref, readBoolean()); } temp++; } for (int i = 0; i < t.reference_count; i++) { if (t.fields_final[temp]) { String fieldname = t.serializable_fields[temp].getName(); String fieldtype = t.serializable_fields[temp].getType().getName(); if (fieldtype.startsWith("[")) { // do nothing } else { fieldtype = "L" + fieldtype.replace('.', '/') + ";"; } // logger.debug("fieldname = " + fieldname); // logger.debug("signature = " + fieldtype); readFieldObject(ref, fieldname, t.clazz.getName(), fieldtype); } else { Object o = doReadObject(false); if (DEBUG && logger.isDebugEnabled()) { if (o == null) { logger.debug("Assigning null to field " + t.serializable_fields[temp].getName()); } else { logger.debug("Assigning an object of type " + o.getClass().getName() + " to field " + t.serializable_fields[temp].getName()); } } t.serializable_fields[temp].set(ref, o); } temp++; } } /** * De-serializes an object <code>ref</code> using the type information * <code>t</code>. * * @param t the type info for object <code>ref</code> * @param ref the object of which the fields are to be read * * @exception IOException when an IO error occurs * @exception IllegalAccessException when access to a field or * <code>readObject</code> method is * denied. * @exception ClassNotFoundException when readObject throws it. */ void alternativeReadObject(AlternativeTypeInfo t, Object ref) throws ClassNotFoundException, IllegalAccessException, IOException { if (t.superSerializable) { alternativeReadObject(t.alternativeSuperInfo, ref); } if (t.hasReadObject) { current_level = t.level; try { if (DEBUG && logger.isDebugEnabled()) { logger.debug("invoking readObject() of class " + t.clazz.getName()); } t.invokeReadObject(ref, getJavaObjectInputStream()); if (DEBUG && logger.isDebugEnabled()) { logger.debug("done with readObject() of class " + t.clazz.getName()); } } catch (java.lang.reflect.InvocationTargetException e) { if (DEBUG && logger.isDebugEnabled()) { logger.debug("Caught exception", e); } Throwable cause = e.getTargetException(); if (cause instanceof Error) { throw (Error) cause; } if (cause instanceof RuntimeException) { throw (RuntimeException) cause; } if (cause instanceof IOException) { throw (IOException) cause; } if (cause instanceof ClassNotFoundException) { throw (ClassNotFoundException) cause; } if (DEBUG && logger.isDebugEnabled()) { logger.debug("now rethrow as IllegalAccessException ..."); } throw new IbisIllegalAccessException("readObject method", e); } return; } alternativeDefaultReadObject(t, ref); } /** * This method takes care of reading the serializable fields of the * parent object, and also those of its parent objects. * Its gets called by IOGenerator-generated code when an object * has a superclass that is serializable but not Ibis serializable. * * @param ref the object with a non-Ibis-serializable parent object * @param classname the name of the superclass * @exception IOException gets thrown on IO error * @exception ClassNotFoundException when readObject throws it. */ public void readSerializableObject(Object ref, String classname) throws ClassNotFoundException, IOException { AlternativeTypeInfo t = AlternativeTypeInfo.getAlternativeTypeInfo(classname); push_current_object(ref, 0); try { alternativeReadObject(t, ref); } catch (IllegalAccessException e) { if (DEBUG && logger.isDebugEnabled()) { logger.debug("Caught exception, rethrow as NotSerializableException", e); } throw new IbisNotSerializableException(classname, e); } pop_current_object(); } /** * This method reads the serializable fields of object <code>ref</code> * at the level indicated by <code>depth</code> (see the explanation at * the declaration of the <code>current_level</code> field. * It gets called from IOGenerator-generated code, when a parent object * is serializable but not Ibis serializable. * * @param ref the object of which serializable fields must be written * @param depth an indication of the current "view" of the object * @exception IOException gets thrown when an IO error occurs. * @exception ClassNotFoundException when readObject throws it. */ public void defaultReadSerializableObject(Object ref, int depth) throws ClassNotFoundException, IOException { Class<?> type = ref.getClass(); AlternativeTypeInfo t = AlternativeTypeInfo.getAlternativeTypeInfo(type); /* Find the type info corresponding to the current invocation. See the invokeReadObject invocation in alternativeReadObject. */ while (t.level > depth) { t = t.alternativeSuperInfo; } try { alternativeDefaultReadObject(t, ref); } catch (IllegalAccessException e) { if (DEBUG && logger.isDebugEnabled()) { logger.debug("Caught exception, rethrow as NotSerializableException", e); } throw new IbisNotSerializableException(type.getName(), e); } } /** * Creates an uninitialized object of the type indicated by * <code>classname</code>. * The corresponding constructor called is the parameter-less * constructor of the "highest" superclass that is not serializable. * * @param classname name of the class * @exception ClassNotFoundException when class <code>classname</code> * cannot be loaded. */ public Object create_uninitialized_object(String classname) throws ClassNotFoundException, IOException { Class<?> clazz = getClassFromName(classname); return create_uninitialized_object(clazz); } Object create_uninitialized_object(Class<?> clazz) throws IOException { AlternativeTypeInfo t = AlternativeTypeInfo.getAlternativeTypeInfo(clazz); if (STATS_NONREWRITTEN) { Integer n = nonRewritten.get(clazz); if (n == null) { n = new Integer(1); } else { n = new Integer(n.intValue() + 1); } nonRewritten.put(clazz, n); } Object o = t.newInstance(); if (o != null) { addObjectToCycleCheck(o); return o; } throw new IOException("newInstance failed"); } /** * Push the notions of <code>current_object</code> and * <code>current_level</code> on their stacks, and set new ones. * @param ref the new <code>current_object</code> notion * @param level the new <code>current_level</code> notion */ public void push_current_object(Object ref, int level) { if (stack_size >= max_stack_size) { max_stack_size = 2 * max_stack_size + 10; Object[] new_o_stack = new Object[max_stack_size]; int[] new_l_stack = new int[max_stack_size]; for (int i = 0; i < stack_size; i++) { new_o_stack[i] = object_stack[i]; new_l_stack[i] = level_stack[i]; } object_stack = new_o_stack; level_stack = new_l_stack; } object_stack[stack_size] = current_object; level_stack[stack_size] = current_level; stack_size++; current_object = ref; current_level = level; } /** * Pop the notions of <code>current_object</code> and * <code>current_level</code> from their stacks. */ public void pop_current_object() { stack_size--; current_object = object_stack[stack_size]; current_level = level_stack[stack_size]; // Don't keep references around ... object_stack[stack_size] = null; } /** * Reads and returns a <code>String</code> object. This is a special case, * because strings are written as an UTF. * * @exception IOException gets thrown on IO error * @return the string read. */ public String readString() throws IOException { if (TIME_IBIS_SERIALIZATION) { timer.start(); } int handle = readHandle(); if (handle == Constants.NUL_HANDLE) { if (DEBUG && logger.isDebugEnabled()) { logger.debug("readString: --> null"); } if (TIME_IBIS_SERIALIZATION) { timer.stop(); } return null; } if ((handle & Constants.TYPE_BIT) == 0) { /* Ah, it's a handle. Look it up, return the stored ptr */ String o = (String) objects.get(handle); if (DEBUG && logger.isDebugEnabled()) { logger.debug("readString: duplicate handle = " + handle + " string = " + o); } if (TIME_IBIS_SERIALIZATION) { timer.stop(); } return o; } try { readType(handle & Constants.TYPE_MASK); } catch (ClassNotFoundException e) { if (DEBUG && logger.isDebugEnabled()) { logger.debug("Caught exception, rethrow as SerializationError", e); } throw new SerializationError("Cannot find java.lang.String?", e); } String s = readUTF(); if (DEBUG && logger.isDebugEnabled()) { logger.debug("readString returns " + s); } addObjectToCycleCheck(s); if (TIME_IBIS_SERIALIZATION) { timer.stop(); } return s; } public Object readObject() throws IOException, ClassNotFoundException { return doReadObject(false); } final Object doReadObject(boolean unshared) throws IOException, ClassNotFoundException { /* * ref < 0: type * ref = 0: null ptr * ref > 0: handle */ if (TIME_IBIS_SERIALIZATION) { timer.start(); } int handle_or_type = readHandle(); if (handle_or_type == Constants.NUL_HANDLE) { if (TIME_IBIS_SERIALIZATION) { timer.stop(); } return null; } if ((handle_or_type & Constants.TYPE_BIT) == 0) { // Ah, it's a handle. Look it up, return the stored ptr, // unless it should be unshared. if (unshared) { if (TIME_IBIS_SERIALIZATION) { timer.stop(); } throw new InvalidObjectException( "readUnshared got a handle instead of an object"); } Object o = objects.get(handle_or_type); if (DEBUG && logger.isDebugEnabled()) { logger.debug("readObject: duplicate handle " + handle_or_type + " class = " + o.getClass()); } if (TIME_IBIS_SERIALIZATION) { timer.stop(); } if (o == null) { throw new InvalidObjectException( "readObject got handle " + handle_or_type + " to unshared object"); } return o; } if (unshared) { unshared_handle = next_handle; } int type = handle_or_type & Constants.TYPE_MASK; AlternativeTypeInfo t = readType(type); if (DEBUG && logger.isDebugEnabled()) { logger.debug("start readObject of class " + t.clazz.getName() + " handle = " + next_handle); } Object obj = t.reader.readObject(this, t, type); if (TIME_IBIS_SERIALIZATION) { timer.stop(); } if (DEBUG && logger.isDebugEnabled()) { logger.debug("finished readObject of class " + t.clazz.getName()); } return obj; } private JavaObjectInputStream objectStream = null; public ObjectInputStream getJavaObjectInputStream() throws IOException { if (objectStream == null) { objectStream = new JavaObjectInputStream(this); } return objectStream; } private class JavaObjectInputStream extends ObjectInputStream { IbisSerializationInputStream ibisStream; JavaObjectInputStream(IbisSerializationInputStream s) throws IOException { super(); ibisStream = s; } public int available() throws IOException { return ibisStream.available(); } public void close() throws IOException { ibisStream.close(); } public int read() throws IOException { int b; try { b = ibisStream.readByte(); return b & 0377; } catch(EOFException e) { return -1; } } public int read(byte[] b) throws IOException { return read(b, 0, b.length); } public int read(byte[] b, int off, int len) throws IOException { ibisStream.readArray(b, off, len); return len; } public Object readObjectOverride() throws IOException, ClassNotFoundException { return ibisStream.doReadObject(false); } /** * Ignored for Ibis serialization. */ protected void readStreamHeader() { // ignored } protected ObjectStreamClass readClassDescriptor() throws IOException, ClassNotFoundException { Class<?> cl = ibisStream.readClass(); if (cl == null) { return null; } return ObjectStreamClass.lookup(cl); } public void readFully(byte[] b) throws IOException { ibisStream.readArray(b); } public void readFully(byte[] b, int off, int len) throws IOException { ibisStream.readArray(b, off, len); } public String readLine() throws IOException { // Now really deprecated :-) return null; } public Object readUnshared() throws IOException, ClassNotFoundException { return doReadObject(true); } public void registerValidation(java.io.ObjectInputValidation obj, int prio) throws NotActiveException, InvalidObjectException { if (current_object != obj) { throw new NotActiveException("not in readObject"); } throw new SerializationError("registerValidation not implemented"); } public Class<?> resolveClass(ObjectStreamClass desc) throws IOException, ClassNotFoundException { return desc.forClass(); } public int skipBytes(int len) throws IOException { throw new SerializationError("skipBytes not implemented"); } public long skip(long len) throws IOException { throw new SerializationError("skip not implemented"); } public boolean markSupported() { return false; } public void mark(int readLimit) { // nothing } public void reset() throws IOException { throw new IOException("mark/reset not supported"); } public GetField readFields() throws IOException, ClassNotFoundException { if (current_object == null) { throw new NotActiveException("not in readObject"); } Class<?> type = current_object.getClass(); AlternativeTypeInfo t = AlternativeTypeInfo.getAlternativeTypeInfo(type); ImplGetField current_getfield = new ImplGetField(t); current_getfield.readFields(); return current_getfield; } /** * The Ibis serialization implementation of <code>GetField</code>. */ private class ImplGetField extends GetField { private double[] doubles; private long[] longs; private int[] ints; private float[] floats; private short[] shorts; private char[] chars; private byte[] bytes; private boolean[] booleans; private Object[] references; private AlternativeTypeInfo t; ImplGetField(AlternativeTypeInfo t) { doubles = new double[t.double_count]; longs = new long[t.long_count]; ints = new int[t.int_count]; shorts = new short[t.short_count]; floats = new float[t.float_count]; chars = new char[t.char_count]; bytes = new byte[t.byte_count]; booleans = new boolean[t.boolean_count]; references = new Object[t.reference_count]; this.t = t; } public ObjectStreamClass getObjectStreamClass() { /* I don't know how it could be used here, but ... */ return ObjectStreamClass.lookup(t.clazz); } public boolean defaulted(String name) { return false; } public boolean get(String name, boolean dflt) { return booleans[t.getOffset(name, Boolean.TYPE)]; } public char get(String name, char dflt) { return chars[t.getOffset(name, Character.TYPE)]; } public byte get(String name, byte dflt) { return bytes[t.getOffset(name, Byte.TYPE)]; } public short get(String name, short dflt) { return shorts[t.getOffset(name, Short.TYPE)]; } public int get(String name, int dflt) { return ints[t.getOffset(name, Integer.TYPE)]; } public long get(String name, long dflt) { return longs[t.getOffset(name, Long.TYPE)]; } public float get(String name, float dflt) { return floats[t.getOffset(name, Float.TYPE)]; } public double get(String name, double dflt) { return doubles[t.getOffset(name, Double.TYPE)]; } public Object get(String name, Object dflt) { return references[t.getOffset(name, Object.class)]; } void readFields() throws IOException, ClassNotFoundException { for (int i = 0; i < t.double_count; i++) { doubles[i] = ibisStream.readDouble(); } for (int i = 0; i < t.float_count; i++) { floats[i] = ibisStream.readFloat(); } for (int i = 0; i < t.long_count; i++) { longs[i] = ibisStream.readLong(); } for (int i = 0; i < t.int_count; i++) { ints[i] = ibisStream.readInt(); } for (int i = 0; i < t.short_count; i++) { shorts[i] = ibisStream.readShort(); } for (int i = 0; i < t.char_count; i++) { chars[i] = ibisStream.readChar(); } for (int i = 0; i < t.byte_count; i++) { bytes[i] = ibisStream.readByte(); } for (int i = 0; i < t.boolean_count; i++) { booleans[i] = ibisStream.readBoolean(); } for (int i = 0; i < t.reference_count; i++) { references[i] = ibisStream.doReadObject(false); } } } public String readUTF() throws IOException { return ibisStream.readUTF(); } public byte readByte() throws IOException { return ibisStream.readByte(); } public int readUnsignedByte() throws IOException { return ibisStream.readUnsignedByte(); } public boolean readBoolean() throws IOException { return ibisStream.readBoolean(); } public short readShort() throws IOException { return ibisStream.readShort(); } public int readUnsignedShort() throws IOException { return ibisStream.readUnsignedShort(); } public char readChar() throws IOException { return ibisStream.readChar(); } public int readInt() throws IOException { return ibisStream.readInt(); } public long readLong() throws IOException { return ibisStream.readLong(); } public float readFloat() throws IOException { return ibisStream.readFloat(); } public double readDouble() throws IOException { return ibisStream.readDouble(); } public void defaultReadObject() throws ClassNotFoundException, IOException, NotActiveException { if (current_object == null) { throw new NotActiveException( "defaultReadObject without a current object"); } Object ref = current_object; Class<?> type = ref.getClass(); AlternativeTypeInfo t = AlternativeTypeInfo.getAlternativeTypeInfo(type); if (t.isIbisSerializable) { if (DEBUG && logger.isDebugEnabled()) { logger.debug("generated_DefaultReadObject, class = " + type + ", level = " + current_level); } ((ibis.io.Serializable) ref).generated_DefaultReadObject(ibisStream, current_level); } else if (t.isSerializable) { /* Find the type info corresponding to the current invocation. * See the invokeReadObject invocation in alternativeReadObject. */ while (t.level > current_level) { t = t.alternativeSuperInfo; } try { ibisStream.alternativeDefaultReadObject(t, ref); } catch (IllegalAccessException e) { if (DEBUG && logger.isDebugEnabled()) { logger.debug("Caught exception, rethrow as NotSerializableException", e); } throw new IbisNotSerializableException(type.getName(), e); } } else { throw new IbisNotSerializableException("Not Serializable : " + type.toString()); } } } }
[ "yuzhongxing88@gmail.com" ]
yuzhongxing88@gmail.com
505739a20eadf6cf676a1af4e0502a7945815983
6d3f79c14ad25fd732235aed6016c8f489a068b5
/mini-jaja-node-structure/src/test/java/edu/ubfc/st/vm/project/grp7/mjj/ast/node/InstrsNodeTest.java
48723f37669c96bd91bdc592c1e850762936548b
[]
no_license
Ramzi98/Compilateur
6169cc8461705786d936bf9b59f42090cb5bcf92
e8c01711ef9c86ea001f70a6770024a6698eb03d
refs/heads/master
2023-02-24T05:05:25.391361
2021-02-03T14:21:24
2021-02-03T14:21:24
335,644,742
1
0
null
2021-02-03T14:21:25
2021-02-03T14:07:52
Java
UTF-8
Java
false
false
3,399
java
package edu.ubfc.st.vm.project.grp7.mjj.ast.node; import edu.ubfc.st.vm.project.grp7.ast.Breakpoint; import edu.ubfc.st.vm.project.grp7.mjj.ast.MiniJajaNode; import org.hamcrest.Matchers; import org.junit.Before; import org.junit.Test; import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.is; public class InstrsNodeTest { @Before public void setup() { instrsNode = InstrsNode.builder() .line(6) .column(4) .instruction(instruction) .instrs(instrs) .build(); } private InstrsNode instrsNode; @Test public void check__InstrsNode__Line() { assertThat(instrsNode.line(), is(6)); } @Test public void check__InstrsNode__Column() { assertThat(instrsNode.column(), is(4)); } @Test public void check__InstrsNode__Expression() { assertThat(instrsNode.instruction(), Matchers.is(instruction)); } @Test public void check__InstrsNode__TypeMeth() { assertThat(instrsNode.instrs(), Matchers.is(instrs)); } @Test public void check__InstrsNode__DefaultBreakpoint() { assertThat(instrsNode.breakpoint(), is(Breakpoint.NONE)); } @Test public void check__InstrsNode__Breakpoint() { instrsNode = InstrsNode.builder() .breakpoint(Breakpoint.STEP_BY_STEP) .build(); assertThat(instrsNode.breakpoint(), is(Breakpoint.STEP_BY_STEP)); } @Test public void check__InstrsNode__ChildrenMethod__FirstChild() { assertThat(instrsNode.children(0), Matchers.is(instruction)); } @Test public void check__InstrsNode__ChildrenMethod__SecondChild() { assertThat(instrsNode.children(1), Matchers.is(instrs)); } @Test(expected = IndexOutOfBoundsException.class) public void check__InstrsNode__ChildrenMethod__OtherChild() { instrsNode.children(2); } // ---------------------------------- Parameters Nodes ---------------------------------- private static final MiniJajaNode instruction = new MiniJajaNode() { @Override public Breakpoint breakpoint() { return Breakpoint.BREAKPOINT; } @Override public MiniJajaNode children(int n) throws IndexOutOfBoundsException { throw new IndexOutOfBoundsException(); } @Override public int line() { return 12; } @Override public int column() { return 34; } }; private static final InstrsNode instrs = new InstrsNode() { @Override public MiniJajaNode instruction() { return null; } @Override public InstrsNode instrs() { return null; } @Override public Breakpoint breakpoint() { return null; } @Override public MiniJajaNode children(int n) throws IndexOutOfBoundsException { throw new IndexOutOfBoundsException(); } @Override public int line() { return 13; } @Override public int column() { return 10; } }; }
[ "antoine.bonneau@edu.univ-fcomte.fr" ]
antoine.bonneau@edu.univ-fcomte.fr
3ca1bd223d98d974d69a97fc91fa183a09d56ba3
90761ebedea67973c62b657195a2607c6c71a95d
/src/dao/GroupPostApproveDao.java
c71646987fa75fc5e167b9be635095b316453481
[]
no_license
Zihao-Liu/MyWeb
c43ef555b78d52b14507965c9b19403d91fee6ae
dc18b50b6d733fac87c3be447951b31f722d9e05
refs/heads/master
2021-06-13T17:59:43.034371
2017-03-20T12:38:22
2017-03-20T12:38:22
76,023,439
0
0
null
2017-01-24T10:25:46
2016-12-09T09:55:30
Java
GB18030
Java
false
false
356
java
package dao; import bean.GroupPostApprove; public interface GroupPostApproveDao { public void addApprove(int postID, int userID,int action); public GroupPostApprove findApprove(int postID,int userID); public void deleteApprove(int postID); public void modifyPostApprove(int postID, int action);//action为赞成或反对,0为反对,1为赞成 }
[ "liuzihaolzh@126.com" ]
liuzihaolzh@126.com