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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
670d4ed7deff8e3157baeb270db072f4301d7f35 | b38a531aba67d97f831125c78bf2f89766d28288 | /MyApplication/src/test/java/com/albania/MyApplicationTests.java | ae3539b7f44a285488f8f61fd992efb5c277eefb | [] | no_license | ertugertshkulaku/myspringapp1 | ecd596c3cf660ac138c5f6d6e0f1bd26008b296b | d1bfbbbc6bef99323335d872d34f84264c3a126e | refs/heads/master | 2021-01-09T16:03:17.266378 | 2020-02-22T15:43:36 | 2020-02-22T15:43:36 | 242,365,706 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 324 | java | package com.albania;
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 MyApplicationTests {
@Test
public void contextLoads() {
}
}
| [
"Eri@Ertugert-Pc"
] | Eri@Ertugert-Pc |
58b0bcad3ab4a6d866a56510eecedac3da3a7142 | cdc490dc610c42c7b9156a69d4a97aee9a46d5a4 | /Educalife/src/br/com/hslife/educalife/enumeration/Uf.java | f655a012bc16311dfe67ac005672c1cbae6469cc | [
"MIT"
] | permissive | herculeshssj/educalife | c2fc7adeed46651aec3b42b15a66b03ff9180e11 | 6c84963b1b06352c6b65433e318fc8f59c07b4a5 | refs/heads/master | 2021-11-27T17:30:54.260596 | 2021-11-19T11:00:31 | 2021-11-19T11:00:31 | 54,271,158 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 735 | java | package br.com.hslife.educalife.enumeration;
public enum Uf {
AC("Acre"),
AL("Alagoas"),
AP("Amapá"),
AM("Amazonas"),
BA("Bahia"),
CE("Ceará"),
DF("Distrito Federal"),
ES("Espírito Santo"),
GO("Goiás"),
MA("Maranhão"),
MT("Mato Grosso"),
MS("Mato Grosso do Sul"),
MG("Minas Gerais"),
PA("Pará"),
PB("Paraíba"),
PR("Paraná"),
PE("Pernambuco"),
PI("Piauí"),
RJ("Rio de Janeiro"),
RN("Rio Grande do Norte"),
RS("Rio Grande do Sul"),
RO("Rondônia"),
RR("Roraima"),
SC("Santa Catarina"),
SP("São Paulo"),
SE("Sergipe"),
TO("Tocantins");
private String descricao;
private Uf(String descricao) {
this.descricao = descricao;
}
public String getDescricao() {
return this.descricao;
}
}
| [
"hercules_hssj@outlook.com"
] | hercules_hssj@outlook.com |
f8d6469b3cfc9b34daf0078673dd60bf231b41c7 | b0673719527db633026315125a917ba701107e64 | /src/main/java/com/farm/dao/IFarmerDao.java | 9be5bd567f777a0e070a586e297f1e9468aa3019 | [] | no_license | Rekha2916/Agricom | 932145409e01bbdc09b3ff726777c04aea7bfe89 | a2d98ee0d1a46217b9b48cba86e207628ebeb608 | refs/heads/master | 2020-04-08T02:24:57.684161 | 2018-12-03T05:08:38 | 2018-12-03T05:08:38 | 158,934,772 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 225 | java | package com.farm.dao;
import com.farm.model.*;
// interface for farmer
public interface IFarmerDao {
public int addFarmer(FarmFarmer f);
public FarmFarmer validate(LoginFarmer l);
int fogetUser(LoginFarmer l);
}
| [
"rekhakumawat19@gmail.com"
] | rekhakumawat19@gmail.com |
b8c62addbfdeed56227fbd488a5269ebf3f50f2e | 43e2ed1afe8fcc9355db34df39bd7299b7b1a9ff | /src/main/java/com/ets/controller/gui/emrCharting/pmh/familyHistory/FamilyHistoryFreeTextController.java | e7e1beb562e3bb4b94038d6699afd6acfa6f1060 | [] | no_license | topdeveloper424/EHR-JAVA | 0b420d75d6e6adafdebc3c91610fbed90d388d01 | 61c7ee66fa844fc5dd65a3a145405489088559ff | refs/heads/master | 2022-12-09T21:30:44.241621 | 2019-10-11T05:28:49 | 2019-10-11T05:28:49 | 209,291,391 | 1 | 0 | null | 2022-11-24T05:49:09 | 2019-09-18T11:27:06 | Java | UTF-8 | Java | false | false | 1,695 | java | package com.ets.controller.gui.emrCharting.pmh.familyHistory;
import java.net.URL;
import java.util.ResourceBundle;
import com.ets.controller.gui.emrCharting.pmh.PMHFamilyHistoryInputController;
import com.ets.utils.FXFormCommonUtilities;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.scene.control.Button;
import javafx.scene.control.TextArea;
import javafx.scene.control.TextField;
public class FamilyHistoryFreeTextController implements Initializable {
@FXML
private TextField summaryText;
@FXML
private TextArea additinalText;
@FXML
private Button doneBtn;
@FXML
private Button skipBtn;
private PMHFamilyHistoryInputController pMHFamilyHistoryInputController;
public void setpMHFamilyHistoryInputController(PMHFamilyHistoryInputController pMHFamilyHistoryInputController) {
this.pMHFamilyHistoryInputController = pMHFamilyHistoryInputController;
}
@Override
public void initialize(URL location, ResourceBundle resources) {
summaryText.setText(pMHFamilyHistoryInputController.strForFreeText);
doneBtn.setOnAction((event) -> {
if (additinalText.getText().length() > 0 || summaryText.getText().length() > 0) {
pMHFamilyHistoryInputController.genericEMRChartingController
.setPmhTextArea("\n" + summaryText.getText() + "\n" + additinalText.getText());
pMHFamilyHistoryInputController.genericEMRChartingController.saveAllTextArea();
pMHFamilyHistoryInputController.strForFreeText = "";
}
new FXFormCommonUtilities().closeForm(doneBtn);
});
skipBtn.setOnAction((event) -> {
new FXFormCommonUtilities().closeForm(skipBtn);
});
}
}
| [
"badar.khann1@gmail.com"
] | badar.khann1@gmail.com |
204e9edb88cc418bd7408278d44c967f4a7d082f | 635880651b1b647d17b53a2a75c2caef666621e5 | /src/main/java/hprose/net/Acceptor.java | bbd86db06ab000290dbaf5f40884189f32735075 | [
"MIT"
] | permissive | zjpjohn/hprose-java | f0e13c3f92001e433bac758cadf07875e9f40e3a | 5ff7c878a24b6879c8b8ec6cdc8a16b0e9be6efe | refs/heads/master | 2020-12-14T07:42:43.768094 | 2016-08-16T15:35:09 | 2016-08-16T15:35:09 | 65,905,852 | 1 | 0 | null | 2016-08-17T12:29:38 | 2016-08-17T12:29:38 | null | UTF-8 | Java | false | false | 3,969 | java | /**********************************************************\
| |
| hprose |
| |
| Official WebSite: http://www.hprose.com/ |
| http://www.hprose.org/ |
| |
\**********************************************************/
/**********************************************************\
* *
* Acceptor.java *
* *
* hprose Acceptor class for Java. *
* *
* LastModified: Apr 26, 2016 *
* Author: Ma Bingyao <andot@hprose.com> *
* *
\**********************************************************/
package hprose.net;
import java.io.IOException;
import java.net.InetSocketAddress;
import java.net.ServerSocket;
import java.nio.channels.ClosedSelectorException;
import java.nio.channels.SelectionKey;
import java.nio.channels.Selector;
import java.nio.channels.ServerSocketChannel;
import java.nio.channels.SocketChannel;
import java.util.Iterator;
public final class Acceptor extends Thread {
private final Selector selector;
private final ServerSocketChannel serverChannel;
private final ReactorGroup reactor;
private final ConnectionHandler handler;
public Acceptor(String host, int port, ConnectionHandler handler, int reactorThreads) throws IOException {
selector = Selector.open();
serverChannel = ServerSocketChannel.open();
ServerSocket serverSocket = serverChannel.socket();
InetSocketAddress address = (host == null) ?
new InetSocketAddress(port) :
new InetSocketAddress(host, port);
serverSocket.bind(address);
serverChannel.configureBlocking(false);
serverChannel.register(selector, SelectionKey.OP_ACCEPT);
reactor = new ReactorGroup(reactorThreads);
this.handler = handler;
}
@Override
public void run() {
reactor.start();
try {
while (!isInterrupted()) {
try {
process();
}
catch (IOException e) {
handler.onError(null, e);
}
}
}
catch (ClosedSelectorException e) {}
reactor.close();
}
private void process() throws IOException {
int n = selector.select();
if (n == 0) return;
Iterator<SelectionKey> it = selector.selectedKeys().iterator();
while (it.hasNext()) {
SelectionKey key = it.next();
it.remove();
if (key.isAcceptable()) {
accept(key);
}
}
}
private void accept(SelectionKey key) throws IOException {
final SocketChannel channel = ((ServerSocketChannel) key.channel()).accept();
if (channel != null) {
channel.configureBlocking(false);
channel.socket().setReuseAddress(true);
channel.socket().setKeepAlive(true);
reactor.register(new Connection(channel, handler));
}
}
public void close() {
try {
selector.close();
}
catch (IOException e) {}
try {
serverChannel.close();
}
catch (IOException e) {}
}
}
| [
"mabingyao@gmail.com"
] | mabingyao@gmail.com |
5a2dced3526615b4509c0e4d361e4a3bb63fcae6 | ac02db4faf2a1e2ed3899414361bd8133ae9b31e | /library/src/main/java/com/yqritc/recyclerviewflexibledivider/FlexibleDividerDecoration.java | 65846f0f2348cd85c5ef7dda5cf1237b34157c99 | [
"Apache-2.0"
] | permissive | aelmahalawey/RecyclerView-FlexibleDivider | 6d0b3f527e060613324fb09d1de358703777042d | daff09f20c9226246b0a1b2a2b669c140c9c7256 | refs/heads/master | 2021-01-21T07:20:48.163132 | 2015-04-21T05:32:50 | 2015-04-21T05:32:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 10,931 | java | package com.yqritc.recyclerviewflexibledivider;
import android.content.Context;
import android.content.res.Resources;
import android.content.res.TypedArray;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.Rect;
import android.graphics.drawable.Drawable;
import android.support.annotation.ColorRes;
import android.support.annotation.DimenRes;
import android.support.annotation.DrawableRes;
import android.support.v4.view.ViewCompat;
import android.support.v7.widget.RecyclerView;
import android.view.View;
/**
* Created by yqritc on 2015/01/08.
*/
public abstract class FlexibleDividerDecoration extends RecyclerView.ItemDecoration {
private static final int DEFAULT_SIZE = 2;
private static final int[] ATTRS = new int[]{
android.R.attr.listDivider
};
protected enum DividerType {
DRAWABLE, PAINT, COLOR
}
protected DividerType mDividerType = DividerType.DRAWABLE;
protected VisibilityProvider mVisibilityProvider;
protected PaintProvider mPaintProvider;
protected ColorProvider mColorProvider;
protected DrawableProvider mDrawableProvider;
protected SizeProvider mSizeProvider;
protected boolean mShowLastDivider;
private Paint mPaint;
protected FlexibleDividerDecoration(Builder builder) {
if (builder.mPaintProvider != null) {
mDividerType = DividerType.PAINT;
mPaintProvider = builder.mPaintProvider;
} else if (builder.mColorProvider != null) {
mDividerType = DividerType.COLOR;
mColorProvider = builder.mColorProvider;
mPaint = new Paint();
setSizeProvider(builder);
} else {
mDividerType = DividerType.DRAWABLE;
if (builder.mDrawableProvider == null) {
TypedArray a = builder.mContext.obtainStyledAttributes(ATTRS);
final Drawable divider = a.getDrawable(0);
a.recycle();
mDrawableProvider = new DrawableProvider() {
@Override
public Drawable drawableProvider(int position, RecyclerView parent) {
return divider;
}
};
} else {
mDrawableProvider = builder.mDrawableProvider;
}
mSizeProvider = builder.mSizeProvider;
}
mVisibilityProvider = builder.mVisibilityProvider;
mShowLastDivider = builder.mShowLastDivider;
}
private void setSizeProvider(Builder builder) {
mSizeProvider = builder.mSizeProvider;
if (mSizeProvider == null) {
mSizeProvider = new SizeProvider() {
@Override
public int dividerSize(int position, RecyclerView parent) {
return DEFAULT_SIZE;
}
};
}
}
@Override
public void onDrawOver(Canvas c, RecyclerView parent, RecyclerView.State state) {
int lastChildPosition = -1;
int childCount = mShowLastDivider ? parent.getChildCount() : parent.getChildCount() - 1;
for (int i = 0; i < childCount; i++) {
View child = parent.getChildAt(i);
int childPosition = parent.getChildPosition(child);
if (childPosition < lastChildPosition) {
// Avoid remaining divider when animation starts
continue;
}
lastChildPosition = childPosition;
if (ViewCompat.getAlpha(child) < 1) {
// Avoid remaining divider when animation starts
continue;
}
if (mVisibilityProvider.shouldHideDivider(childPosition, parent)) {
continue;
}
Rect bounds = getDividerBound(childPosition, parent, child);
switch (mDividerType) {
case DRAWABLE:
Drawable drawable = mDrawableProvider.drawableProvider(childPosition, parent);
drawable.setBounds(bounds);
drawable.draw(c);
break;
case PAINT:
mPaint = mPaintProvider.dividerPaint(childPosition, parent);
c.drawLine(bounds.left, bounds.top, bounds.right, bounds.bottom, mPaint);
break;
case COLOR:
mPaint.setColor(mColorProvider.dividerColor(childPosition, parent));
mPaint.setStrokeWidth(mSizeProvider.dividerSize(childPosition, parent));
c.drawLine(bounds.left, bounds.top, bounds.right, bounds.bottom, mPaint);
break;
}
}
}
@Override
public void getItemOffsets(Rect rect, View v, RecyclerView parent, RecyclerView.State state) {
int position = parent.getChildPosition(v);
setItemOffsets(rect, position, parent);
}
protected abstract Rect getDividerBound(int position, RecyclerView parent, View child);
protected abstract void setItemOffsets(Rect outRect, int position, RecyclerView parent);
/**
* Interface for controlling divider visibility
*/
public interface VisibilityProvider {
/**
* Returns true if divider should be hidden.
*
* @param position Divider position
* @param parent RecyclerView
* @return True if the divider at position should be hidden
*/
public boolean shouldHideDivider(int position, RecyclerView parent);
}
/**
* Interface for controlling paint instance for divider drawing
*/
public interface PaintProvider {
/**
* Returns {@link android.graphics.Paint} for divider
*
* @param position Divider position
* @param parent RecyclerView
* @return Paint instance
*/
public Paint dividerPaint(int position, RecyclerView parent);
}
/**
* Interface for controlling divider color
*/
public interface ColorProvider {
/**
* Returns {@link android.graphics.Color} value of divider
*
* @param position Divider position
* @param parent RecyclerView
* @return Color value
*/
public int dividerColor(int position, RecyclerView parent);
}
/**
* Interface for controlling drawable object for divider drawing
*/
public interface DrawableProvider {
/**
* Returns drawable instance for divider
*
* @param position Divider position
* @param parent RecyclerView
* @return Drawable instance
*/
public Drawable drawableProvider(int position, RecyclerView parent);
}
/**
* Interface for controlling divider size
*/
public interface SizeProvider {
/**
* Returns size value of divider.
* Height for horizontal divider, width for vertical divider
*
* @param position Divider position
* @param parent RecyclerView
* @return Size of divider
*/
public int dividerSize(int position, RecyclerView parent);
}
public static class Builder<T extends Builder> {
private Context mContext;
protected Resources mResources;
private PaintProvider mPaintProvider;
private ColorProvider mColorProvider;
private DrawableProvider mDrawableProvider;
private SizeProvider mSizeProvider;
private VisibilityProvider mVisibilityProvider = new VisibilityProvider() {
@Override
public boolean shouldHideDivider(int position, RecyclerView parent) {
return false;
}
};
private boolean mShowLastDivider = false;
public Builder(Context context) {
mContext = context;
mResources = context.getResources();
}
public T paint(final Paint paint) {
return paintProvider(new PaintProvider() {
@Override
public Paint dividerPaint(int position, RecyclerView parent) {
return paint;
}
});
}
public T paintProvider(PaintProvider provider) {
mPaintProvider = provider;
return (T) this;
}
public T color(final int color) {
return colorProvider(new ColorProvider() {
@Override
public int dividerColor(int position, RecyclerView parent) {
return color;
}
});
}
public T colorResId(@ColorRes int colorId) {
return color(mResources.getColor(colorId));
}
public T colorProvider(ColorProvider provider) {
mColorProvider = provider;
return (T) this;
}
public T drawable(@DrawableRes int id) {
return drawable(mResources.getDrawable(id));
}
public T drawable(final Drawable drawable) {
return drawableProvider(new DrawableProvider() {
@Override
public Drawable drawableProvider(int position, RecyclerView parent) {
return drawable;
}
});
}
public T drawableProvider(DrawableProvider provider) {
mDrawableProvider = provider;
return (T) this;
}
public T size(final int size) {
return sizeProvider(new SizeProvider() {
@Override
public int dividerSize(int position, RecyclerView parent) {
return size;
}
});
}
public T sizeResId(@DimenRes int sizeId) {
return size(mResources.getDimensionPixelSize(sizeId));
}
public T sizeProvider(SizeProvider provider) {
mSizeProvider = provider;
return (T) this;
}
public T visibilityProvider(VisibilityProvider provider) {
mVisibilityProvider = provider;
return (T) this;
}
public T showLastDivider() {
mShowLastDivider = true;
return (T) this;
}
protected void checkBuilderParams() {
if (mPaintProvider != null) {
if (mColorProvider != null) {
throw new IllegalArgumentException(
"Use setColor method of Paint class to specify line color. Do not provider ColorProvider if you set PaintProvider.");
}
if (mSizeProvider != null) {
throw new IllegalArgumentException(
"Use setStrokeWidth method of Paint class to specify line size. Do not provider SizeProvider if you set PaintProvider.");
}
}
}
}
} | [
"ikeda_yoshihito@cyberagent.co.jp"
] | ikeda_yoshihito@cyberagent.co.jp |
c82374952910e9a2e2afdae3233c739e8dd25f3f | 0869ca5baeb9b38d554101fb55e0857c97ad3623 | /app/src/main/java/com/wallet/crypto/trustapp/widget/BlockchainsAdapter.java | 5f90a8c84ec3e3a1cb8d4a6206a4cca752da2893 | [] | no_license | alitong/oldTrust | a4c9198d6a9f7c632129247173ccb9ee908c72a7 | cdce6c1acbc6f848b171718f57920cf07dafc816 | refs/heads/master | 2022-03-03T22:48:59.970155 | 2019-10-08T09:34:41 | 2019-10-08T09:34:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,320 | java | package com.wallet.crypto.trustapp.widget;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.FrameLayout.LayoutParams;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import com.bumptech.glide.load.engine.DiskCacheStrategy;
import com.wallet.crypto.trustapp.R;
import com.wallet.crypto.trustapp.di.GlideApp;
import com.wallet.crypto.trustapp.di.GlideRequest;
import trust.blockchain.Slip;
public class BlockchainsAdapter extends BaseAdapter {
/* renamed from: a */
private final Slip[] f17102a;
private static class Holder {
/* renamed from: a */
public ImageView f17099a;
/* renamed from: b */
public TextView f17100b;
/* renamed from: c */
public LinearLayout f17101c;
private Holder() {
}
}
public BlockchainsAdapter(Slip[] slipArr) {
this.f17102a = slipArr;
}
public int getCount() {
return this.f17102a.length;
}
public Object getItem(int i) {
return this.f17102a[i];
}
public long getItemId(int i) {
Slip[] slipArr = this.f17102a;
return slipArr[i] == null ? -1 : (long) slipArr[i].coinType().value();
}
public View getView(int i, View view, ViewGroup viewGroup) {
Holder holder;
if (view == null) {
view = LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.item_node, viewGroup, false);
holder = new Holder();
holder.f17099a = (ImageView) view.findViewById(R.id.icon);
holder.f17100b = (TextView) view.findViewById(R.id.title);
holder.f17101c = (LinearLayout) view.findViewById(R.id.content_container);
view.setTag(holder);
}
holder = (Holder) view.getTag();
Slip slip = this.f17102a[i];
GlideRequest load;
if (slip == null) {
LayoutParams layoutParams = new LayoutParams(-1, -2);
int dimension = (int) holder.f17101c.getContext().getResources().getDimension(R.dimen.half_large_margin);
layoutParams.bottomMargin = dimension;
layoutParams.topMargin = dimension;
holder.f17101c.setLayoutParams(layoutParams);
holder.f17100b.setText(R.string.MultiCoinWallet);
load = GlideApp.with(holder.f17099a).asBitmap().load(Integer.valueOf(R.drawable.ic_main_wallet));
load.fitCenter();
load.centerInside();
load.diskCacheStrategy(DiskCacheStrategy.ALL);
load.into(holder.f17099a);
} else {
LayoutParams layoutParams2 = new LayoutParams(-1, -2);
layoutParams2.bottomMargin = 0;
layoutParams2.topMargin = 0;
holder.f17101c.setLayoutParams(layoutParams2);
holder.f17100b.setText(slip.coinName());
load = GlideApp.with(holder.f17099a).asBitmap().load(String.format("file:///android_asset/coins/%s.png", new Object[]{Integer.valueOf(slip.coinType().value())}));
load.fitCenter();
load.centerInside();
load.diskCacheStrategy(DiskCacheStrategy.ALL);
load.into(holder.f17099a);
}
return view;
}
}
| [
"toufiqelahy@hotmail.com"
] | toufiqelahy@hotmail.com |
620f8561fc61e62aa4317fb00fa6073a9fac4abd | 5ab0e1f6d1f3fbf94b576b19792ec3f6db66fef1 | /cloud2020/seata-order-service2001/src/main/java/com/wsz/springcloudalibaba/controller/OrderController.java | 0a10ad79b9efe05e715bb8c2c9cdbd48220c3d97 | [] | no_license | Wushuzhang/springcloud | e4b87bcfe0dee3130f1fac51a3f98fbe364af4b3 | fc2615c69610a73206951414eaf70a6783947622 | refs/heads/master | 2022-11-23T20:25:22.107308 | 2020-07-05T02:42:23 | 2020-07-05T02:42:23 | 277,217,874 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 653 | java | package com.wsz.springcloudalibaba.controller;
import com.wsz.springcloudalibaba.entity.CommonResult;
import com.wsz.springcloudalibaba.entity.Order;
import com.wsz.springcloudalibaba.service.OrderService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
@RestController
public class OrderController{
@Resource
private OrderService orderService;
@GetMapping("/order/create")
public CommonResult create(Order order)
{
orderService.create(order);
return new CommonResult(200,"订单创建成功");
}
}
| [
"937680550@qq.com"
] | 937680550@qq.com |
849314ccffc5593e1b22c7521cae901792a62114 | 0e07c7fa832e90b0352a6386e9f91e81fbc74c13 | /singleton/src/main/java/com/chc/design_coding/interpreter/bridge/singleton/LazySingleton.java | 3b04405940be705c3b1c3cb940bfe35ad9c62f7e | [] | no_license | chcGolang/java_design_coding | 0671f6015b5e6f665d8cdbcbdaaa5d6e7368857c | 24910b25cf853a441370c04a83685e43e6738fe0 | refs/heads/master | 2020-05-09T16:06:05.239966 | 2019-04-28T03:46:58 | 2019-04-28T03:46:58 | 181,257,593 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 448 | java | package com.chc.design_coding.interpreter.bridge.singleton;
/**
* 懒汉式单例
* @author chc
* @create 2019-04-18 20:50
**/
public class LazySingleton {
private static LazySingleton lazySingleton = null;
private LazySingleton(){
}
public synchronized static LazySingleton getInstance(){
if (lazySingleton == null){
lazySingleton = new LazySingleton();
}
return lazySingleton;
}
}
| [
"869672271@qq.com"
] | 869672271@qq.com |
27d6e7ff09bcf4e712487ad7866848f79183c637 | ebe07aa4fbd109f9c4ee6b3844092bfbf17049aa | /android_xhs/XHSApp/app/src/main/java/com/example/xhsapp/Land.java | 0b4fd3ce8c9d5caf5c51e1e33d1169da3f3ff662 | [] | no_license | WhiteRedB/lz_xxgcxy_jy_lz | 0af57865cc311892d799d4b3d7afc4d0cfd67945 | a2ea1255b1e8e575ac03d83e7057b316f3e1e6e4 | refs/heads/master | 2020-05-29T14:30:10.867883 | 2019-05-29T09:53:53 | 2019-05-29T09:53:53 | 189,197,415 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,965 | java | package com.example.xhsapp;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.text.TextUtils;
import android.view.View;
import android.widget.Button;
import android.widget.CheckBox;
import android.widget.EditText;
import android.widget.Toast;
public class Land extends AppCompatActivity implements View.OnClickListener {
private EditText sr_mm1;
private EditText sr_zh1;
private CheckBox jzmm;
private Button zc1;
private Button dl1;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.land);
Button zc1 =(Button)findViewById(R.id.reg);
zc1.setOnClickListener(this);
Button dl1=(Button)findViewById(R.id.denglu);
dl1.setOnClickListener(this);
jzmm=(CheckBox)findViewById(R.id.jzmm);
sr_mm1=(EditText)findViewById(R.id.sr_mm);
sr_zh1=(EditText)findViewById(R.id.sr_zh);
}
@Override
public void onClick(View v) {
String srzh =sr_zh1.getText().toString().trim();
String srmm =sr_mm1.getText().toString().trim();
switch (v.getId())
{
case R.id.denglu:
if(TextUtils.isEmpty(srzh) || TextUtils.isEmpty(srmm)){
Toast.makeText(Land.this,"密码或账号不能为空",Toast.LENGTH_SHORT).show();
} else {
Toast.makeText(Land.this,"登录成功",Toast.LENGTH_SHORT).show();
Intent dl = new Intent(Land.this, Xhs.class);
startActivity(dl);
}
break;
case R.id.reg:
Intent dlc = new Intent(Land.this, register.class);
startActivity(dlc);
}
}
}
| [
"2684049025@qq.com"
] | 2684049025@qq.com |
697e3cf3c498ad29de5fb40dc31c272ceeb4e315 | 848347ce752376c2a7db7c174cf6c0733ab70469 | /src/main/java/dev/jbcu10/opendata/domain/Source.java | b9cded2cbe3eaca6e203196eeb153ae0c4beedd9 | [] | no_license | nebnhoj/open-data | d048fa503b90ee244ba10b62d2c0ed25404654c4 | ae869be0fbac90f18e2b3f2b2f1bba4ec0fa5abf | refs/heads/master | 2021-03-27T15:29:01.992456 | 2018-02-22T06:09:40 | 2018-02-22T06:09:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 661 | java | package dev.jbcu10.opendata.domain;
public class Source {
private String id;
private String src;
private String csv;
public Source() {
}
public Source(String id, String src, String csv) {
this.id = id;
this.src = src;
this.csv = csv;
}
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getSrc() {
return src;
}
public void setSrc(String src) {
this.src = src;
}
public String getCsv() {
return csv;
}
public void setCsv(String csv) {
this.csv = csv;
}
}
| [
"jb.uera021093@gmail.com"
] | jb.uera021093@gmail.com |
5448d3dba656ae0e7e2bb7810ffbdd60b320ff66 | b04283a5dfd50dde839a855f4f3316a0b7845439 | /JavaIniciantes/src/Capitulo2/StrDemo.java | a19207f8a335888a85a78767869dfb314a2d6cd7 | [] | no_license | AvtEstudos/JavaSE8 | c420b45b2fe9923de6dce163e8e4426e6d7f5afa | 008fd66833aade5989136f429961fe5617a6987c | refs/heads/master | 2020-04-10T01:42:49.782478 | 2019-03-10T22:33:27 | 2019-03-10T22:33:27 | 160,723,211 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 240 | java | package Capitulo2;
public class StrDemo {
public static void main(String[] args) {
System.out.println("Primeira Linha \n Segunda Linha");
System.out.println("A \t B \t C");
System.out.println("D \t E \t F");
}
}
| [
"andretamayoshi@gmail.com"
] | andretamayoshi@gmail.com |
c1955029a2c274348d5e4a5254bc66dea248f234 | 2378c195f2647b004346ed30164cc026959cda25 | /src/main/java/com/simibubi/create/modules/contraptions/redstone/ContactMovementBehaviour.java | e95a4f5ccc7145b7f394b50e1cce66fc232bc717 | [
"MIT"
] | permissive | MORIMORI0317/Create | 7d62126e5fe405afd69e39c39582ee4c2c49ef1a | 3371267e799ca3474d5ff78769677408b346b5b2 | refs/heads/master | 2021-05-23T09:05:22.580797 | 2020-03-29T02:44:35 | 2020-03-29T02:44:35 | 253,212,805 | 1 | 0 | MIT | 2020-04-05T10:53:15 | 2020-04-05T10:53:15 | null | UTF-8 | Java | false | false | 2,196 | java | package com.simibubi.create.modules.contraptions.redstone;
import com.simibubi.create.AllBlocks;
import com.simibubi.create.foundation.utility.VecHelper;
import com.simibubi.create.modules.contraptions.components.contraptions.MovementBehaviour;
import com.simibubi.create.modules.contraptions.components.contraptions.MovementContext;
import net.minecraft.block.BlockState;
import net.minecraft.nbt.NBTUtil;
import net.minecraft.util.Direction;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.math.Vec3d;
import net.minecraft.world.TickPriority;
import net.minecraft.world.World;
public class ContactMovementBehaviour extends MovementBehaviour {
@Override
public Vec3d getActiveAreaOffset(MovementContext context) {
return new Vec3d(context.state.get(ContactBlock.FACING).getDirectionVec()).scale(.65f);
}
@Override
public void visitNewPosition(MovementContext context, BlockPos pos) {
BlockState block = context.state;
World world = context.world;
if (world.isRemote)
return;
if (context.firstMovement)
return;
deactivateLastVisitedContact(context);
BlockState visitedState = world.getBlockState(pos);
if (!AllBlocks.CONTACT.typeOf(visitedState))
return;
Vec3d contact = new Vec3d(block.get(ContactBlock.FACING).getDirectionVec());
contact = VecHelper.rotate(contact, context.rotation.x, context.rotation.y, context.rotation.z);
Direction direction = Direction.getFacingFromVector(contact.x, contact.y, contact.z);
if (!ContactBlock.hasValidContact(world, pos.offset(direction.getOpposite()), direction))
return;
world.setBlockState(pos, visitedState.with(ContactBlock.POWERED, true));
context.data.put("lastContact", NBTUtil.writeBlockPos(pos));
return;
}
@Override
public void stopMoving(MovementContext context) {
deactivateLastVisitedContact(context);
}
public void deactivateLastVisitedContact(MovementContext context) {
if (context.data.contains("lastContact")) {
BlockPos last = NBTUtil.readBlockPos(context.data.getCompound("lastContact"));
context.world.getPendingBlockTicks().scheduleTick(last, AllBlocks.CONTACT.get(), 1, TickPriority.NORMAL);
context.data.remove("lastContact");
}
}
}
| [
"31564874+simibubi@users.noreply.github.com"
] | 31564874+simibubi@users.noreply.github.com |
ef41d80955397bf44bf4ef2b9676d73facd7bb66 | 1074c97cdd65d38c8c6ec73bfa40fb9303337468 | /rda0105-agl-aus-java-a43926f304e3/xms-persistence/src/main/java/com/gms/xms/persistence/dao/admin/ProductCarrierDao.java | 198ed2c39ac25049b80c9189cfcd8c2c087ba4c7 | [] | no_license | gahlawat4u/repoName | 0361859254766c371068e31ff7be94025c3e5ca8 | 523cf7d30018b7783e90db98e386245edad34cae | refs/heads/master | 2020-05-17T01:26:00.968575 | 2019-04-29T06:11:52 | 2019-04-29T06:11:52 | 183,420,568 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,946 | java | package com.gms.xms.persistence.dao.admin;
import com.gms.xms.common.exception.DaoException;
import com.gms.xms.filter.admin.ProductCarrierFilter;
import com.gms.xms.persistence.config.SqlSessionClient;
import com.gms.xms.persistence.dao.BaseDao;
import com.gms.xms.txndb.vo.admin.ProductCarrierVo;
import java.util.List;
import java.util.Map;
/**
* Posted from ProductCarrierDao
* <p>
* Author HoangPH Oct 17, 2015
*/
public class ProductCarrierDao extends BaseDao<ProductCarrierVo> {
public ProductCarrierDao() {
super();
}
public ProductCarrierDao(SqlSessionClient sqlSessionClient) {
super(sqlSessionClient);
}
public void insert(Map<String, String> context, ProductCarrierVo productCarrier) throws DaoException {
insert(context, productCarrier, "ProductCarrier.insert");
}
public void update(Map<String, String> context, ProductCarrierVo productCarrier) throws DaoException {
update(context, productCarrier, "ProductCarrier.update");
}
public void delete(Map<String, String> context, Long productCarrierId) throws DaoException {
delete(context, productCarrierId, "ProductCarrier.delete");
}
public List<ProductCarrierVo> selectByFilter(ProductCarrierFilter filter) throws DaoException {
return this.selectList(filter, "ProductCarrier.selectByFilter");
}
public long countByFilter(ProductCarrierFilter filter) throws DaoException {
return (long) this.selectObject(filter, "ProductCarrier.countByFilter");
}
public ProductCarrierVo selectById(Long productCarrierId) throws DaoException {
return this.select(productCarrierId, "ProductCarrier.selectById");
}
public long countByName(ProductCarrierVo productCarrier) throws DaoException {
return (long) this.selectObject(productCarrier, "ProductCarrier.countProductCarrierByName");
}
} | [
"sachin.gahlawat19@gmail.com"
] | sachin.gahlawat19@gmail.com |
b0cea1adf9c76ce7e9a8112bc0d46f2c36c62fc3 | 3de3dae722829727edfdd6cc3b67443a69043475 | /edexOsgi/com.raytheon.uf.common.dataplugin.grid.derivparam/src/com/raytheon/uf/common/dataplugin/grid/derivparam/tree/StaticGridDataLevelNode.java | c89c7d84ede5cb1d9f986788ab946ed44de2c008 | [
"LicenseRef-scancode-public-domain",
"Apache-2.0"
] | permissive | Unidata/awips2 | 9aee5b7ec42c2c0a2fa4d877cb7e0b399db74acb | d76c9f96e6bb06f7239c563203f226e6a6fffeef | refs/heads/unidata_18.2.1 | 2023-08-18T13:00:15.110785 | 2023-08-09T06:06:06 | 2023-08-09T06:06:06 | 19,332,079 | 161 | 75 | NOASSERTION | 2023-09-13T19:06:40 | 2014-05-01T00:59:04 | Java | UTF-8 | Java | false | false | 5,828 | java | /**
* This software was developed and / or modified by Raytheon Company,
* pursuant to Contract DG133W-05-CQ-1067 with the US Government.
*
* U.S. EXPORT CONTROLLED TECHNICAL DATA
* This software product contains export-restricted data whose
* export/transfer/disclosure is restricted by U.S. law. Dissemination
* to non-U.S. persons whether in the United States or abroad requires
* an export license or other authorization.
*
* Contractor Name: Raytheon Company
* Contractor Address: 6825 Pine Street, Suite 340
* Mail Stop B8
* Omaha, NE 68106
* 402.291.0100
*
* See the AWIPS II Master Rights File ("Master Rights File.pdf") for
* further licensing information.
**/
package com.raytheon.uf.common.dataplugin.grid.derivparam.tree;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
import com.raytheon.uf.common.dataplugin.grid.derivparam.cache.CoverageUtils;
import com.raytheon.uf.common.dataplugin.grid.derivparam.data.StaticGridRequestableData;
import com.raytheon.uf.common.dataplugin.grid.util.StaticGridDataType;
import com.raytheon.uf.common.dataplugin.level.Level;
import com.raytheon.uf.common.dataquery.requests.DbQueryRequest;
import com.raytheon.uf.common.dataquery.requests.RequestConstraint;
import com.raytheon.uf.common.derivparam.tree.AbstractBaseDataNode;
import com.raytheon.uf.common.gridcoverage.GridCoverage;
import com.raytheon.uf.common.inventory.TimeAndSpace;
import com.raytheon.uf.common.inventory.data.AbstractRequestableData;
import com.raytheon.uf.common.inventory.exception.DataCubeException;
/**
* A LevelNode for static grid data that is either constant or can be calculated
* based off the coverage.
*
* <pre>
*
* SOFTWARE HISTORY
*
* Date Ticket# Engineer Description
* ------------- -------- --------- ----------------------------------------
* Apr 13, 2012 bsteffen Initial creation
* Mar 03, 2016 5439 bsteffen Allow grid derived parameters from edex
*
* </pre>
*
* @author bsteffen
*/
public class StaticGridDataLevelNode extends AbstractBaseDataNode {
protected String dataType;
protected String source;
public StaticGridDataLevelNode(String source, String dataType) {
this.source = source;
this.dataType = dataType;
}
public StaticGridDataLevelNode(String source, String dataType, Level level) {
this(source, dataType);
setLevel(level);
}
@Override
public DbQueryRequest getAvailabilityRequest(
Map<String, RequestConstraint> originalConstraints) {
return null;
}
@Override
public Set<TimeAndSpace> getAvailability(
Map<String, RequestConstraint> originalConstraints, Object response)
throws DataCubeException {
Set<TimeAndSpace> result = new HashSet<>();
for (GridCoverage coverage : CoverageUtils.getInstance().getCoverages(
source)) {
result.add(new TimeAndSpace(coverage));
}
return result;
}
@Override
public DbQueryRequest getDataRequest(
Map<String, RequestConstraint> orignalConstraints,
Set<TimeAndSpace> availability) {
return null;
}
@Override
public Set<AbstractRequestableData> getData(
Map<String, RequestConstraint> orignalConstraints,
Set<TimeAndSpace> availability, Object response)
throws DataCubeException {
Set<AbstractRequestableData> results = new HashSet<>();
for (TimeAndSpace ast : availability) {
if (ast.getSpace() instanceof GridCoverage) {
GridCoverage coverage = (GridCoverage) ast.getSpace();
AbstractRequestableData data = createRequestableData(coverage);
data.setDataTime(ast.getTime());
results.add(data);
} else {
for (GridCoverage coverage : CoverageUtils.getInstance()
.getCoverages(source)) {
AbstractRequestableData data = createRequestableData(coverage);
data.setDataTime(ast.getTime());
results.add(data);
}
}
}
return results;
}
protected AbstractRequestableData createRequestableData(
GridCoverage coverage) {
if (StaticGridDataType.getStringValues().contains(dataType)) {
StaticGridDataType staticGridDataType = StaticGridDataType
.valueOf(dataType);
return new StaticGridRequestableData(staticGridDataType, source,
coverage);
}
return null;
}
@Override
public boolean isConstant() {
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = super.hashCode();
result = prime * result
+ ((dataType == null) ? 0 : dataType.hashCode());
result = prime * result + ((source == null) ? 0 : source.hashCode());
return result;
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (!super.equals(obj))
return false;
if (getClass() != obj.getClass())
return false;
StaticGridDataLevelNode other = (StaticGridDataLevelNode) obj;
if (dataType == null) {
if (other.dataType != null)
return false;
} else if (!dataType.equals(other.dataType))
return false;
if (source == null) {
if (other.source != null)
return false;
} else if (!source.equals(other.source))
return false;
return true;
}
}
| [
"mjames@unidata.ucar.edu"
] | mjames@unidata.ucar.edu |
ae237f9f60b66091e184cffa186ef6ada5f5306c | 668960d4d3d02dcb6161b8260ecc863dd7517636 | /common/ca/bouncycastle/src/main/java/org/bouncycastle/pqc/jcajce/provider/mceliece/BCMcElieceCCA2PrivateKey.java | 66db0087fa136e462324502f32f4803603d1c79b | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | lbrackspace/atlas-lb | de1eb3c45427b08308d348fe3dbcf3d38ce116cb | dde84090fefc9c6e5861d7f4d39dd291c745f392 | refs/heads/master | 2022-06-16T02:33:58.445491 | 2021-06-11T21:47:56 | 2021-06-11T21:47:56 | 2,043,124 | 3 | 16 | null | 2016-10-13T23:36:49 | 2011-07-13T17:12:25 | Java | UTF-8 | Java | false | false | 5,697 | java | package org.bouncycastle.pqc.jcajce.provider.mceliece;
import java.io.IOException;
import java.security.PrivateKey;
import org.bouncycastle.asn1.pkcs.PrivateKeyInfo;
import org.bouncycastle.asn1.x509.AlgorithmIdentifier;
import org.bouncycastle.crypto.params.AsymmetricKeyParameter;
import org.bouncycastle.pqc.asn1.McElieceCCA2PrivateKey;
import org.bouncycastle.pqc.asn1.PQCObjectIdentifiers;
import org.bouncycastle.pqc.crypto.mceliece.McElieceCCA2KeyPairGenerator;
import org.bouncycastle.pqc.crypto.mceliece.McElieceCCA2PrivateKeyParameters;
import org.bouncycastle.pqc.math.linearalgebra.GF2Matrix;
import org.bouncycastle.pqc.math.linearalgebra.GF2mField;
import org.bouncycastle.pqc.math.linearalgebra.Permutation;
import org.bouncycastle.pqc.math.linearalgebra.PolynomialGF2mSmallM;
/**
* This class implements a McEliece CCA2 private key and is usually instantiated
* by the {@link McElieceCCA2KeyPairGenerator} or {@link McElieceCCA2KeyFactorySpi}.
*
* @see McElieceCCA2KeyPairGenerator
*/
public class BCMcElieceCCA2PrivateKey
implements PrivateKey
{
private static final long serialVersionUID = 1L;
private McElieceCCA2PrivateKeyParameters params;
public BCMcElieceCCA2PrivateKey(McElieceCCA2PrivateKeyParameters params)
{
this.params = params;
}
/**
* Return the name of the algorithm.
*
* @return "McEliece-CCA2"
*/
public String getAlgorithm()
{
return "McEliece-CCA2";
}
/**
* @return the length of the code
*/
public int getN()
{
return params.getN();
}
/**
* @return the dimension of the code
*/
public int getK()
{
return params.getK();
}
/**
* @return the degree of the Goppa polynomial (error correcting capability)
*/
public int getT()
{
return params.getGoppaPoly().getDegree();
}
/**
* @return the finite field
*/
public GF2mField getField()
{
return params.getField();
}
/**
* @return the irreducible Goppa polynomial
*/
public PolynomialGF2mSmallM getGoppaPoly()
{
return params.getGoppaPoly();
}
/**
* @return the permutation vector
*/
public Permutation getP()
{
return params.getP();
}
/**
* @return the canonical check matrix
*/
public GF2Matrix getH()
{
return params.getH();
}
/**
* @return the matrix used to compute square roots in <tt>(GF(2^m))^t</tt>
*/
public PolynomialGF2mSmallM[] getQInv()
{
return params.getQInv();
}
/**
* @return a human readable form of the key
*/
// TODO:
// public String toString()
// {
// String result = "";
// result += " extension degree of the field : " + getN() + "\n";
// result += " dimension of the code : " + getK() + "\n";
// result += " irreducible Goppa polynomial : " + getGoppaPoly() + "\n";
// return result;
// }
/**
* Compare this key with another object.
*
* @param other the other object
* @return the result of the comparison
*/
public boolean equals(Object other)
{
if (other == null || !(other instanceof BCMcElieceCCA2PrivateKey))
{
return false;
}
BCMcElieceCCA2PrivateKey otherKey = (BCMcElieceCCA2PrivateKey)other;
return (getN() == otherKey.getN()) && (getK() == otherKey.getK())
&& getField().equals(otherKey.getField())
&& getGoppaPoly().equals(otherKey.getGoppaPoly()) && getP().equals(otherKey.getP())
&& getH().equals(otherKey.getH());
}
/**
* @return the hash code of this key
*/
public int hashCode()
{
int code = params.getK();
code = code * 37 + params.getN();
code = code * 37 + params.getField().hashCode();
code = code * 37 + params.getGoppaPoly().hashCode();
code = code * 37 + params.getP().hashCode();
return code * 37 + params.getH().hashCode();
}
/**
* Return the keyData to encode in the SubjectPublicKeyInfo structure.
* <p>
* The ASN.1 definition of the key structure is
* <pre>
* McEliecePrivateKey ::= SEQUENCE {
* m INTEGER -- extension degree of the field
* k INTEGER -- dimension of the code
* field OCTET STRING -- field polynomial
* goppaPoly OCTET STRING -- irreducible Goppa polynomial
* p OCTET STRING -- permutation vector
* matrixH OCTET STRING -- canonical check matrix
* sqRootMatrix SEQUENCE OF OCTET STRING -- square root matrix
* }
* </pre>
* </p>
*
* @return the keyData to encode in the SubjectPublicKeyInfo structure
*/
public byte[] getEncoded()
{
PrivateKeyInfo pki;
try
{
McElieceCCA2PrivateKey privateKey = new McElieceCCA2PrivateKey(getN(), getK(), getField(), getGoppaPoly(), getP(), Utils.getDigAlgId(params.getDigest()));
AlgorithmIdentifier algorithmIdentifier = new AlgorithmIdentifier(PQCObjectIdentifiers.mcElieceCca2);
pki = new PrivateKeyInfo(algorithmIdentifier, privateKey);
return pki.getEncoded();
}
catch (IOException e)
{
return null;
}
}
public String getFormat()
{
return "PKCS#8";
}
AsymmetricKeyParameter getKeyParams()
{
return params;
}
}
| [
"carlos.garza@rackspace.com"
] | carlos.garza@rackspace.com |
6b557528efcea2e4755fb076f68139399492f9cf | 68157181487cd433dfbdb02534a8a69580da0f54 | /src/com/bank/test/ExampleNG.java | 83e85c972586f083b82025442f17266942d14488 | [] | no_license | santhosh86/Ranford | 575a918806fcdb73a173882329760ae77f579abc | 67a6c946735fb0bd785d902ede8e976c7d5bd9c4 | refs/heads/master | 2020-05-23T08:00:06.129538 | 2017-01-31T02:56:42 | 2017-01-31T02:56:42 | 80,485,049 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 352 | java | package com.bank.test;
import org.testng.Assert;
import org.testng.annotations.Test;
public class ExampleNG
{
@Test
public void xyz()
{
Assert.assertEquals("Selenium","Selenium");
}
@Test(enabled=false)
public void pqr()
{
Assert.assertEquals("Gmail","Gmail");
}
@Test
public void abc()
{
Assert.assertEquals("Yahoo","Yahoo");
}
}
| [
"santhosh@mindqsystems.com"
] | santhosh@mindqsystems.com |
fe3e05da0a84d08509f3a8a127817c7e6389a8f2 | ed865190ed878874174df0493b4268fccb636a29 | /PuridiomWeb/src/com/tsa/puridiom/handlers/RequisitionHeaderRetrieveByIdHandler.java | b4e6722dd07100f7c484aaf1ffcb693775d494d2 | [] | no_license | zach-hu/srr_java8 | 6841936eda9fdcc2e8185b85b4a524b509ea4b1b | 9b6096ba76e54da3fe7eba70989978edb5a33d8e | refs/heads/master | 2021-01-10T00:57:42.107554 | 2015-11-06T14:12:56 | 2015-11-06T14:12:56 | 45,641,885 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,105 | java | package com.tsa.puridiom.handlers;
import com.tsagate.foundation.processengine.*;
import java.util.*;
public class RequisitionHeaderRetrieveByIdHandler implements IHandler
{
public Map handleRequest (Map incomingRequest) throws Exception
{
try
{
PuridiomProcessLoader processLoader = new PuridiomProcessLoader((String)incomingRequest.get("organizationId"));
PuridiomProcess process = processLoader.loadProcess("requisitionheader-retrieve-by-id.xml");
process.executeProcess(incomingRequest);
if (process.getStatus() == Status.SUCCEEDED)
{
incomingRequest.put("viewPage", incomingRequest.get("successPage"));
}
else
{
incomingRequest.put("viewPage", incomingRequest.get("failurePage"));
}
}
catch (Exception exception)
{
incomingRequest.put("errorMsg", exception.getMessage());
incomingRequest.put("viewPage", incomingRequest.get("failurePage"));
throw exception;
}
finally
{
if (incomingRequest.get("viewPage") == null)
{
incomingRequest.put("viewPage", incomingRequest.get("failurePage"));
}
}
return incomingRequest;
}
} | [
"brickerz@9227675a-84a3-4efe-bc6c-d7b3a3cf6466"
] | brickerz@9227675a-84a3-4efe-bc6c-d7b3a3cf6466 |
9e887a902b0192169ad0537b9f962acb7aba8c2f | 2a53f1317fd763a22fcd23de779abea081d11d01 | /src/main/java/hello/servlet/web/springmvc/v3/SpringMemberControllerV3.java | ef4536133ff16cf82effee8e86622ee625f3f65c | [] | no_license | inje15150/front-controller | c9c3cd3ba21fa73ec6430d3523d79f69f2a62f44 | 91e777bf9e8e7b2f621ae8df38423c2604527920 | refs/heads/master | 2023-05-06T05:05:20.490296 | 2021-06-05T12:44:51 | 2021-06-05T12:44:51 | 374,075,896 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,084 | java | package hello.servlet.web.springmvc.v3;
import hello.servlet.domain.member.Member;
import hello.servlet.domain.member.MemberRepository;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.*;
import java.util.List;
@Controller
@RequestMapping("/springmvc/v3/members")
public class SpringMemberControllerV3 {
private MemberRepository memberRepository = MemberRepository.getInstance();
@GetMapping("/new-form")
public String newForm() {
return "new-form";
}
@PostMapping(value = "/save")
public String save(@RequestParam("username") String username, @RequestParam("age") int age, Model model) {
Member member = new Member(username, age);
memberRepository.save(member);
model.addAttribute("member", member);
return "save-result";
}
@GetMapping
public String members(Model model) {
List<Member> members = memberRepository.findAll();
model.addAttribute("members", members);
return "members";
}
}
| [
"inje15150@naver.com"
] | inje15150@naver.com |
f8659a3ac51a7e735e7cc4ff7a9e268dea9951aa | 9b7dec08a72088c1e8ce518ea28e95810561d1f3 | /lwh-security2019/lwh-sec-core/src/main/java/com/lwhtarena/security/core/validate/code/ValidateCodeRepository.java | 90f4c71d4605109717779f04741b066fd257edbb | [] | no_license | LWHTarena/lwh-example | 6c9b763bca5a5a1557a14778a13a8cde1ffeb53e | e74096b50e49ea37b913b967cd3272ae13cda632 | refs/heads/master | 2022-12-21T09:50:27.766898 | 2021-05-01T08:31:34 | 2021-05-01T08:31:34 | 128,957,310 | 0 | 0 | null | 2022-12-16T15:41:55 | 2018-04-10T15:41:01 | Java | UTF-8 | Java | false | false | 909 | java | package com.lwhtarena.security.core.validate.code;
import org.springframework.web.context.request.ServletWebRequest;
/**
* @author liwh
* @Title: ValidateCodeRepository
* @Package com.lwhtarena.security.core.validate.code
* @Description: 校验码存取器
* @Version 1.0.0
* @date 2020/7/20 19:36
*/
public interface ValidateCodeRepository {
/**
* 保存验证码
* @param request
* @param code
* @param validateCodeType
*/
void save(ServletWebRequest request, ValidateCode code, ValidateCodeType validateCodeType);
/**
* 获取验证码
* @param request
* @param validateCodeType
* @return
*/
ValidateCode get(ServletWebRequest request, ValidateCodeType validateCodeType);
/**
* 移除验证码
* @param request
* @param codeType
*/
void remove(ServletWebRequest request, ValidateCodeType codeType);
}
| [
"lwhtarena@163.com"
] | lwhtarena@163.com |
258644f03c9c39b51b46f7dcaf294cd259f1156f | db6ca0fe32ece7f92be8824af06772e7982394ca | /Share_Surprises/src/module-info.java | 26867cf36b0912cf0a9c5b75ffb5511f63965944 | [] | no_license | AlexandraEG98/Devmind | 89f28e4101af9590e903306352204d46458f6b24 | 265aa5f05e31e1a154a732ac9ad9e3d292f845c3 | refs/heads/master | 2023-08-28T16:33:14.382614 | 2021-10-01T12:55:58 | 2021-10-01T12:55:58 | 404,362,389 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 20 | java | module Project_2 {
} | [
"Fujitsu@192.168.0.116"
] | Fujitsu@192.168.0.116 |
8f12bae3ba2fbcad44d41658a4b020746d3e2a02 | 9ba04f72e01dbc662a1dbf8c371508a4add7b9ad | /src/main/java/ru/geekbrains/homework7/Plate.java | dd8c821648c97d589ebdf0bdbd1f733008ef228c | [] | no_license | AntonGolovkin/HomeWork7 | aa1ae2589ca1c01ae1313b2563722720928254b1 | fe561a280d27777d9270ffeed4918cb94017348b | refs/heads/master | 2023-04-26T20:19:06.309379 | 2021-05-19T17:37:49 | 2021-05-19T17:37:49 | 368,952,105 | 0 | 0 | null | 2021-05-19T17:40:33 | 2021-05-19T17:37:38 | Java | UTF-8 | Java | false | false | 303 | java | package ru.geekbrains.homework7;
public class Plate {
private int food;
public int getFood() {
return food;
}
public void setFood(int food) {
if (food > 0) {
this.food = food;
}
}
public Plate(int food) {
this.food = food;
}
}
| [
"toni.golovkin.89@inbox.ru"
] | toni.golovkin.89@inbox.ru |
41dfc5db582b7bebf5e3f67653f82e9abe0fd93b | 26b7f30c6640b8017a06786e4a2414ad8a4d71dd | /src/number_of_direct_superinterfaces/i16811.java | 453136854bc8a8144d480f53ffffb4cdc47c1598 | [] | no_license | vincentclee/jvm-limits | b72a2f2dcc18caa458f1e77924221d585f23316b | 2fd1c26d1f7984ea8163bc103ad14b6d72282281 | refs/heads/master | 2020-05-18T11:18:41.711400 | 2014-09-14T04:25:18 | 2014-09-14T04:25:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 69 | java | package number_of_direct_superinterfaces;
public interface i16811 {} | [
"vincentlee.dolbydigital@yahoo.com"
] | vincentlee.dolbydigital@yahoo.com |
d283786f297582c33e41e47945df1160ff7db9fe | 07985aa189cb402fecab80c942edcdb6005a8864 | /app/src/main/java/com/noumi/mvp/ui/NewsAdapter.java | 8aed500096a037df39422cdb59e224652d2771b6 | [] | no_license | noumi92/MVP | aaa03f62d73ef52c1456b20085169dcf7da63dc2 | a190cbe5f2a2fd98a5bfbd98126b805ee17c1c72 | refs/heads/master | 2020-06-22T00:59:13.078760 | 2019-07-18T16:22:13 | 2019-07-18T16:22:13 | 197,593,980 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,556 | java | package com.noumi.mvp.ui;
import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import com.noumi.mvp.R;
import com.noumi.mvp.data.News;
import java.util.List;
public class NewsAdapter extends RecyclerView.Adapter<NewsAdapter.NewsHolder> {
private List<News> mNewsList;
public NewsAdapter(List<News> newsList) {
mNewsList = newsList;
}
@NonNull
@Override
public NewsHolder onCreateViewHolder(@NonNull ViewGroup viewGroup, int i) {
LayoutInflater inflater = LayoutInflater.from(viewGroup.getContext());
View view = inflater.inflate(R.layout.list_item, viewGroup, false);
return new NewsHolder(view);
}
@Override
public void onBindViewHolder(@NonNull NewsHolder newsHolder, int position) {
News news = mNewsList.get(position);
newsHolder.mTitleTextView.setText(news.getTitle());
newsHolder.mIntroTextView.setText(news.getIntro());
}
@Override
public int getItemCount() {
return mNewsList.size();
}
public class NewsHolder extends RecyclerView.ViewHolder{
private TextView mTitleTextView, mIntroTextView;
public NewsHolder(@NonNull View itemView) {
super(itemView);
mTitleTextView = (TextView) itemView.findViewById(R.id.news_title);
mIntroTextView = (TextView) itemView.findViewById(R.id.news_intro);
}
}
}
| [
"noumankarim1988@gmail.com"
] | noumankarim1988@gmail.com |
dedb20be7b7b3b4a6f189c6136823bc67be8f6c8 | 1f586a137bf5952c67c0da97f39a28c0840d99ea | /src/main/java/com/instaclustr/esop/gcp/GCPRestorer.java | e51b5cc8e7e39e05a701c4513fc80d05a2154458 | [
"Apache-2.0"
] | permissive | mlallaouret/instaclustr-esop | d5c01792ea1178d12b40fbda9342f090413372e9 | a7ccca3d45a6e07679d8aa3c2d5082c01f645766 | refs/heads/master | 2022-12-30T16:37:15.872177 | 2020-10-13T19:34:39 | 2020-10-13T19:44:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 7,886 | java | package com.instaclustr.esop.gcp;
import static java.lang.String.format;
import java.io.InputStreamReader;
import java.nio.channels.Channels;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.nio.file.StandardCopyOption;
import java.util.ArrayList;
import java.util.List;
import java.util.function.Consumer;
import java.util.function.Predicate;
import java.util.regex.Pattern;
import com.google.api.gax.paging.Page;
import com.google.cloud.ReadChannel;
import com.google.cloud.storage.Blob;
import com.google.cloud.storage.BlobId;
import com.google.cloud.storage.Storage;
import com.google.cloud.storage.Storage.BlobListOption;
import com.google.common.io.CharStreams;
import com.google.inject.assistedinject.Assisted;
import com.google.inject.assistedinject.AssistedInject;
import com.instaclustr.esop.gcp.GCPModule.GoogleStorageFactory;
import com.instaclustr.esop.impl.RemoteObjectReference;
import com.instaclustr.esop.impl.restore.RestoreCommitLogsOperationRequest;
import com.instaclustr.esop.impl.restore.RestoreOperationRequest;
import com.instaclustr.esop.impl.restore.Restorer;
public class GCPRestorer extends Restorer {
private final Storage storage;
@AssistedInject
public GCPRestorer(final GoogleStorageFactory storageFactory,
@Assisted final RestoreOperationRequest request) {
super(request);
this.storage = storageFactory.build(request);
}
@AssistedInject
public GCPRestorer(final GoogleStorageFactory storageFactory,
@Assisted final RestoreCommitLogsOperationRequest request) {
super(request);
this.storage = storageFactory.build(request);
}
@Override
public RemoteObjectReference objectKeyToRemoteReference(final Path objectKey) throws Exception {
return new GCPRemoteObjectReference(objectKey, objectKey.toString(), request.storageLocation.bucket);
}
@Override
public RemoteObjectReference objectKeyToNodeAwareRemoteReference(final Path objectKey) {
// objectKey is kept simple (e.g. "manifests/autosnap-123") so that it directly reflects the local path
return new GCPRemoteObjectReference(objectKey, resolveNodeAwareRemotePath(objectKey), request.storageLocation.bucket);
}
@Override
public String downloadFileToString(final RemoteObjectReference objectReference) throws Exception {
final BlobId blobId = ((GCPRemoteObjectReference) objectReference).blobId;
try (final ReadChannel inputChannel = storage.reader(blobId)) {
try (final InputStreamReader isr = new InputStreamReader(Channels.newInputStream(inputChannel))) {
return CharStreams.toString(isr);
}
}
}
@Override
public void downloadFile(final Path localFile, final RemoteObjectReference objectReference) throws Exception {
final BlobId blobId = ((GCPRemoteObjectReference) objectReference).blobId;
Files.createDirectories(localFile.getParent());
try (final ReadChannel inputChannel = storage.reader(blobId)) {
Files.copy(Channels.newInputStream(inputChannel), localFile, StandardCopyOption.REPLACE_EXISTING);
}
}
@Override
public String downloadFileToString(final Path remotePrefix, final Predicate<String> keyFilter) throws Exception {
// special case for GCP, here we take prefix as a parent dir of "remotePrefix" as it lists just these files from there
String resolvedPrefix = remotePrefix.toString();
if (remotePrefix.getParent() != null) {
// slash at the end seems to be important
resolvedPrefix = remotePrefix.getParent().toString() + "/";
}
final String blobItemPath = getBlobItemPath(list(request.storageLocation.bucket, resolvedPrefix), keyFilter);
final String fileName = blobItemPath.split("/")[blobItemPath.split("/").length - 1];
return downloadFileToString(objectKeyToRemoteReference(Paths.get(resolvedPrefix).resolve(fileName)));
}
@Override
public String downloadNodeFileToString(final Path remotePrefix, final Predicate<String> keyFilter) throws Exception {
final String blobItemPath = getBlobItemPath(nodeList(request.storageLocation.bucket, remotePrefix), keyFilter);
final String fileName = blobItemPath.split("/")[blobItemPath.split("/").length - 1];
return downloadFileToString(objectKeyToNodeAwareRemoteReference(remotePrefix.resolve(fileName)));
}
@Override
public Path downloadNodeFileToDir(final Path destinationDir, final Path remotePrefix, final Predicate<String> keyFilter) throws Exception {
final String blobItemPath = getBlobItemPath(nodeList(request.storageLocation.bucket, remotePrefix), keyFilter);
final String fileName = blobItemPath.split("/")[blobItemPath.split("/").length - 1];
final Path destination = destinationDir.resolve(fileName);
downloadFile(destination, objectKeyToNodeAwareRemoteReference(remotePrefix.resolve(fileName)));
return destination;
}
private String getBlobItemPath(final Page<Blob> blobs, final Predicate<String> keyFilter) {
final List<Blob> blobItems = new ArrayList<>();
for (final Blob blob : blobs.iterateAll()) {
if (keyFilter.test(blob.getName())) {
blobItems.add(blob);
}
}
if (blobItems.size() != 1) {
throw new IllegalStateException(format("There is not one key which satisfies key filter: %s", blobItems.toString()));
}
return blobItems.get(0).getName();
}
@Override
public void consumeFiles(final RemoteObjectReference prefix, final Consumer<RemoteObjectReference> consumer) {
final GCPRemoteObjectReference gcpRemoteObjectReference = (GCPRemoteObjectReference) prefix;
final String bucket = gcpRemoteObjectReference.blobId.getBucket();
final String pathPrefix = gcpRemoteObjectReference.getObjectKey().toString();
nodeList(bucket, Paths.get(pathPrefix)).iterateAll().iterator().forEachRemaining(blob -> {
if (!blob.getName().endsWith("/")) {
consumer.accept(objectKeyToNodeAwareRemoteReference(removeNodePrefix(blob)));
}
});
}
private Path removeNodePrefix(final Blob blob) {
final String pattern = String.format("%s/%s/%s/",
request.storageLocation.clusterId,
request.storageLocation.datacenterId,
request.storageLocation.nodeId);
final Pattern nodeIdPattern = Pattern.compile(pattern);
return Paths.get(nodeIdPattern.matcher(blob.getName()).replaceFirst(""));
}
private Page<Blob> globalList(final String bucket, final Path pathPrefix) {
return list(bucket, pathPrefix.toString());
}
private Page<Blob> nodeList(final String bucket, final Path prefix) {
final String resolvedPrefix = String.format("%s/%s/%s/%s/",
request.storageLocation.clusterId,
request.storageLocation.datacenterId,
request.storageLocation.nodeId,
prefix.toString());
return list(bucket, resolvedPrefix);
}
private Page<Blob> list(final String bucket, final String prefix) {
final String resolvedPrefix = prefix.startsWith("/") ? prefix.replaceFirst("/", "") : prefix;
return storage.list(bucket, BlobListOption.prefix(resolvedPrefix), BlobListOption.currentDirectory());
}
@Override
public void cleanup() throws Exception {
// Nothing to cleanup
}
}
| [
"stefan.miklosovic@instaclustr.com"
] | stefan.miklosovic@instaclustr.com |
4fde0d545e01373a29f125a13bb22d19b3b2007f | fadd4bbae8b07919c9c076deffa4f1500acdd486 | /Lunarium/sources/src/main/java/net/theairblow/lunarium/mixin/MixinMapRenderer.java | a5276359dddf2f7a08fc066372d4ecd31d6e36e1 | [] | no_license | TheAirBlow/TheVault | 0adc210b09578a80543bce86751890436d1b53aa | bc725ee5e5b1bb2ebc2dbeaa20e5eb7c5e94862a | refs/heads/main | 2023-01-20T09:51:30.487576 | 2020-11-26T07:53:36 | 2020-11-26T07:53:36 | 304,561,791 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,003 | java | package net.theairblow.lunarium.mixin;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
import net.theairblow.lunarium.module.ModuleManager;
import net.theairblow.lunarium.module.mods.NoRender;
import net.minecraft.client.gui.MapRenderer;
import net.minecraft.client.render.VertexConsumerProvider;
import net.minecraft.client.util.math.MatrixStack;
import net.minecraft.item.map.MapState;
@Mixin(MapRenderer.class)
public class MixinMapRenderer {
@Inject(at = @At("HEAD"), method = "draw", cancellable = true)
public void draw(MatrixStack matrixStack_1, VertexConsumerProvider vertexConsumerProvider_1, MapState mapState_1, boolean boolean_1, int int_1, CallbackInfo ci) {
if (ModuleManager.getModule(NoRender.class).isToggled() && ModuleManager.getModule(NoRender.class).getSetting(11).asToggle().state) {
ci.cancel();
}
}
}
| [
"dasik.danila@gmail.com"
] | dasik.danila@gmail.com |
509e889c5f57eaf099af43ae6b4ba61e9ae0cd40 | 944965ad362cc3b3e1339ddbf616ddd6a3fa988b | /module2/src/ss5_access_modifier_static_method_static_property/bai_tap/xay_dung_lop_chi_ghi_trong_java/Student.java | 784a792b61fed1d479f47bfffc1724db76824605 | [] | no_license | pdphuoc7072/C0721G1-PhanDaiPhuoc | a660f7953e6577a501dfeeeb334987963a4d3104 | f4c73645a48bb6fe9201c0f71f7a0c4aca887234 | refs/heads/main | 2023-07-18T16:02:32.315161 | 2021-09-19T03:05:19 | 2021-09-19T03:05:19 | 385,127,777 | 0 | 2 | null | null | null | null | UTF-8 | Java | false | false | 640 | java | package ss5_access_modifier_static_method_static_property.bai_tap.xay_dung_lop_chi_ghi_trong_java;
public class Student {
private String name;
private String classes;
public Student () {
this("John", "C02");
}
public Student (String name, String classes) {
this.name = name;
this.classes = classes;
}
public String getName () {
return this.name;
}
public String getClasses () {
return this.classes;
}
public void setName (String name) {
this.name = name;
}
public void setClasses (String classes) {
this.classes = classes;
}
}
| [
"pdphuoc7072@gmail.com"
] | pdphuoc7072@gmail.com |
48f221497e5bf6e14e9655c9a7520487485453df | 4a50a27696768b550164c4c3d90e133932fe5b96 | /src/Project619Phase1Q1.java | 188b8920a8e56901a2cbc96a4a601195c45434d0 | [] | no_license | ajak6/Twitter-Analytic-WebService | d796954115d7c48fcecaa6b0056e0058653ead1b | 337c56d03920ba2d988a734130e5ea0f3fea3a31 | refs/heads/master | 2021-01-10T14:57:09.586645 | 2015-05-30T01:17:41 | 2015-05-30T01:17:41 | 36,537,000 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 5,693 | java | import io.undertow.Undertow;
import io.undertow.io.Sender;
import io.undertow.server.HttpHandler;
import io.undertow.server.HttpServerExchange;
import io.undertow.util.Headers;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.math.BigInteger;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.Date;
import java.util.Deque;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.NavigableMap;
import java.util.Map.Entry;
import java.util.concurrent.ConcurrentSkipListMap;
import java.io.*;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.commons.lang3.StringEscapeUtils;
public class Project619Phase1Q1 extends HttpServlet {
/*
* static Cache cache1= new Cache(); static Cache cache2= new Cache();
* static Cache cache4= new Cache();
*/
static Cache cache3 = new Cache();
// main method
public static void main(final String[] args) throws FileNotFoundException {
// File file = new File("out.txt");
// FileOutputStream fos = new FileOutputStream(file);
// PrintStream ps = new PrintStream(fos);
// System.setOut(ps);
// System.out.println("hello");
//Q6.warmup();
final Q3 q3 = new Q3();
final Q1 q1 = new Q1();
final Q4 q4 = new Q4();
final Q2 q2 = new Q2();
final Q5 q5 = new Q5();
final Q6 q6 = new Q6();
// final Project619Phase1Q1 t = new Project619Phase1Q1();
Undertow server = Undertow.builder().addHttpListener(80, "0.0.0.0").setHandler(new HttpHandler() {
@Override
public void handleRequest(final HttpServerExchange exchange) throws Exception {
exchange.getResponseHeaders().put(Headers.CONTENT_TYPE, "text/plain");
Map<String, Deque<String>> map = exchange.getQueryParameters();
String uri = exchange.getRequestURI();
Sender sender = exchange.getResponseSender();
if (uri.equals("/q1")) {
String key = map.get("key").getFirst();
String message = map.get("message").getFirst();
String output = q1.processRequestq1(message, key);
exchange.getResponseSender().send(output);
}
if (uri.equals("/q2")) {
String userId = map.get("userid").getFirst();
String timeStamp = map.get("tweet_time").getFirst();
String output = q2.processRequestq2(userId, timeStamp);
exchange.getResponseSender().send(output);
}
if (uri.equals("/q3")) {
String id = map.get("userid").getFirst();
long t1 = System.currentTimeMillis();
// System.out.println();
String result = q3.processRequestq3(id);
System.out.println(System.currentTimeMillis() - t1);
sender.send(result);
}
if (uri.equals("/q4")) {
String userId = map.get("hashtag").getFirst();
String start = map.get("start").getFirst();
String end = map.get("end").getFirst();
System.out.println(userId + " " + start + " " + end);
String output = q4.processresultq4(userId, start, end);
// System.out.println("out:" + output);
exchange.getResponseSender().send(output);
}
if (uri.equals("/q5")) {
String userIds = map.get("userlist").getFirst();
String start = map.get("start").getFirst();
String end = map.get("end").getFirst();
String[] each = userIds.split(",");
System.out.println(start + " " + end);
String output = q5.processRequestq5(each, start, end);
System.out.println("out:" + output);
exchange.getResponseSender().send(output);
}
if (uri.equals("/q6")) {
String userId = map.get("m").getFirst();
String start = map.get("n").getFirst();
// String output = q6.processRequestFromCache(userId, start);
// from database
String output = q6.processRequestq6(userId, start);
System.out.println("out:" + output);
exchange.getResponseSender().send(output);
}
if (uri.equals("/mem")) {
long heapSize = Runtime.getRuntime().totalMemory();
long heapMaxSize = Runtime.getRuntime().maxMemory();
long heapFreeSize = Runtime.getRuntime().freeMemory();
String output = "headSize :" + heapSize + "\n heapMaxSize " + heapMaxSize + "\nheapFreeSize "
+ heapFreeSize;
exchange.getResponseSender().send(output);
}
}
}).build();
server.start();
}
private static List<Connection> connectionPool = new ArrayList<Connection>();
// get connection method for mysql
static synchronized Connection getConnection() throws MyDAOException {
if (connectionPool.size() > 0) {
return connectionPool.remove(connectionPool.size() - 1);
}
try {
Class.forName("com.mysql.jdbc.Driver");
} catch (ClassNotFoundException e) {
throw new MyDAOException(e);
}
try {
//ec2-52-4-40-218.compute-1.amazonaws.com: aayush
String url = "jdbc:mysql://ec2-52-6-72-135.compute-1.amazonaws.com/test";
String username = "user";
String password = "password";
return DriverManager.getConnection(url, username, password);
} catch (SQLException e) {
throw new MyDAOException(e);
}
}
// release connection
static synchronized void releaseConnection(Connection con) {
connectionPool.add(con);
}
}
class Cache extends LinkedHashMap<String, String> {
public Cache() {
super(1000000, 0.75f, true);
}
protected boolean removeEldestEntry(final Map.Entry<String, String> eldest) {
return size() > 1000000;
}
}
| [
"a.ameyjain@hotmail.com"
] | a.ameyjain@hotmail.com |
c3e6cfa93773e4f3ea327ae3e9506490b23fb69e | 998d00177429e7445f67231b083246494ffba93b | /src/main/java/net/cakelancelot/heroes/extension/evthandlers/RoomRemovalHandler.java | 36024bcb6d7c4f6e939170ce2b870990da65d45a | [
"MIT"
] | permissive | Juansecu/HeroesExtension | 16fb8f995ba17dff9311e5f3c184cb354bde7f31 | 68303248930bbbee469cea99ef324faab7dc5913 | refs/heads/master | 2023-06-02T00:25:31.544388 | 2021-06-15T13:36:42 | 2021-06-16T09:17:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 833 | java | package net.cakelancelot.heroes.extension.evthandlers;
import com.smartfoxserver.v2.core.ISFSEvent;
import com.smartfoxserver.v2.core.SFSEventParam;
import com.smartfoxserver.v2.entities.Room;
import com.smartfoxserver.v2.entities.Zone;
import com.smartfoxserver.v2.exceptions.SFSException;
import com.smartfoxserver.v2.extensions.BaseServerEventHandler;
import net.cakelancelot.heroes.extension.HeroesZoneExtension;
public class RoomRemovalHandler extends BaseServerEventHandler {
@Override
public void handleServerEvent(ISFSEvent event) throws SFSException {
Zone zone = (Zone) event.getParameter(SFSEventParam.ZONE);
Room room = (Room) event.getParameter(SFSEventParam.ROOM);
HeroesZoneExtension zoneExt = (HeroesZoneExtension) zone.getExtension();
zoneExt.deregisterGame(room);
}
}
| [
"CakeLancelot@users.noreply.github.com"
] | CakeLancelot@users.noreply.github.com |
d8f57a38ff8fbc35d813ccf362fc92abda3e52d5 | 1aeb77c48858c6d6e2b740b9b848bacf47bac61d | /src/test/java/tools/UrlEncodeDecode.java | a8474de126313d2ab6e8c90607541bae8476aeb3 | [] | no_license | leopardoooo/address-library | af72d9cc0702a7fec1ed67fd3faee19de05790de | 2486e43de646f3e0d5583f3e118356a17e90d5c8 | refs/heads/master | 2016-09-10T21:38:26.912071 | 2015-12-16T01:37:49 | 2015-12-16T01:37:49 | 27,463,087 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,431 | java | package tools;
import java.io.UnsupportedEncodingException;
import java.util.HashMap;
import java.util.Map;
import org.junit.Test;
public class UrlEncodeDecode {
@Test
public void testEncode() throws Exception {
String queryString = "UserName=%E5%BC%A0%E5%88%9A%E4%BC%9F&Password=12&OA=1";
String gbk = "GBK";
String utf = "UTF-8";
queryString = "UserName=收拾收拾";
Map<String, String> params = getRequestParam(queryString, utf);
System.err.println(params.get("UserName"));
}
/**
* 之所以使用这么变态的方法是因为老是出现乱码.只好手工处理参数.
* @param queryString
* @param encoding
* @return
* @throws UnsupportedEncodingException
*/
private Map<String, String> getRequestParam(String queryString, String encoding)
throws UnsupportedEncodingException {
String decode = java.net.URLDecoder.decode(queryString, encoding);
Map<String, String> params = new HashMap<String, String>();
if(decode.indexOf("=")<0){
return params;
}
String[] split = decode.split("&");
for (String param : split) {
String[] pair = param.split("=");
params.put(pair[0], pair[1]);
}
return params;
}
@Test
public void testDecode() throws Exception {
String name = "伟";
String gbk = "GBK";
String utf = "UTF-8";
String encode = java.net.URLEncoder.encode(name,utf);
System.err.println("encode from " + name + " to : "+ encode);
}
}
| [
"nirack@163.com"
] | nirack@163.com |
0a95f8824681cf1aa0b907983749bbd258587092 | 53589c1f8032f452d9f5a49e4bc13f36d9fde2bf | /app/src/main/java/com/tripsters/sample/util/Constants.java | f856f2a1cd15527d26b898d473253326cc40cb12 | [] | no_license | TripstersSDK/tripsters-android-sdk | 2e698a1d38508c6748e98e815eb5e710c3e3ead6 | 1f8869b769fc9a96cacc4bc0e7dace69523090b0 | refs/heads/master | 2021-01-10T15:16:18.946444 | 2016-03-24T07:51:03 | 2016-03-24T07:51:03 | 53,821,760 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,070 | java | package com.tripsters.sample.util;
public class Constants {
// 附近的人每页的条目数字
public static final int PAGE_COUNT = 20;
// 多图最多显示个数
public static int PIC_MAX_COUNT = 15;
// 问题城市选择最多个数
public static int QUESTION_CITY_MAX_COUNT = 2;
public static class Action {
public static final String LOGIN_SUCCESS = "login_success";
public static final String LOGOUT_SUCCESS = "logout_success";
public static final String CHANGE_LOCATION = "change_location";
public static final String QUESTION_SUCCESS = "question_success";
public static final String ANSWER_SUCCESS = "answer_success";
public static final String MESSAGE_UNREAD_CHANGED = "message_unread_changed";
}
public static class Extra {
public static final String USER = "user";
public static final String QUESTION = "question";
public static final String QUESTION_ID = "question_id";
public static final String USERINFO = "userinfo";
public static final String USER_ID = "user_id";
public static final String COUNTRY = "country";
public static final String CITIES = "cities";
public static final String COMPOSER = "composer";
public static final String COMPOSER_TYPE = "composer_type";
public static final String ANSWER = "answer";
public static final String TYPE = "type";
public static final String MEDIA_INFOS = "media_infos";
public static final String MAX_COUNT = "max_count";
public static final String CUT_IMAGE = "cut_image";
public static final String SINGLE_TYPE = "single_type";
public static final String CIYT_OPENED_HIDDEN = "ciyt_opened_hidden";
public static final String TEXT = "text";
public static final String NOTICE_TYPE = "notice_type";
public static final String CHANGE_COUNTRY = "change_country";
}
public static class Edit {
public static final int MAX_QUESTION_TITLE_SIZE = 60;
}
}
| [
"clseeyou@gmail.com"
] | clseeyou@gmail.com |
fb7c01b23583e5983fb9ddde4e620f060c7789a4 | ea43d74302f85239858404a96bdb3d1606946186 | /src/main/java/com/apartment/EATDA/web/UserApiController.java | 698bf3cb62666c985ce1c05f3a88dbfed3f0817d | [] | no_license | EAT-DA/back-end | 8b4230177dfbcad8d2dd9079398cf60d2ce5c500 | ed1e9839aa4a98bbd1da6122f8f75824f359957c | refs/heads/main | 2023-07-04T01:29:57.985339 | 2021-08-08T12:44:00 | 2021-08-08T12:44:00 | 393,947,352 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 631 | java | package com.apartment.EATDA.web;
import com.apartment.EATDA.service.UserService;
import com.apartment.EATDA.web.dto.UserSaveRequestDto;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;
@RequiredArgsConstructor
@RestController
public class UserApiController {
private final UserService userService;
@PostMapping("/user/signUp")
public Long save(@RequestBody UserSaveRequestDto requestDto) {
return userService.save(requestDto);
}
}
| [
"www.castlehi@gmail.com"
] | www.castlehi@gmail.com |
b816f2979c09a25bf52727568b09f89b2822a77f | fcde9046e14040dfc29a36c2f7644bf2cb89750c | /src/newbieprotect/EventsListener.java | 6c8a4481b5bdbc83998a29fb6037904580ec7af7 | [] | no_license | Shevchik/NewbieProtect | 6996108a9fe56c356346f0bffbf4dbc2bf1f0ede | 00899254dd149d5605e3bebf111ac18bd1406743 | refs/heads/master | 2020-12-24T16:24:07.287945 | 2016-03-05T17:56:57 | 2016-03-05T17:56:57 | 13,032,548 | 1 | 1 | null | null | null | null | UTF-8 | Java | false | false | 2,943 | java | package newbieprotect;
import org.bukkit.ChatColor;
import org.bukkit.entity.Arrow;
import org.bukkit.entity.Entity;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.EventPriority;
import org.bukkit.event.Listener;
import org.bukkit.event.entity.EntityDamageByEntityEvent;
import org.bukkit.event.player.PlayerCommandPreprocessEvent;
import org.bukkit.event.player.PlayerJoinEvent;
import org.bukkit.event.server.ServerCommandEvent;
import org.bukkit.projectiles.ProjectileSource;
public class EventsListener implements Listener {
private Storage storage;
private Config config;
public EventsListener(Config config, Storage storage) {
this.config = config;
this.storage = storage;
}
@EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true)
public void onPlayerJoin(PlayerJoinEvent event) {
if (!event.getPlayer().hasPlayedBefore()) {
storage.protectPlayer(event.getPlayer(), System.currentTimeMillis());
event.getPlayer().sendMessage(config.protectMessage);
}
}
@EventHandler(priority = EventPriority.LOWEST, ignoreCancelled = true)
public void onEntityDamageEvent(EntityDamageByEntityEvent event) {
Entity eattacker = event.getDamager();
Entity eentity = event.getEntity();
Player attacker = null;
Player entity = null;
// get attacker
if (eattacker instanceof Player) {
attacker = (Player) eattacker;
} else if (eattacker instanceof Arrow) {
ProjectileSource shooter = ((Arrow) eattacker).getShooter();
if (shooter != null && shooter instanceof Player) {
attacker = (Player) shooter;
}
}
// get damaged entiity
if (eentity instanceof Player) {
entity = (Player) eentity;
}
// now check
if (attacker != null && entity != null) {
if (storage.isPlayerProtected(entity)) {
event.setCancelled(true);
attacker.sendMessage(config.youCantAttackProtected);
}
if (storage.isPlayerProtected(attacker)) {
event.setCancelled(true);
attacker.sendMessage(config.youCantAttackWhileProtected);
}
}
}
// i'm too lazy to write normal command handler
@EventHandler
public void onCommand(PlayerCommandPreprocessEvent event) {
String message = event.getMessage();
Player player = event.getPlayer();
if (message.equalsIgnoreCase("/pvp-on") && storage.isPlayerProtected(player)) {
storage.unprotectPlayer(player);
player.sendMessage(config.unprotectMessage);
event.setCancelled(true);
} else if (message.equalsIgnoreCase("/nprotect reload") && player.hasPermission("nprotect.reload")) {
config.loadConfig();
player.sendMessage(ChatColor.GREEN + "Config reloaded");
event.setCancelled(true);
}
}
@EventHandler
public void onServerCommand(ServerCommandEvent event) {
String message = event.getCommand();
if (message.equalsIgnoreCase("nprotect reload")) {
config.loadConfig();
event.getSender().sendMessage(ChatColor.GREEN + "Config reloaded");
}
}
}
| [
"Shev4ik.den@gmail.com"
] | Shev4ik.den@gmail.com |
07a68db4692ff6c0a6625af1b54838da31ef905b | e9c3b234adc0473a7e0d315a46e48f606d08f6ad | /src/main/java/com/demo/common/model/base/BaseWfUrge.java | 3e1f96dc2ff017b4cbc67b33df74ec258d02b61e | [] | no_license | WangShuaiGitHub/JfinalDemo | 8d2f68e559274ab5fa6b3ffb62dbeb4479cdb822 | 118355ec0cda67c3ab1a2fb5caf69f80166a09af | refs/heads/master | 2022-12-30T15:00:13.541079 | 2020-10-15T05:08:40 | 2020-10-15T05:08:40 | 303,667,531 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,205 | java | package com.demo.common.model.base;
import com.jfinal.plugin.activerecord.Model;
import com.jfinal.plugin.activerecord.IBean;
/**
* Generated by JFinal, do not modify this file.
*/
@SuppressWarnings("serial")
public abstract class BaseWfUrge<M extends BaseWfUrge<M>> extends Model<M> implements IBean {
public void setId(java.lang.String id) {
set("id", id);
}
public java.lang.String getId() {
return getStr("id");
}
public void setWfid(java.lang.String wfid) {
set("wfid", wfid);
}
public java.lang.String getWfid() {
return getStr("wfid");
}
public void setCreatedate(java.util.Date createdate) {
set("createdate", createdate);
}
public java.util.Date getCreatedate() {
return get("createdate");
}
public void setHrid(java.lang.Integer hrid) {
set("hrid", hrid);
}
public java.lang.Integer getHrid() {
return getInt("hrid");
}
public void setVerifykey(java.lang.String verifykey) {
set("verifykey", verifykey);
}
public java.lang.String getVerifykey() {
return getStr("verifykey");
}
public void setUserid(java.lang.String userid) {
set("userid", userid);
}
public java.lang.String getUserid() {
return getStr("userid");
}
}
| [
"wangs-as@glodon.com"
] | wangs-as@glodon.com |
abb8fa36a2c63a93ccaa881330f1866d41a44834 | 80adec1768e906ba574137d6f38badd41497e5fd | /android/app/src/main/java/com/spurs/MainActivity.java | 80ae0df2b7c2f5cf0dec74dadad98e7e1e2d1825 | [] | no_license | MichailZyusko/Spurs | 119fa376d267a97fb10c0184c5085c621c1e3a98 | 68843b03029d18065075507ac0b510f4eb9a091d | refs/heads/master | 2023-06-07T13:06:26.905943 | 2021-06-23T11:33:49 | 2021-06-23T11:33:49 | 379,580,530 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 337 | java | package com.spurs;
import com.facebook.react.ReactActivity;
public class MainActivity extends ReactActivity {
/**
* Returns the name of the main component registered from JavaScript. This is used to schedule
* rendering of the component.
*/
@Override
protected String getMainComponentName() {
return "Spurs";
}
}
| [
"67417124+MichailZyusko@users.noreply.github.com"
] | 67417124+MichailZyusko@users.noreply.github.com |
ab0903f85022c8a86eb2c1046b63d1cac5ddb54e | 6a922e840b33f11ab3d0f154afa0b33cff272676 | /src/main/java/org/docx4j/dml/chart/STCrossBetween.java | c649ece88f429aa6fa19ee0355e45bce7daabfda | [
"Apache-2.0"
] | permissive | baochanghong/docx4j | 912fc146cb5605e6f7869c4839379a83a8b4afd8 | 4c83d8999c9396067dd583b82a6fc892469a3919 | refs/heads/master | 2021-01-12T15:30:26.971311 | 2016-10-20T00:44:25 | 2016-10-20T00:44:25 | 71,792,895 | 3 | 0 | null | 2016-10-24T13:39:57 | 2016-10-24T13:39:57 | null | UTF-8 | Java | false | false | 1,921 | java | /*
* Copyright 2007-2008, Plutext Pty Ltd.
*
* This file is part of docx4j.
docx4j is 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.docx4j.dml.chart;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for ST_CrossBetween.
*
* <p>The following schema fragment specifies the expected content contained within this class.
* <p>
* <pre>
* <simpleType name="ST_CrossBetween">
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="between"/>
* <enumeration value="midCat"/>
* </restriction>
* </simpleType>
* </pre>
*
*/
@XmlType(name = "ST_CrossBetween")
@XmlEnum
public enum STCrossBetween {
/**
* Between
*
*/
@XmlEnumValue("between")
BETWEEN("between"),
/**
* Midpoint of Category
*
*/
@XmlEnumValue("midCat")
MID_CAT("midCat");
private final String value;
STCrossBetween(String v) {
value = v;
}
public String value() {
return value;
}
public static STCrossBetween fromValue(String v) {
for (STCrossBetween c: STCrossBetween.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}
| [
"jason@plutext.org"
] | jason@plutext.org |
dd4220470ebf30059b6b16639cee3c71541e3b71 | d4e3f6e2d1615cfcac100df464d62d4a1a84d5a9 | /src/main/java/ru/itis/medicineproject/repositories/RoleRepositoryImpl.java | b36a48c09a9ebdfa3a2f314deeacd73e19b90e05 | [] | no_license | ImpendingDoom28/medicine-project | d5768ed0a4d6e2f914a0aad81a5fc4396b24e72e | 1f342b6821cfbfea3e1ebeb596b398aa89caa58f | refs/heads/master | 2022-06-21T18:25:38.511325 | 2020-01-26T14:21:13 | 2020-01-26T14:21:13 | 236,311,725 | 1 | 0 | null | 2022-06-21T02:42:03 | 2020-01-26T12:51:25 | JavaScript | UTF-8 | Java | false | false | 1,988 | java | package ru.itis.medicineproject.repositories;
import ru.itis.medicineproject.lib.DbConnection;
import ru.itis.medicineproject.model.Role;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import java.util.Optional;
public class RoleRepositoryImpl implements RoleRepository {
private DbConnection dbConnection;
public RoleRepositoryImpl() {
dbConnection = new DbConnection();
}
private RowMapper<Role> rowMapper = rs -> {
try {
return Role.builder()
.setName(rs.getString("name"))
.setUserId(rs.getLong("user_id"))
.build();
} catch (SQLException e) {
throw new IllegalStateException(e);
}
};
@Override
public Optional<List<Role>> findRolesByUserId(Long id) {
List<Role> roles = new ArrayList<>();
try(PreparedStatement preparedStatement = dbConnection.getConnection().prepareStatement("SELECT medicine.user_to_role.user_id, medicine.role.name FROM medicine.user_to_role INNER JOIN role ON medicine.user_to_role.role_id = medicine.role.id WHERE user_id = ?")) {
preparedStatement.setString(1, "" + id);
ResultSet rs = preparedStatement.executeQuery();
while(rs.next()) {
roles.add(rowMapper.mapRow(rs));
}
return Optional.of(roles);
} catch (SQLException e) {
throw new IllegalStateException(e);
}
}
@Override
public Optional<Role> save(Role model) {
return Optional.empty();
}
@Override
public Optional<Role> find(Role model) {
return Optional.empty();
}
@Override
public Optional<Role> findById(Long aLong) {
return Optional.empty();
}
@Override
public void update(Role model) {
}
@Override
public void delete(Role model) {
}
}
| [
"mikheevs11@gmail.com"
] | mikheevs11@gmail.com |
55f351a28255346bdcf37113aa8e0bfa0099376a | 7cf2dfac23e98787ae09ae0f1f7a8978ecd9f7dc | /app/src/main/java/com/example/veterinaryclinic/Utilities/Utility.java | cac1e4b107864c357bcf0d365899628d6a6a9b9e | [] | no_license | cristian685/Veterinary-Clinic | c364ced79c727ba64a87d9458879be023468735f | e1a9d65603a069bc0363955e225e333e97abca23 | refs/heads/master | 2023-08-01T06:03:45.712016 | 2021-09-15T10:34:23 | 2021-09-15T10:34:23 | 290,498,070 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 538 | java | package com.example.veterinaryclinic.Utilities;
import android.content.Context;
import android.net.ConnectivityManager;
public class Utility {
public static final String DIALOG = "example dialog";
// Method used to check for the internet connection
public static boolean isNetworkConnected(Context context) {
ConnectivityManager cm = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);
return cm.getActiveNetworkInfo() != null && cm.getActiveNetworkInfo().isConnected();
}
}
| [
"cristi.popina98@gmail.com"
] | cristi.popina98@gmail.com |
b158b7bd87565f557ebba21f00fdb84aa64483b4 | a75a176e6fdece8f17c83e22ae7253882afd8f25 | /src/SemaphoreTest.java | 87448cbad61acb88acbf7be777de89c623a97683 | [] | no_license | Yuwenbiao/ConcurrentProgramming | 9271918dbf51881c526deb8f271ac20a091a665b | 1b9e376d23818720312b24721eb634bb8f7392b1 | refs/heads/master | 2021-10-12T03:16:59.784184 | 2019-02-01T07:53:06 | 2019-02-01T07:53:06 | 103,530,302 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 794 | java | import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.Semaphore;
public class SemaphoreTest {
public static final int THREAD_COUNT = 30;
private static ExecutorService threadPool = Executors.newFixedThreadPool(THREAD_COUNT);
private static Semaphore s = new Semaphore(10);
public static void main(String[] args) {
for (int i = 0; i < THREAD_COUNT; i++) {
threadPool.execute(() -> {
try {
s.acquire();
System.out.println("save data");
s.release();
} catch (InterruptedException e) {
e.printStackTrace();
}
});
}
threadPool.shutdown();
}
}
| [
"2383299053@qq.com"
] | 2383299053@qq.com |
d0eafc0c628af3a8b2a178542ecbfeb3ce9031f7 | e01539ff4fa403982c991aa424dc773547abb30a | /com.ibm.jbatch.container/src/main/java/com/ibm/jbatch/container/util/DependencyInjectionUtility.java | 045d5edb803a9ee29fd2c214dfdc3161cd18323a | [
"LicenseRef-scancode-generic-cla",
"Apache-2.0",
"CPL-1.0"
] | permissive | jGauravGupta/standards.jsr352.jbatch | 6d9aa00e8a3ddd44853570cb5086ebe189dd4932 | 90569b0004e830756d8f921419a511986b33a79c | refs/heads/master | 2022-10-08T09:20:17.941405 | 2020-05-08T21:12:17 | 2020-05-08T21:19:00 | 268,828,296 | 0 | 0 | Apache-2.0 | 2020-06-02T14:47:51 | 2020-06-02T14:47:50 | null | UTF-8 | Java | false | false | 8,046 | java | /**
* Copyright 2013 International Business Machines Corp.
*
* See the NOTICE file distributed with this work for additional information
* regarding copyright ownership. 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.ibm.jbatch.container.util;
import java.lang.reflect.Field;
import java.security.AccessController;
import java.security.PrivilegedAction;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.logging.Level;
import java.util.logging.Logger;
import jakarta.batch.api.BatchProperty;
import jakarta.batch.runtime.context.JobContext;
import jakarta.batch.runtime.context.StepContext;
import jakarta.inject.Inject;
import com.ibm.jbatch.container.artifact.proxy.InjectionReferences;
import com.ibm.jbatch.container.exception.BatchContainerRuntimeException;
import com.ibm.jbatch.container.exception.IllegalBatchPropertyException;
import com.ibm.jbatch.jsl.model.Property;
public class DependencyInjectionUtility {
private final static String sourceClass = DependencyInjectionUtility.class.getName();
private final static Logger logger = Logger.getLogger(sourceClass);
public static void injectReferences(Object artifact, InjectionReferences injectionRefs) {
if (logger.isLoggable(Level.FINE)) {
logger.fine("Injecting references into: " + artifact);
logger.fine("InjectionReferences = " + injectionRefs);
}
Map<String, Field> propertyMap = findPropertyFields(artifact);
if (injectionRefs.getProps() != null) {
injectProperties(artifact, injectionRefs.getProps(), propertyMap);
}
injectBatchContextFields(artifact, injectionRefs.getJobContext(),
injectionRefs.getStepContext());
if (logger.isLoggable(Level.FINE)) {
logger.exiting(sourceClass, "injectReferences");
}
}
/**
*
* @param props
* The properties directly associated with this batch artifact.
*/
private static void injectProperties(Object artifact , List<Property> props, Map<String, Field> propertyFieldMap) {
//check if jsl properties are null or if
//the propertyMap is null. this means there are no annotated fields with @BatchProperty
if (props == null || propertyFieldMap == null) {
return;
}
// go through each field marked with @BatchProperty
for (Entry<String, Field> batchProperty : propertyFieldMap.entrySet()) {
String propValue = getPropertyValue(props, batchProperty.getKey());
// if a property is supplied in the job xml inject the given value
// into
// the field otherwise the default value will remain
try {
if (!(propValue == null)) {
batchProperty.getValue().set(artifact, propValue);
} else {
//DO NOTHING so that the Java initialized value is used as the default for unresolved properties
}
} catch (IllegalArgumentException e) {
throw new IllegalBatchPropertyException("The given property value is not an instance of the declared field.", e);
} catch (IllegalAccessException e) {
throw new BatchContainerRuntimeException(e);
}
}
}
/**
*
* @param props list of properties from job xml
* @param name name of the property
* @return null if no matching property found
*/
public static String getPropertyValue(List<Property> props, String name) {
if (props == null) {
return null;
}
for (Property prop : props) {
if (name.equals(prop.getName())) {
String propValue = prop.getValue();
if ("".equals(propValue)){
return null;
} else {
return propValue;
}
}
}
return null;
}
/**
*
* @param artifact
* An instance of the batch artifact
* @return an ArrayList<Field> of fields annotated with @JobContext
*/
private static void injectBatchContextFields(Object artifact, JobContext jobCtx, StepContext stepCtx) {
// Go through declared field annotations
for (final Field field : artifact.getClass().getDeclaredFields()) {
AccessController.doPrivileged(new PrivilegedAction<Object>() {
public Object run() {
field.setAccessible(true); // ignore java accessibility
return null;
}
});
Inject injectAnnotation = field.getAnnotation(Inject.class);
if (injectAnnotation != null) {
if (logger.isLoggable(Level.FINER)) {
logger.log(Level.FINER, "Found Context on (Object, field)", new Object[] { artifact, field.getName() });
}
try {
// check the field for the context type
if (JobContext.class.isAssignableFrom(field.getType())) {
field.set(artifact, jobCtx);
} else if (StepContext.class.isAssignableFrom(field.getType())) {
field.set(artifact, stepCtx);
}
} catch (IllegalArgumentException e) {
throw new BatchContainerRuntimeException(e);
} catch (IllegalAccessException e) {
throw new BatchContainerRuntimeException(e);
}
}
}
}
/**
*
* @param delegate
* An instance of the batch artifact
* @return A map of Fields annotated with @BatchProperty.
*/
private static Map<String, Field> findPropertyFields(Object delegate) {
HashMap<String, Field> propertyMap = null;
// Go through declared field annotations
for (final Field field : delegate.getClass().getDeclaredFields()) {
AccessController.doPrivileged(new PrivilegedAction<Object>() {
public Object run() {
field.setAccessible(true); // ignore java accessibility
return null;
}
});
BatchProperty batchPropertyAnnotation = field.getAnnotation(BatchProperty.class);
if (batchPropertyAnnotation != null) {
if (propertyMap == null) {
propertyMap = new HashMap<String, Field>();
}
// If a name is not supplied the batch property name defaults to
// the field name
String batchPropName = null;
if (batchPropertyAnnotation.name().equals("")) {
batchPropName = field.getName();
} else {
batchPropName = batchPropertyAnnotation.name();
}
// Check if we have already used this name for a property.
if (propertyMap.containsKey(batchPropName)) {
throw new IllegalBatchPropertyException("There is already a batch property with this name: " + batchPropName);
}
propertyMap.put(batchPropName, field);
}
}
return propertyMap;
}
}
| [
"skurz@us.ibm.com"
] | skurz@us.ibm.com |
b68979610adddd4736639b33947a9f14700e880a | 5428596d2be572810645580e648e325eff8bc27b | /src/androidTest/java/com/example/myretrofitrxjava/ExampleInstrumentedTest.java | ccf0c38f89b74990789a6cbb6e1fc546b7e2bc84 | [] | no_license | Edie945/RetrofitRxjava | 1e7bd7034bf0872354dc603bfab1e9053d17bf7c | b21436219bd11495b8737a4ff93d1ab0167531da | refs/heads/master | 2020-03-21T11:50:28.622664 | 2018-06-25T00:03:26 | 2018-06-25T00:03:26 | 138,524,186 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 740 | java | package com.example.myretrofitrxjava;
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("com.example.myretrofitrxjava", appContext.getPackageName());
}
}
| [
"edie_945@163.com"
] | edie_945@163.com |
2dfd232b2624abcf73f1bea0c7856b3bb2c33651 | 4c29cb129adf09cabb03ee6724278b78b15ac65d | /src/main/java/br/com/hoptech/vaaguruapi/security/JWTUtil.java | 33c3f673b8c4ae8dafa3096c769b01126c942776 | [
"MIT"
] | permissive | gbessa/vaaguru-api | e32b660d8308597f2356e13ccafb8becf4b58341 | 27cd5e3409b1abc0c4a981815891a469514bb565 | refs/heads/master | 2022-09-17T08:00:36.576778 | 2020-09-25T13:16:59 | 2020-09-25T13:16:59 | 136,003,861 | 0 | 0 | MIT | 2022-09-01T22:59:40 | 2018-06-04T09:41:12 | Java | UTF-8 | Java | false | false | 1,436 | java | package br.com.hoptech.vaaguruapi.security;
import java.util.Date;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
import io.jsonwebtoken.Claims;
import io.jsonwebtoken.Jwts;
import io.jsonwebtoken.SignatureAlgorithm;
@Component
public class JWTUtil {
@Value("${jwt.secret}")
private String secret;
@Value("${jwt.expiration}")
private Long expiration;
public String generateToken(String username) {
return Jwts.builder()
.setSubject(username)
.setExpiration(new Date(System.currentTimeMillis() + expiration))
.signWith(SignatureAlgorithm.HS512, secret.getBytes())
.compact();
}
public boolean validToken(String token) {
Claims claims = getClaims(token);
if (claims != null) {
String username = claims.getSubject();
Date expirationDate = claims.getExpiration();
Date now = new Date(System.currentTimeMillis());
if (username != null && expirationDate != null && now.before(expirationDate)) {
return true;
}
}
return false;
}
private Claims getClaims(String token) {
try {
return Jwts.parser().setSigningKey(secret.getBytes()).parseClaimsJws(token).getBody();
} catch (Exception e) {
return null;
}
}
public String getUserName(String token) {
Claims claims = getClaims(token);
if (claims != null) {
return claims.getSubject();
}
return null;
}
}
| [
"gbvirtual@gmail.com"
] | gbvirtual@gmail.com |
1e47f143dbaac6e346cdeb54df721a77f6458e2d | 4831687854717dbb2215011270fdbd098f98840c | /backend/src/main/java/com/web/editor/model/dto/user/search/SearchPageBean.java | dfdaaa0ddc2aabdcefa9baea08dfdf21aa0a477e | [] | no_license | dabini/Web_PJT | b7758f52697f659c3043df9fdd5f81cef0ec3bda | 87d8a6ed0494d59f0e9b52521b430ebaafb343e5 | refs/heads/master | 2022-12-27T06:05:40.321417 | 2020-10-12T13:08:30 | 2020-10-12T13:08:30 | 295,435,009 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 911 | java | package com.web.editor.model.dto.user.search;
import java.io.Serializable;
import java.util.List;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
@Setter
@Getter
@ToString
public class SearchPageBean implements Serializable {
private int uid;
private String nickname;
private String payMin;
private String description;
private List<Integer> searchType;
/**웹 페이지 링크*/
private String pagelink;
/**조회할 페이지 번호*/
private int pageNo;
/**한 페이지에 표시할 데이타 수*/
private int interval = 5;
/**한 페이지에 표시할 시작 번호*/
private int start=1;
/**한 페이지에 표시할 끝 번호 */
private int end=interval;
// public List<Integer> getSearchType() {
// return searchType;
// }
// public void setSearchType(List<Integer> searchType) {
// this.searchType = searchType;
// }
}
| [
"jdb960211@gmail.com"
] | jdb960211@gmail.com |
50ab280e728e6ccddc08cd3b0c35f3ece010d747 | 6676faef996103a8287ee6970549fca8a829ffe8 | /app/src/main/java/com/zhjydy_doc/presenter/presenterImp/MineNamePresenterIml.java | ab15dbcee8b65be2ea3aeaf352303830b270c1bc | [] | no_license | henryliu1988/zjydy_doc | 1c8ecd808c4ea9b21d3826fa2d5af3a9b0a4c377 | 2587146051742ef278d9e3a2f38fb7b5ce2e3b82 | refs/heads/master | 2021-01-13T14:09:21.292370 | 2017-02-21T13:13:59 | 2017-02-21T13:13:59 | 76,182,960 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,958 | java | package com.zhjydy_doc.presenter.presenterImp;
import com.zhjydy_doc.model.data.UserData;
import com.zhjydy_doc.model.entity.ExpertInfo;
import com.zhjydy_doc.model.net.BaseSubscriber;
import com.zhjydy_doc.model.net.WebCall;
import com.zhjydy_doc.model.net.WebKey;
import com.zhjydy_doc.model.net.WebResponse;
import com.zhjydy_doc.model.net.WebUtils;
import com.zhjydy_doc.presenter.contract.MineNameChangContract;
import java.util.HashMap;
/**
* Created by Administrator on 2016/12/10 0010.
*/
public class MineNamePresenterIml implements MineNameChangContract.Presenter {
private MineNameChangContract.View mView;
public MineNamePresenterIml(MineNameChangContract.View view) {
mView =view;
mView.setPresenter(this);
start();
}
@Override
public void submitChangeConfirm(final String key,final String value) {
HashMap<String,Object> params = new HashMap<>();
params.put(key, value);
params.put("memberid",UserData.getInstance().getToken().getId());
WebCall.getInstance().call(WebKey.func_updateExpertInformation,params).subscribe(new BaseSubscriber<WebResponse>() {
@Override
public void onNext(WebResponse webResponse) {
boolean status = WebUtils.getWebStatus(webResponse);
//zhToast.showToast(WebUtils.getWebMsg(webResponse));
String msg = status ? "修改成功":"修改失败";
if (status) {
// UserData.getInstance().getToken().setNickname(name);
ExpertInfo info= UserData.getInstance().getToken().getmExpertInfo();
info.setValueByKey(key,value);
UserData.getInstance().getToken().setmExpertInfo(info);
}
mView.submitResult(status,msg);
}
});
}
@Override
public void start() {
}
@Override
public void finish() {
}
}
| [
"lytao123sc@126.com"
] | lytao123sc@126.com |
53d4af6134651bda1fb2cc828e6626f823e60af0 | ecb4330035991967a8308318683f273d06a7d8e3 | /document/WebDriver/Demo6_2_v2/WebDriverPO_Module6_2/src/test/java/com/epam/cnta/webdriver/demo2/additional/custom_page_object_with_abstract_page/GitHubHomePage.java | e0bbb525955103281508b3ba2de92ff29b4e527e | [] | no_license | tomfanxiaojun/automation-test | 9ffa69ff60668a66618080068ea6ed9bb9c18269 | 9324454ff662e9f34ef03dc737ebb3e85cc83393 | refs/heads/master | 2021-01-11T06:35:54.227762 | 2017-01-09T07:13:11 | 2017-01-09T07:13:11 | 71,863,016 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 693 | java | package com.epam.cnta.webdriver.demo2.additional.custom_page_object_with_abstract_page;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
public class GitHubHomePage extends GitHubAbstractPage {
private static final String SIGNIN_BTN_ID = "Sign in";
private WebElement signInBtn;
public GitHubHomePage(WebDriver driver) {
super(driver);
}
public GitHubSignInPage openSignInPage() {
// click the "button" input element created by link text
signInBtn = driver.findElement(By.linkText(SIGNIN_BTN_ID));
signInBtn.click();
System.out.println("Navigating to signin page...");
return new GitHubSignInPage(driver);
}
}
| [
"ivan_fan@epam.com"
] | ivan_fan@epam.com |
922819adde716183666cb552dd0656a7f00ec958 | 831fe64e15880e8df76e9654b9aee117a1826ed3 | /src/main/java/tyvrel/mag/gui/cards/LapLengthCard.java | d86b7d4339abf1adf5acdab2b79a95759d9b8c86 | [
"CC-BY-4.0"
] | permissive | Tyvrel/rc | 1c3c77420c8b8b7da4685d6c26b7e95045f4b1f5 | fb6dcbeb855e4d960fd8e9a4524442fc6246cdc3 | refs/heads/master | 2021-01-19T13:41:40.052791 | 2017-09-27T18:08:53 | 2017-09-27T18:08:53 | 100,856,144 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 4,161 | java | package tyvrel.mag.gui.cards;
import tyvrel.mag.core.exception.ImproperDataException;
import tyvrel.mag.core.exception.LSException;
import tyvrel.mag.core.factory.classification.SteelFactory;
import tyvrel.mag.core.factory.classification.ConcreteClassificationFactory;
import tyvrel.mag.core.factory.longitudinalreinforcement.LapLengthFactory;
import tyvrel.mag.core.factory.longitudinalreinforcement.LongitudinalReinforcementRequiredAnchorageLengthFactory;
import tyvrel.mag.core.model.Factors;
import tyvrel.mag.core.model.classification.ConcreteClassification;
import tyvrel.mag.gui.component.LabeledComboBox;
import tyvrel.mag.gui.component.LabeledTextField;
import tyvrel.mag.gui.view.BaseClassificationPanel;
import tyvrel.mag.gui.view.BaseJPanel;
import tyvrel.mag.gui.view.ReinforcementDiameterPanel;
import tyvrel.mag.gui.view.SteelPanel;
import javax.swing.*;
import java.awt.*;
/**
* This work is licensed under the Creative Commons Attribution 4.0 International License. To view a copy of this
* license, visit http://creativecommons.org/licenses/by/4.0/.
*/
public class LapLengthCard extends BaseJPanel {
private BaseClassificationPanel<ConcreteClassification> concreteClassificationPanel = new BaseClassificationPanel
<>("Beton", new ConcreteClassificationFactory(), false);
private LabeledTextField ltfGammaC = new LabeledTextField("<html>\u03B3<sub>C</sub> [-]:</html>", "1.4");
private LabeledTextField ltfGammaS = new LabeledTextField("<html>\u03B3<sub>S</sub> [-]:</html>", "1.15");
private SteelPanel steelPanel = new SteelPanel(new SteelFactory());
private ReinforcementDiameterPanel reinforcementDiameterPanel = new ReinforcementDiameterPanel("Średnica " +
"zbrojenia", false);
private LabeledTextField ltfP1 = new LabeledTextField("Udział prętów połączonych na zakład w przekroju: [-]",
"0.4");
private LabeledComboBox lcbBondConditionsType;
public LapLengthCard(String name) {
super(name);
setLayout(new GridLayout(0, 1));
lcbBondConditionsType = new LabeledComboBox("Warunki przyczepności:", new String[]{"Dobre", "Złe"});
add(concreteClassificationPanel);
JPanel partialFactorsPanel = new BaseJPanel("Inne:");
partialFactorsPanel.add(ltfGammaC);
partialFactorsPanel.add(ltfGammaS);
partialFactorsPanel.add(ltfP1);
partialFactorsPanel.add(lcbBondConditionsType);
add(partialFactorsPanel);
add(steelPanel);
add(reinforcementDiameterPanel);
JPanel jPanel = new JPanel();
JLabel jLabel = new JLabel();
JButton jButton = new JButton("Oblicz");
jButton.addActionListener(e -> {
try {
jLabel.setText(
"Obliczona długość zakotwienia wynosi: " + String.format("%.0f", calculateLapLength() * 1000)
+ "mm");
} catch (ImproperDataException e1) {
jLabel.setText("");
JOptionPane.showMessageDialog(getTopLevelAncestor(), "Algorym zakończył się niepowodzeniem", "Błąd",
JOptionPane.WARNING_MESSAGE);
} catch (LSException e1) {
jLabel.setText("");
JOptionPane.showMessageDialog(getTopLevelAncestor(), "Przekroczony stan graniczny", "Błąd",
JOptionPane.WARNING_MESSAGE);
}
});
jPanel.add(jButton);
jPanel.add(jLabel);
add(jPanel);
}
public double calculateLapLength() throws ImproperDataException, LSException {
double lbrqd = new LongitudinalReinforcementRequiredAnchorageLengthFactory(
concreteClassificationPanel.getClassifications(ConcreteClassification[]::new)[0],
steelPanel.getSteel(),
new Factors(ltfGammaS.getDouble(), ltfGammaC.getDouble()),
reinforcementDiameterPanel.getDiameters()[0],
getBondConditionsType())
.build();
return new LapLengthFactory(
reinforcementDiameterPanel.getDiameters()[0],
ltfP1.getDouble(),
lbrqd
).build();
}
public int getBondConditionsType() throws ImproperDataException {
switch ((String) lcbBondConditionsType.getjComboBox().getSelectedItem()) {
case "Dobre":
return LongitudinalReinforcementRequiredAnchorageLengthFactory.GOOD_BOND_CONDITIONS;
case "Złe":
return LongitudinalReinforcementRequiredAnchorageLengthFactory.BAD_BOND_CONDITIONS;
default:
throw new ImproperDataException();
}
}
}
| [
"dke.kkac@gmail.om"
] | dke.kkac@gmail.om |
b38667009a932f68372c4f828e4b3bfe11120867 | fc7c497695d8f1037492632d6efb0c4dfdf4fa9a | /xamarin.forms/Droid/obj/Debug/81/android/src/mono/MonoPackageManager.java | 1c3254405df90b3142c2aa8f38eee474e07e58d7 | [] | no_license | gtg4059/Mediin-Mobile | 96204584bb894304ccd78c4c8de06c6401903b26 | 4e21ae26f74ce21e351be30ab9dfd200143f44a8 | refs/heads/master | 2023-01-03T01:52:30.867111 | 2020-10-29T12:41:25 | 2020-10-29T12:41:25 | 289,606,936 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 4,670 | java | package mono;
import java.io.*;
import java.lang.String;
import java.util.Locale;
import java.util.HashSet;
import java.util.zip.*;
import android.content.Context;
import android.content.Intent;
import android.content.pm.ApplicationInfo;
import android.content.res.AssetManager;
import android.util.Log;
import mono.android.Runtime;
public class MonoPackageManager {
static Object lock = new Object ();
static boolean initialized;
static android.content.Context Context;
public static void LoadApplication (Context context, ApplicationInfo runtimePackage, String[] apks)
{
synchronized (lock) {
if (context instanceof android.app.Application) {
Context = context;
}
if (!initialized) {
android.content.IntentFilter timezoneChangedFilter = new android.content.IntentFilter (
android.content.Intent.ACTION_TIMEZONE_CHANGED
);
context.registerReceiver (new mono.android.app.NotifyTimeZoneChanges (), timezoneChangedFilter);
System.loadLibrary("monodroid");
Locale locale = Locale.getDefault ();
String language = locale.getLanguage () + "-" + locale.getCountry ();
String filesDir = context.getFilesDir ().getAbsolutePath ();
String cacheDir = context.getCacheDir ().getAbsolutePath ();
String dataDir = getNativeLibraryPath (context);
ClassLoader loader = context.getClassLoader ();
java.io.File external0 = android.os.Environment.getExternalStorageDirectory ();
String externalDir = new java.io.File (
external0,
"Android/data/" + context.getPackageName () + "/files/.__override__").getAbsolutePath ();
String externalLegacyDir = new java.io.File (
external0,
"../legacy/Android/data/" + context.getPackageName () + "/files/.__override__").getAbsolutePath ();
Runtime.init (
language,
apks,
getNativeLibraryPath (runtimePackage),
new String[]{
filesDir,
cacheDir,
dataDir,
},
loader,
new String[] {
externalDir,
externalLegacyDir
},
MonoPackageManager_Resources.Assemblies,
context.getPackageName ());
mono.android.app.ApplicationRegistration.registerApplications ();
initialized = true;
}
}
}
public static void setContext (Context context)
{
// Ignore; vestigial
}
static String getNativeLibraryPath (Context context)
{
return getNativeLibraryPath (context.getApplicationInfo ());
}
static String getNativeLibraryPath (ApplicationInfo ainfo)
{
if (android.os.Build.VERSION.SDK_INT >= 9)
return ainfo.nativeLibraryDir;
return ainfo.dataDir + "/lib";
}
public static String[] getAssemblies ()
{
return MonoPackageManager_Resources.Assemblies;
}
public static String[] getDependencies ()
{
return MonoPackageManager_Resources.Dependencies;
}
public static String getApiPackageName ()
{
return MonoPackageManager_Resources.ApiPackageName;
}
}
class MonoPackageManager_Resources {
public static final String[] Assemblies = new String[]{
/* We need to ensure that "ZUMOAPPNAME.Droid.dll" comes first in this list. */
"ZUMOAPPNAME.Droid.dll",
"FormsViewGroup.dll",
"MediinApp.dll",
"Microsoft.Azure.Mobile.Client.dll",
"Microsoft.Azure.Mobile.Client.SQLiteStore.dll",
"Newtonsoft.Json.dll",
"PCLCrypto.dll",
"PInvoke.BCrypt.dll",
"PInvoke.Kernel32.dll",
"PInvoke.NCrypt.dll",
"PInvoke.Windows.Core.dll",
"SQLitePCLRaw.batteries_green.dll",
"SQLitePCLRaw.batteries_v2.dll",
"SQLitePCLRaw.core.dll",
"SQLitePCLRaw.lib.e_sqlite3.dll",
"SQLitePCLRaw.provider.e_sqlite3.dll",
"Validation.dll",
"Xamarin.Android.Support.Animated.Vector.Drawable.dll",
"Xamarin.Android.Support.Annotations.dll",
"Xamarin.Android.Support.Compat.dll",
"Xamarin.Android.Support.Core.UI.dll",
"Xamarin.Android.Support.Core.Utils.dll",
"Xamarin.Android.Support.CustomTabs.dll",
"Xamarin.Android.Support.Design.dll",
"Xamarin.Android.Support.Fragment.dll",
"Xamarin.Android.Support.Media.Compat.dll",
"Xamarin.Android.Support.Transition.dll",
"Xamarin.Android.Support.v4.dll",
"Xamarin.Android.Support.v7.AppCompat.dll",
"Xamarin.Android.Support.v7.CardView.dll",
"Xamarin.Android.Support.v7.MediaRouter.dll",
"Xamarin.Android.Support.v7.Palette.dll",
"Xamarin.Android.Support.v7.RecyclerView.dll",
"Xamarin.Android.Support.Vector.Drawable.dll",
"Xamarin.Forms.Core.dll",
"Xamarin.Forms.Platform.Android.dll",
"Xamarin.Forms.Platform.dll",
"Xamarin.Forms.Xaml.dll",
};
public static final String[] Dependencies = new String[]{
};
public static final String ApiPackageName = "Mono.Android.Platform.ApiLevel_27";
}
| [
"qkrtjdrhks21@gmail.com"
] | qkrtjdrhks21@gmail.com |
e9e3347d825037852455680e8a620722fa0c6683 | 1df40cdd4c9d5ed4e4446dd4c6a18d63a0fffb01 | /StructureModel/mvp/src/main/java/com/hujun/mvp/base/Test.java | bf778fcbb18eb45d31d9bd22fb044a87ad661ea1 | [
"MIT"
] | permissive | Hujunjob/ArchitecturePro | 865b0292e0949f95a77682e9a37ed3e24757376f | f1c9e8f5ccb026bf606329e3ab5d0185ff82f4c7 | refs/heads/master | 2020-09-15T19:47:54.440447 | 2019-12-12T13:44:17 | 2019-12-12T13:44:17 | 223,544,016 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 418 | java | package com.hujun.mvp.base;
import java.util.ArrayList;
/**
* Created by junhu on 2019-12-12
*/
public class Test {
class A{}
class B extends A{}
public void test(){
ArrayList<? extends B> list = new ArrayList<>();
list.add(new A());
A a = list.get(0);
ArrayList<? super A> list1 = new ArrayList<>();
list1.add(new B());
A aa = list1.get(0);
}
}
| [
"huj@hiscene.com"
] | huj@hiscene.com |
adb3170ee60e6cdceef1a515005aa17f72c82118 | dd6693ff5c08c2cdfdbdeae7d74279a1f1592fff | /bookstore-example-with-mvc/src/main/java/com/example/bookstore/service/CategoryServiceImpl.java | 968024dfa08482e69decd77a43c802753908b716 | [] | no_license | linyeli/spring-mvc-examples | 510f760d8c5126f7389b7ffee0daf0aebd0a8944 | 2eb9c26b036aecded6e4be5099fa40bbf76f38a5 | refs/heads/master | 2021-05-30T13:43:19.618177 | 2016-01-01T19:42:16 | 2016-01-01T19:42:16 | 55,740,201 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 870 | java | package com.example.bookstore.service;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.example.bookstore.domain.Category;
import com.example.bookstore.repository.CategoryRepository;
/**
* @see CategoryService
*
*
*
*/
@Service("categoryService")
@Transactional(readOnly = true)
public class CategoryServiceImpl implements CategoryService {
@Autowired
private CategoryRepository categoryRepository;
@Override
public Category findById(long id) {
return categoryRepository.findById(id);
}
@Override
public List<Category> findAll() {
return this.categoryRepository.findAll();
}
@Override
public void addCategory(Category category) {
categoryRepository.storeCategory(category);
}
}
| [
"krishna@krishna-PC.(none)"
] | krishna@krishna-PC.(none) |
40d4a45e9ef9aefee2bb1a27d4d4d5c7ab031b5c | 8c69d5a70571e94a9b6ded1811f7e1be61ae3d91 | /Arrays/src/com/giselle/Main.java | 75b18050fd4fa6d15ee562f69614ae31a2a53649 | [] | no_license | gitavares/Java8Studies | 5cc18147ed2862c7557b02ad14d6eb959718dd24 | 20a9e639ebb4f19e0485a23d7e69bff0c6ceaf12 | refs/heads/master | 2021-05-10T17:05:26.747849 | 2018-03-07T12:30:21 | 2018-03-07T12:30:21 | 118,595,693 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 845 | java | package com.giselle;
import java.util.Scanner;
public class Main {
private static Scanner scanner = new Scanner(System.in);
public static void main(String[] args) {
int[] myIntegers = getIntegers(5);
for (int i = 0; i < myIntegers.length; i++) {
System.out.println("Element " + i + ", typed values was " + myIntegers[i]);
}
System.out.println("The average is " + getAverage(myIntegers));
}
public static int[] getIntegers(int number){
System.out.println("Enter " + number + " integer values.\r");
int[] values = new int[number];
for (int i = 0; i < values.length; i++) {
values[i] = scanner.nextInt();
}
return values;
}
public static double getAverage(int[] array){
int sum = 0;
for (int i = 0; i < array.length; i++) {
sum += array[i];
}
return (double)sum / (double)array.length;
}
}
| [
"giselle.tavares@dataprev.gov.br"
] | giselle.tavares@dataprev.gov.br |
e5b568b2400fda794ad3b935b98a56207d1ef17b | 736613f41435f913264bfac20c1bfde907c6e1ea | /app/src/main/java/com/honghaizi/test/bean/Classify_Bean.java | e1ea4c3b4e27a5eb9a21db60c8c60d1ebd4c8987 | [] | no_license | zengguangchun/honghaizi | 650c1be21e127a0a1c41fa360c47c2bd647488a3 | 05001c6be293de288f0b5f14f4fc65db4b85523e | refs/heads/master | 2020-07-02T09:56:34.546873 | 2016-12-05T13:30:21 | 2016-12-05T13:30:21 | 74,311,659 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 118,302 | java | package com.honghaizi.test.bean;
import java.util.List;
/**
* Created by asus on 2016/11/22.
*/
public class Classify_Bean {
/**
* message :
* rs : [{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"1","children":[{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"1","children":[{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"一段奶粉","gotoApp":"","gotoWap":"","id":100007005,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/milk/1.png","imgWap":"http://sale.suning.com/act/20140808/milk/1.png","level":3,"parentId":100007004,"pcCi":"313006","seoCf":"","sort":9},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"二段奶粉","gotoApp":"","gotoWap":"","id":100007006,"ifShowShoppingCart":"0","imgApp":"http://image4.suning.cn/uimg/cms/img/145630533828587812.jpg","imgWap":"http://image4.suning.cn/uimg/cms/img/145630533828587812.jpg","level":3,"parentId":100007004,"pcCi":"313007","seoCf":"","sort":8},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"三段奶粉","gotoApp":"","gotoWap":"","id":100007007,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/milk/3.png","imgWap":"http://sale.suning.com/act/20140808/milk/3.png","level":3,"parentId":100007004,"pcCi":"313008","seoCf":"","sort":7},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"四段奶粉","gotoApp":"","gotoWap":"","id":100007008,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/milk/4.png","imgWap":"http://sale.suning.com/act/20140808/milk/4.png","level":3,"parentId":100007004,"pcCi":"313009","seoCf":"","sort":6},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"五段奶粉","gotoApp":"","gotoWap":"","id":100007009,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/milk/5.png","imgWap":"http://sale.suning.com/act/20140808/milk/5.png","level":3,"parentId":100007004,"pcCi":"313010","seoCf":"","sort":5},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"特配奶粉","gotoApp":"","gotoWap":"","id":100007010,"ifShowShoppingCart":"0","imgApp":"http://image1.suning.cn/uimg/cms/img/145891016809665814.jpg","imgWap":"http://image1.suning.cn/uimg/cms/img/145891016809665814.jpg","level":3,"parentId":100007004,"pcCi":"313012","seoCf":"","sort":4},{"advts":[],"attriCf":"s54206a:E7BE8AE5A5B6E7B289","bigPicture":"0","categoryGoto":"3","children":[],"clickCount":0,"description":"","dirName":"羊奶粉","gotoApp":"","gotoWap":"","id":100007011,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/milk/7.png","imgWap":"http://sale.suning.com/act/20140808/milk/7.png","level":3,"parentId":100007004,"pcCi":"313005","seoCf":"123239","sort":3},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"妈咪奶粉","gotoApp":"","gotoWap":"","id":100007012,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/milk/8.png","imgWap":"http://sale.suning.com/act/20140808/milk/8.png","level":3,"parentId":100007004,"pcCi":"320504","seoCf":"","sort":2},{"advts":[],"attriCf":"s54205a:E58E9FE8A385E8BF9BE58FA3","bigPicture":"0","categoryGoto":"3","children":[],"clickCount":0,"description":"","dirName":"原装进口","gotoApp":"","gotoWap":"","id":100007013,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/milk/9.png","imgWap":"http://sale.suning.com/act/20140808/milk/9.png","level":3,"parentId":100007004,"pcCi":"313005","seoCf":"123237","sort":1}],"clickCount":0,"description":"","dirName":"奶粉","gotoApp":"","gotoWap":"","id":100007004,"ifShowShoppingCart":"0","imgApp":"","imgWap":"","level":2,"parentId":100007001,"pcCi":"","seoCf":"","sort":2},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"1","children":[{"advts":[],"attriCf":"bnf:E99B85E59FB9284162626F747429","bigPicture":"0","categoryGoto":"3","children":[],"clickCount":0,"description":"","dirName":"雅培","gotoApp":"","gotoWap":"","id":100007203,"ifShowShoppingCart":"0","imgApp":"http://image3.suning.cn/uimg/cms/img/146070741932497822.jpg","imgWap":"http://image3.suning.cn/uimg/cms/img/146070741932497822.jpg","level":3,"parentId":100007015,"pcCi":"313005","seoCf":"11196","sort":9},{"advts":[],"attriCf":"bnf:E7BE8EE8B59EE887A3284D656164204A6F686E736F6E29","bigPicture":"0","categoryGoto":"3","children":[],"clickCount":0,"description":"","dirName":"美赞臣","gotoApp":"","gotoWap":"","id":100007018,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20150910/2056/meizanchen.jpg","imgWap":"http://sale.suning.com/act/20150910/2056/meizanchen.jpg","level":3,"parentId":100007015,"pcCi":"313005","seoCf":"51312","sort":8},{"advts":[],"attriCf":"bnf:E7BE8EE7B4A0E4BDB3E584BF28467269736F29","bigPicture":"0","categoryGoto":"3","children":[],"clickCount":0,"description":"","dirName":"美素佳儿","gotoApp":"","gotoWap":"","id":100007016,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20150910/2056/meisu.jpg","imgWap":"http://sale.suning.com/act/20150910/2056/meisu.jpg","level":3,"parentId":100007015,"pcCi":"313005","seoCf":"43614","sort":7},{"advts":[],"attriCf":"bnf:E99B80E5B7A2284E6573746C6529","bigPicture":"0","categoryGoto":"3","children":[],"clickCount":0,"description":"","dirName":"雀巢","gotoApp":"","gotoWap":"","id":100007017,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20150910/2056/quechao.jpg","imgWap":"http://sale.suning.com/act/20150910/2056/quechao.jpg","level":3,"parentId":100007015,"pcCi":"313005","seoCf":"42301","sort":6},{"advts":[],"attriCf":"bnf:E7BE8EE7B4A0E4BDB3E584BF28467269736F29","bigPicture":"0","categoryGoto":"3","children":[],"clickCount":0,"description":"","dirName":"荷兰美素","gotoApp":"","gotoWap":"","id":100007022,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20150915/1711/meisu.jpg","imgWap":"http://sale.suning.com/act/20150915/1711/meisu.jpg","level":3,"parentId":100007015,"pcCi":"313005","seoCf":"43614","sort":5},{"advts":[],"attriCf":"bnf:E683A0E6B08F28577965746829","bigPicture":"0","categoryGoto":"3","children":[],"clickCount":0,"description":"","dirName":"惠氏","gotoApp":"","gotoWap":"","id":100007019,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20150910/2056/huishi.jpg","imgWap":"http://sale.suning.com/act/20150910/2056/huishi.jpg","level":3,"parentId":100007015,"pcCi":"313005","seoCf":"19645","sort":4},{"advts":[],"attriCf":"bnf:E788B1E4BB96E7BE8E28617074616D696C29","bigPicture":"0","categoryGoto":"3","children":[],"clickCount":0,"description":"","dirName":"爱他美","gotoApp":"","gotoWap":"","id":100007020,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20150915/1711/aitamei.jpg","imgWap":"http://sale.suning.com/act/20150915/1711/aitamei.jpg","level":3,"parentId":100007015,"pcCi":"313005","seoCf":"21541","sort":3},{"advts":[],"attriCf":"bnf:E88BB1E59BBDE7899BE6A08F28436F77204761746529","bigPicture":"0","categoryGoto":"3","children":[],"clickCount":0,"description":"","dirName":"牛栏","gotoApp":"","gotoWap":"","id":100007021,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20150915/1711/niulan.jpg","imgWap":"http://sale.suning.com/act/20150915/1711/niulan.jpg","level":3,"parentId":100007015,"pcCi":"313005","seoCf":"47753","sort":2},{"advts":[],"attriCf":"bnf:E9A39EE9B9A4284649524D555329","bigPicture":"0","categoryGoto":"3","children":[],"clickCount":0,"description":"","dirName":"飞鹤","gotoApp":"","gotoWap":"","id":100007204,"ifShowShoppingCart":"0","imgApp":"http://image3.suning.cn/uimg/cms/img/146077137953313964.jpg","imgWap":"http://image3.suning.cn/uimg/cms/img/146077137953313964.jpg","level":3,"parentId":100007015,"pcCi":"313005","seoCf":"40460","sort":1}],"clickCount":0,"description":"","dirName":"奶粉品牌","gotoApp":"","gotoWap":"","id":100007015,"ifShowShoppingCart":"0","imgApp":"","imgWap":"","level":2,"parentId":100007001,"pcCi":"","seoCf":"","sort":1}],"clickCount":0,"description":"","dirName":"宝宝奶粉","gotoApp":"","gotoWap":"","id":100007001,"ifShowShoppingCart":"0","imgApp":"","imgWap":"","level":1,"parentId":99999999,"pcCi":"","seoCf":"","sort":11},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"1","children":[{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"1","children":[{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"纸尿裤","gotoApp":"","gotoWap":"","id":100007252,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20150514/2015514nmmynksj/1.jpg","imgWap":"http://sale.suning.com/act/20150514/2015514nmmynksj/1.jpg","level":3,"parentId":100007024,"pcCi":"362005","pcDirName":"纸尿裤","seoCf":"","sort":20},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"纸尿片","gotoApp":"","gotoWap":"","id":100007253,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20150913/1100/zhiniaopian.jpg","imgWap":"http://sale.suning.com/act/20150913/1100/zhiniaopian.jpg","level":3,"parentId":100007024,"pcCi":"313113","pcDirName":"纸尿片","seoCf":"","sort":19},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"新生儿","gotoApp":"","gotoWap":"","id":100007026,"ifShowShoppingCart":"0","imgApp":"http://image2.suning.cn/uimg/cms/img/147487761167134546.jpg","imgWap":"http://image2.suning.cn/uimg/cms/img/147487761167134546.jpg","level":3,"parentId":100007024,"pcCi":"367003","pcDirName":"新生儿","seoCf":"","sort":6},{"advts":[],"attriCf":"s1447a:53E58FB7","bigPicture":"0","categoryGoto":"3","children":[],"clickCount":0,"description":"","dirName":"S号","gotoApp":"","gotoWap":"","id":100007034,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/bbyp/2-1-2.png","imgWap":"http://sale.suning.com/act/20140808/bbyp/2-1-2.png","level":3,"parentId":100007024,"pcCi":"362005","pcDirName":"纸尿裤","seoCf":"24615","sort":5},{"advts":[],"attriCf":"s1447a:4DE58FB7","bigPicture":"0","categoryGoto":"3","children":[],"clickCount":0,"description":"","dirName":"M号","gotoApp":"","gotoWap":"","id":100007035,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/bbyp/2-1-3.png","imgWap":"http://sale.suning.com/act/20140808/bbyp/2-1-3.png","level":3,"parentId":100007024,"pcCi":"362005","pcDirName":"纸尿裤","seoCf":"24163","sort":4},{"advts":[],"attriCf":"s1447a:4CE58FB7","bigPicture":"0","categoryGoto":"3","children":[],"clickCount":0,"description":"","dirName":"L号","gotoApp":"","gotoWap":"","id":100007036,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/bbyp/2-1-4.png","imgWap":"http://sale.suning.com/act/20140808/bbyp/2-1-4.png","level":3,"parentId":100007024,"pcCi":"362005","pcDirName":"纸尿裤","seoCf":"24531","sort":3},{"advts":[],"attriCf":"s1447a:584C2F58584CE58FB7","bigPicture":"0","categoryGoto":"3","children":[],"clickCount":0,"description":"","dirName":"XL/XXL号","gotoApp":"","gotoWap":"","id":100007037,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/bbyp/2-1-5.png","imgWap":"http://sale.suning.com/act/20140808/bbyp/2-1-5.png","level":3,"parentId":100007024,"pcCi":"362005","seoCf":"24464","sort":2},{"advts":[],"attriCf":"s54210a:E68B89E68B89E8A3A42FE68890E995BFE8A3A4","bigPicture":"0","categoryGoto":"3","children":[],"clickCount":0,"description":"","dirName":"拉拉裤","gotoApp":"","gotoWap":"","id":100007038,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/bbyp/2-1-6.png","imgWap":"http://sale.suning.com/act/20140808/bbyp/2-1-6.png","level":3,"parentId":100007024,"pcCi":"362005","seoCf":"123507","sort":1},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"布尿裤","gotoApp":"","gotoWap":"","id":100007254,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20150913/1100/bunianku.jpg","imgWap":"http://sale.suning.com/act/20150913/1100/bunianku.jpg","level":3,"parentId":100007024,"pcCi":"500335","seoCf":"","sort":1}],"clickCount":0,"description":"","dirName":"纸尿裤","gotoApp":"","gotoWap":"","id":100007024,"ifShowShoppingCart":"0","imgApp":"","imgWap":"","level":2,"parentId":100007023,"pcCi":"","seoCf":"","sort":2},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"1","children":[{"advts":[],"attriCf":"bnf:E88AB1E78E8B284B414F29","bigPicture":"0","categoryGoto":"3","children":[],"clickCount":0,"description":"","dirName":"花王","gotoApp":"","gotoWap":"","id":100007027,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20150915/1711/huawang.jpg","imgWap":"http://sale.suning.com/act/20150915/1711/huawang.jpg","level":3,"parentId":100007025,"pcCi":"313107","seoCf":"48842","sort":7},{"advts":[],"attriCf":"bnf:E5A5BDE5A587284875676769657329","bigPicture":"0","categoryGoto":"3","children":[],"clickCount":0,"description":"","dirName":"好奇","gotoApp":"","gotoWap":"","id":100007028,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20150910/2056/haoqi.jpg","imgWap":"http://sale.suning.com/act/20150910/2056/haoqi.jpg","level":3,"parentId":100007025,"pcCi":"313107","seoCf":"45518","sort":6},{"advts":[],"attriCf":"bnf:E5B8AEE5AE9DE980822850616D7065727329","bigPicture":"0","categoryGoto":"3","children":[],"clickCount":0,"description":"","dirName":"帮宝适","gotoApp":"","gotoWap":"","id":100007029,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20150910/2056/bangbaoshi.jpg","imgWap":"http://sale.suning.com/act/20150910/2056/bangbaoshi.jpg","level":3,"parentId":100007025,"pcCi":"313107","seoCf":"43276","sort":5},{"advts":[],"attriCf":"bnf:E5AE89E584BFE4B99028416E65726C6529","bigPicture":"0","categoryGoto":"3","children":[],"clickCount":0,"description":"","dirName":"安儿乐","gotoApp":"","gotoWap":"","id":100007030,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20150910/2056/anerle.jpg","imgWap":"http://sale.suning.com/act/20150910/2056/anerle.jpg","level":3,"parentId":100007025,"pcCi":"313107","seoCf":"11260","sort":4},{"advts":[],"attriCf":"bnf:E4B990E58FAFE788B1284C614355544529","bigPicture":"0","categoryGoto":"3","children":[],"clickCount":0,"description":"","dirName":"乐可爱","gotoApp":"","gotoWap":"","id":100007031,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20150910/2056/lekeai.jpg","imgWap":"http://sale.suning.com/act/20150910/2056/lekeai.jpg","level":3,"parentId":100007025,"pcCi":"313107","seoCf":"117738","sort":3},{"advts":[],"attriCf":"bnf:E6B3B0E8BFAAE7868A287465646479206265617229","bigPicture":"0","categoryGoto":"3","children":[],"clickCount":0,"description":"","dirName":"泰迪熊","gotoApp":"","gotoWap":"","id":100007032,"ifShowShoppingCart":"0","imgApp":"http://image2.suning.cn/uimg/cms/img/145095829680789645.jpg","imgWap":"http://image2.suning.cn/uimg/cms/img/145095829680789645.jpg","level":3,"parentId":100007025,"pcCi":"313107","seoCf":"124548","sort":2},{"advts":[],"attriCf":"bnf:E5B0A4E5A6AEE4BDB3284D4F4F4E5929","bigPicture":"0","categoryGoto":"3","children":[],"clickCount":0,"description":"","dirName":"尤妮佳","gotoApp":"","gotoWap":"","id":100007033,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20150915/1711/younijia.jpg","imgWap":"http://sale.suning.com/act/20150915/1711/younijia.jpg","level":3,"parentId":100007025,"pcCi":"313107","seoCf":"118250","sort":1}],"clickCount":0,"description":"","dirName":"品牌墙","gotoApp":"","gotoWap":"","id":100007025,"ifShowShoppingCart":"0","imgApp":"","imgWap":"","level":2,"parentId":100007023,"pcCi":"","seoCf":"","sort":1}],"clickCount":0,"description":"","dirName":"宝宝尿裤","gotoApp":"","gotoWap":"","id":100007023,"ifShowShoppingCart":"0","imgApp":"","imgWap":"","level":1,"parentId":99999999,"pcCi":"","seoCf":"","sort":10},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"1","children":[{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"1","children":[{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"泥糊","gotoApp":"","gotoWap":"","id":100001181,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/fushi/1.png","imgWap":"http://sale.suning.com/act/20140808/fushi/1.png","level":3,"parentId":100001177,"pcCi":"313015","seoCf":"","sort":9},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"果汁/水","gotoApp":"","gotoWap":"","id":100001187,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/fushi/2.png","imgWap":"http://sale.suning.com/act/20140808/fushi/2.png","level":3,"parentId":100001177,"pcCi":"313016","seoCf":"","sort":8},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"饼干","gotoApp":"","gotoWap":"","id":100001202,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/fushi/3.png","imgWap":"http://sale.suning.com/act/20140808/fushi/3.png","level":3,"parentId":100001177,"pcCi":"313017","seoCf":"","sort":7},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"米粉","gotoApp":"","gotoWap":"","id":100001206,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/fushi/4.png","imgWap":"http://sale.suning.com/act/20140808/fushi/4.png","level":3,"parentId":100001177,"pcCi":"313018","seoCf":"","sort":6},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"肉松","gotoApp":"","gotoWap":"","id":100001209,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/fushi/5.png","imgWap":"http://sale.suning.com/act/20140808/fushi/5.png","level":3,"parentId":100001177,"pcCi":"313019","seoCf":"","sort":5},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"面食类","gotoApp":"","gotoWap":"","id":100001212,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/fushi/6.png","imgWap":"http://sale.suning.com/act/20140808/fushi/6.png","level":3,"parentId":100001177,"pcCi":"313020","seoCf":"","sort":4},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"宝宝零食","gotoApp":"","gotoWap":"","id":100001214,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/fushi/7.png","imgWap":"http://sale.suning.com/act/20140808/fushi/7.png","level":3,"parentId":100001177,"pcCi":"313021","seoCf":"","sort":3},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"冲调类","gotoApp":"","gotoWap":"","id":100001218,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/fushi/8.png","imgWap":"http://sale.suning.com/act/20140808/fushi/8.png","level":3,"parentId":100001177,"pcCi":"313022","seoCf":"","sort":2},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"婴儿调味品","gotoApp":"","gotoWap":"","id":100001221,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/fushi/9.png","imgWap":"http://sale.suning.com/act/20140808/fushi/9.png","level":3,"parentId":100001177,"pcCi":"313024","seoCf":"","sort":1}],"clickCount":0,"description":"","dirName":"辅食","gotoApp":"","gotoWap":"","id":100001177,"ifShowShoppingCart":"0","imgApp":"","imgWap":"","level":2,"parentId":100001151,"pcCi":"","seoCf":"0","sort":2},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"1","children":[{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"免疫类","gotoApp":"","gotoWap":"","id":100001234,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/yyp/1.png","imgWap":"http://sale.suning.com/act/20140808/yyp/1.png","level":3,"parentId":100001232,"pcCi":"313026","seoCf":"","sort":9},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"清火开胃","gotoApp":"","gotoWap":"","id":100001235,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/yyp/2.png","imgWap":"http://sale.suning.com/act/20140808/yyp/2.png","level":3,"parentId":100001232,"pcCi":"313027","seoCf":"","sort":8},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"调节肠胃","gotoApp":"","gotoWap":"","id":100001236,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/yyp/3.png","imgWap":"http://sale.suning.com/act/20140808/yyp/3.png","level":3,"parentId":100001232,"pcCi":"313028","seoCf":"","sort":7},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"牛初乳","gotoApp":"","gotoWap":"","id":100001237,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/yyp/4.png","imgWap":"http://sale.suning.com/act/20140808/yyp/4.png","level":3,"parentId":100001232,"pcCi":"340046","seoCf":"","sort":6},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"钙铁锌","gotoApp":"","gotoWap":"","id":100001238,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/yyp/5.png","imgWap":"http://sale.suning.com/act/20140808/yyp/5.png","level":3,"parentId":100001232,"pcCi":"313030","seoCf":"","sort":5},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"维生素","gotoApp":"","gotoWap":"","id":100001239,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/yyp/6.png","imgWap":"http://sale.suning.com/act/20140808/yyp/6.png","level":3,"parentId":100001232,"pcCi":"313032","seoCf":"","sort":4},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"DHA","gotoApp":"","gotoWap":"","id":100001240,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/yyp/7.png","imgWap":"http://sale.suning.com/act/20140808/yyp/7.png","level":3,"parentId":100001232,"pcCi":"313033","seoCf":"","sort":3},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"营养素","gotoApp":"","gotoWap":"","id":100001241,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/yyp/8.png","imgWap":"http://sale.suning.com/act/20140808/yyp/8.png","level":3,"parentId":100001232,"pcCi":"340047","seoCf":"","sort":2},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"孕婴食用油","gotoApp":"","gotoWap":"","id":100001242,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/yyp/9.png","imgWap":"http://sale.suning.com/act/20140808/yyp/9.png","level":3,"parentId":100001232,"pcCi":"313034","seoCf":"","sort":1}],"clickCount":0,"description":"","dirName":"婴幼儿营养品","gotoApp":"","gotoWap":"","id":100001232,"ifShowShoppingCart":"0","imgApp":"","imgWap":"","level":2,"parentId":100001151,"pcCi":"","seoCf":"0","sort":1}],"clickCount":0,"description":"","dirName":"辅食营养","gotoApp":"","gotoWap":"","id":100001151,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140416/why20140416/02.jpg","imgWap":"http://sale.suning.com/act/20140416/why20140416/02.jpg","level":1,"parentId":99999999,"pcCi":"","seoCf":"","sort":8},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"1","children":[{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"1","children":[{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"孕婴湿巾","gotoApp":"","gotoWap":"","id":100001182,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/bbyp/2-1-7.png","imgWap":"http://sale.suning.com/act/20140808/bbyp/2-1-7.png","level":3,"parentId":100001161,"pcCi":"313108","seoCf":"","sort":1}],"clickCount":0,"description":"","dirName":"湿巾","gotoApp":"","gotoWap":"","id":100001161,"ifShowShoppingCart":"0","imgApp":"","imgWap":"","level":2,"parentId":100001160,"pcCi":"","seoCf":"","sort":8},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"1","children":[{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"奶瓶","gotoApp":"","gotoWap":"","id":100001186,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/bbyp/2-2-1.png","imgWap":"http://sale.suning.com/act/20140808/bbyp/2-2-1.png","level":3,"parentId":100001163,"pcCi":"313043","seoCf":"","sort":12},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"奶嘴","gotoApp":"","gotoWap":"","id":100001188,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/bbyp/2-2-2.png","imgWap":"http://sale.suning.com/act/20140808/bbyp/2-2-2.png","level":3,"parentId":100001163,"pcCi":"313045","seoCf":"","sort":11},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"水杯水壶","gotoApp":"","gotoWap":"","id":100001189,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/bbyp/2-2-3.png","imgWap":"http://sale.suning.com/act/20140808/bbyp/2-2-3.png","level":3,"parentId":100001163,"pcCi":"313046","seoCf":"","sort":10},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"牙胶","gotoApp":"","gotoWap":"","id":100001190,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/bbyp/2-2-4.png","imgWap":"http://sale.suning.com/act/20140808/bbyp/2-2-4.png","level":3,"parentId":100001163,"pcCi":"313051","seoCf":"","sort":9},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"餐具","gotoApp":"","gotoWap":"","id":100001191,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/bbyp/2-2-5.png","imgWap":"http://sale.suning.com/act/20140808/bbyp/2-2-5.png","level":3,"parentId":100001163,"pcCi":"313049","seoCf":"","sort":8},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"辅助配件","gotoApp":"","gotoWap":"","id":100001192,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/bbyp/2-2-6.png","imgWap":"http://sale.suning.com/act/20140808/bbyp/2-2-6.png","level":3,"parentId":100001163,"pcCi":"313047","seoCf":"","sort":7},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"保鲜容器","gotoApp":"","gotoWap":"","id":100001193,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/bbyp/2-2-7.png","imgWap":"http://sale.suning.com/act/20140808/bbyp/2-2-7.png","level":3,"parentId":100001163,"pcCi":"313053","seoCf":"","sort":6},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"BB煲","gotoApp":"","gotoWap":"","id":100001194,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/bbyp/2-2-8.png","imgWap":"http://sale.suning.com/act/20140808/bbyp/2-2-8.png","level":3,"parentId":100001163,"pcCi":"316055","seoCf":"","sort":5},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"消毒用品","gotoApp":"","gotoWap":"","id":100001195,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/bbyp/2-2-9.png","imgWap":"http://sale.suning.com/act/20140808/bbyp/2-2-9.png","level":3,"parentId":100001163,"pcCi":"316056","seoCf":"","sort":4},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"暖奶器","gotoApp":"","gotoWap":"","id":100001196,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/bbyp/2-2-10.png","imgWap":"http://sale.suning.com/act/20140808/bbyp/2-2-10.png","level":3,"parentId":100001163,"pcCi":"313056","seoCf":"","sort":3},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"调奶器","gotoApp":"","gotoWap":"","id":100001197,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/bbyp/2-2-11.png","imgWap":"http://sale.suning.com/act/20140808/bbyp/2-2-11.png","level":3,"parentId":100001163,"pcCi":"313057","seoCf":"","sort":2},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"保温用品","gotoApp":"","gotoWap":"","id":100001198,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/bbyp/2-2-12.png","imgWap":"http://sale.suning.com/act/20140808/bbyp/2-2-12.png","level":3,"parentId":100001163,"pcCi":"313058","seoCf":"","sort":1}],"clickCount":0,"description":"","dirName":"喂养用品","gotoApp":"","gotoWap":"","id":100001163,"ifShowShoppingCart":"0","imgApp":"","imgWap":"","level":2,"parentId":100001160,"pcCi":"","seoCf":"0","sort":7},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"1","children":[{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"防溢乳垫","gotoApp":"","gotoWap":"","id":100001199,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/bbyp/2-3-1.png","imgWap":"http://sale.suning.com/act/20140808/bbyp/2-3-1.png","level":3,"parentId":100001164,"pcCi":"313074","seoCf":"","sort":4},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"吸乳器","gotoApp":"","gotoWap":"","id":100001200,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/bbyp/2-3-2.png","imgWap":"http://sale.suning.com/act/20140808/bbyp/2-3-2.png","level":3,"parentId":100001164,"pcCi":"313153","seoCf":"","sort":3},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"乳头保护","gotoApp":"","gotoWap":"","id":100001201,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/bbyp/2-3-3.png","imgWap":"http://sale.suning.com/act/20140808/bbyp/2-3-3.png","level":3,"parentId":100001164,"pcCi":"313076","seoCf":"","sort":2},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"母乳存储","gotoApp":"","gotoWap":"","id":100001203,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/bbyp/2-3-4.png","imgWap":"http://sale.suning.com/act/20140808/bbyp/2-3-4.png","level":3,"parentId":100001164,"pcCi":"313077","seoCf":"","sort":1}],"clickCount":0,"description":"","dirName":"母乳喂养","gotoApp":"","gotoWap":"","id":100001164,"ifShowShoppingCart":"0","imgApp":"","imgWap":"","level":2,"parentId":100001160,"pcCi":"","seoCf":"0","sort":6},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"1","children":[{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"理发器","gotoApp":"","gotoWap":"","id":100001204,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/bbyp/2-4-1.png","imgWap":"http://sale.suning.com/act/20140808/bbyp/2-4-1.png","level":3,"parentId":100001165,"pcCi":"313068","seoCf":"","sort":9},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"浴室用品","gotoApp":"","gotoWap":"","id":100001205,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/bbyp/2-4-2.png","imgWap":"http://sale.suning.com/act/20140808/bbyp/2-4-2.png","level":3,"parentId":100001165,"pcCi":"313059","seoCf":"","sort":8},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"安全防护","gotoApp":"","gotoWap":"","id":100001207,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/bbyp/2-4-3.png","imgWap":"http://sale.suning.com/act/20140808/bbyp/2-4-3.png","level":3,"parentId":100001165,"pcCi":"313060","seoCf":"","sort":7},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"医护用品","gotoApp":"","gotoWap":"","id":100001208,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/bbyp/2-4-4.png","imgWap":"http://sale.suning.com/act/20140808/bbyp/2-4-4.png","level":3,"parentId":100001165,"pcCi":"313067","seoCf":"","sort":6},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"宝宝牙刷","gotoApp":"","gotoWap":"","id":100001210,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/bbyp/2-4-5.png","imgWap":"http://sale.suning.com/act/20140808/bbyp/2-4-5.png","level":3,"parentId":100001165,"pcCi":"313064","seoCf":"","sort":5},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"日常用品","gotoApp":"","gotoWap":"","id":100001211,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/bbyp/2-4-6.png","imgWap":"http://sale.suning.com/act/20140808/bbyp/2-4-6.png","level":3,"parentId":100001165,"pcCi":"313072","seoCf":"","sort":4},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"儿童文具","gotoApp":"","gotoWap":"","id":100001213,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/bbyp/2-4-7.png","imgWap":"http://sale.suning.com/act/20140808/bbyp/2-4-7.png","level":3,"parentId":100001165,"pcCi":"364009","seoCf":"","sort":3},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"坐便器","gotoApp":"","gotoWap":"","id":100001215,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/bbyp/2-4-8.png","imgWap":"http://sale.suning.com/act/20140808/bbyp/2-4-8.png","level":3,"parentId":100001165,"pcCi":"313065","seoCf":"","sort":2},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"日用小家电","gotoApp":"","gotoWap":"","id":100001217,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/bbyp/2-4-9.png","imgWap":"http://sale.suning.com/act/20140808/bbyp/2-4-9.png","level":3,"parentId":100001165,"pcCi":"313086","seoCf":"","sort":1}],"clickCount":0,"description":"","dirName":"日常用品","gotoApp":"","gotoWap":"","id":100001165,"ifShowShoppingCart":"0","imgApp":"","imgWap":"","level":2,"parentId":100001160,"pcCi":"","seoCf":"0","sort":5},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"1","children":[{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"套装礼盒","gotoApp":"","gotoWap":"","id":100001219,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/bbyp/2-5-1.png","imgWap":"http://sale.suning.com/act/20140808/bbyp/2-5-1.png","level":3,"parentId":100001166,"pcCi":"369503","seoCf":"","sort":9},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"婴童洁肤","gotoApp":"","gotoWap":"","id":100001220,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/bbyp/2-5-2.png","imgWap":"http://sale.suning.com/act/20140808/bbyp/2-5-2.png","level":3,"parentId":100001166,"pcCi":"347506","seoCf":"","sort":8},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"婴童护脸","gotoApp":"","gotoWap":"","id":100001222,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/bbyp/2-5-3.png","imgWap":"http://sale.suning.com/act/20140808/bbyp/2-5-3.png","level":3,"parentId":100001166,"pcCi":"313096","seoCf":"","sort":7},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"婴童护臀","gotoApp":"","gotoWap":"","id":100001223,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/bbyp/2-5-4.png","imgWap":"http://sale.suning.com/act/20140808/bbyp/2-5-4.png","level":3,"parentId":100001166,"pcCi":"313095","seoCf":"","sort":6},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"婴童护体","gotoApp":"","gotoWap":"","id":100001224,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/bbyp/2-5-5.png","imgWap":"http://sale.suning.com/act/20140808/bbyp/2-5-5.png","level":3,"parentId":100001166,"pcCi":"313094","seoCf":"","sort":5},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"鼻腔护理","gotoApp":"","gotoWap":"","id":100001225,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/bbyp/2-5-6.png","imgWap":"http://sale.suning.com/act/20140808/bbyp/2-5-6.png","level":3,"parentId":100001166,"pcCi":"313097","seoCf":"","sort":4},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"爽身防晒","gotoApp":"","gotoWap":"","id":100001226,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/bbyp/2-5-7.png","imgWap":"http://sale.suning.com/act/20140808/bbyp/2-5-7.png","level":3,"parentId":100001166,"pcCi":"347508","seoCf":"","sort":3},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"爽身驱蚊","gotoApp":"","gotoWap":"","id":100001227,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/bbyp/2-5-8.png","imgWap":"http://sale.suning.com/act/20140808/bbyp/2-5-8.png","level":3,"parentId":100001166,"pcCi":"347512","seoCf":"","sort":2},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"洗发/沐浴","gotoApp":"","gotoWap":"","id":100001228,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/bbyp/2-5-9.png","imgWap":"http://sale.suning.com/act/20140808/bbyp/2-5-9.png","level":3,"parentId":100001166,"pcCi":"313093","seoCf":"","sort":1}],"clickCount":0,"description":"","dirName":"护肤用品","gotoApp":"","gotoWap":"","id":100001166,"ifShowShoppingCart":"0","imgApp":"","imgWap":"","level":2,"parentId":100001160,"pcCi":"","seoCf":"0","sort":4},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"1","children":[{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"婴童洗衣液","gotoApp":"","gotoWap":"","id":100001230,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/bbyp/2-6-1.png","imgWap":"http://sale.suning.com/act/20140808/bbyp/2-6-1.png","level":3,"parentId":100001167,"pcCi":"313100","seoCf":"","sort":4},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"婴童洗衣皂","gotoApp":"","gotoWap":"","id":100001231,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/bbyp/2-6-2.png","imgWap":"http://sale.suning.com/act/20140808/bbyp/2-6-2.png","level":3,"parentId":100001167,"pcCi":"313099","seoCf":"","sort":3},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"婴童护理贴","gotoApp":"","gotoWap":"","id":100001233,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/bbyp/2-6-3.png","imgWap":"http://sale.suning.com/act/20140808/bbyp/2-6-3.png","level":3,"parentId":100001167,"pcCi":"347516","seoCf":"","sort":2},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"洗发/沐浴","gotoApp":"","gotoWap":"","id":100001478,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/bbyp/2-6-4.png","imgWap":"http://sale.suning.com/act/20140808/bbyp/2-6-4.png","level":3,"parentId":100001167,"pcCi":"313093","seoCf":"","sort":1}],"clickCount":0,"description":"","dirName":"洗涤用品","gotoApp":"","gotoWap":"","id":100001167,"ifShowShoppingCart":"0","imgApp":"","imgWap":"","level":2,"parentId":100001160,"pcCi":"","seoCf":"0","sort":3}],"clickCount":0,"description":"","dirName":"宝宝用品","gotoApp":"","gotoWap":"","id":100001160,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140416/why20140416/03.jpg","imgWap":"http://sale.suning.com/act/20140416/why20140416/03.jpg","level":1,"parentId":99999999,"pcCi":"","seoCf":"","sort":7},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"1","children":[{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"1","children":[{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"健身架","gotoApp":"","gotoWap":"","id":100001286,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/pinlei/4-1-1.png","imgWap":"http://sale.suning.com/act/20140808/pinlei/4-1-1.png","level":3,"parentId":100001284,"pcCi":"359004","seoCf":"","sort":9},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"益智玩具","gotoApp":"","gotoWap":"","id":100001288,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/pinlei/4-1-2.png","imgWap":"http://sale.suning.com/act/20140808/pinlei/4-1-2.png","level":3,"parentId":100001284,"pcCi":"313129","seoCf":"","sort":8},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"摇铃/床铃","gotoApp":"","gotoWap":"","id":100001290,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/pinlei/4-1-3.png","imgWap":"http://sale.suning.com/act/20140808/pinlei/4-1-3.png","level":3,"parentId":100001284,"pcCi":"313130","seoCf":"","sort":7},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"布书/挂图","gotoApp":"","gotoWap":"","id":100001293,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/pinlei/4-1-4.png","imgWap":"http://sale.suning.com/act/20140808/pinlei/4-1-4.png","level":3,"parentId":100001284,"pcCi":"313131","seoCf":"","sort":6},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"爬行/游戏垫","gotoApp":"","gotoWap":"","id":100001296,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/pinlei/4-1-5.png","imgWap":"http://sale.suning.com/act/20140808/pinlei/4-1-5.png","level":3,"parentId":100001284,"pcCi":"313133","seoCf":"","sort":5},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"婴儿游泳池","gotoApp":"","gotoWap":"","id":100001302,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/pinlei/4-1-6.png","imgWap":"http://sale.suning.com/act/20140808/pinlei/4-1-6.png","level":3,"parentId":100001284,"pcCi":"313134","seoCf":"","sort":4},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"音乐玩具","gotoApp":"","gotoWap":"","id":100001304,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/pinlei/4-1-8.png","imgWap":"http://sale.suning.com/act/20140808/pinlei/4-1-8.png","level":3,"parentId":100001284,"pcCi":"313137","seoCf":"","sort":2},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"婴儿纪念品","gotoApp":"","gotoWap":"","id":100001305,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/pinlei/4-1-9.png","imgWap":"http://sale.suning.com/act/20140808/pinlei/4-1-9.png","level":3,"parentId":100001284,"pcCi":"313138","seoCf":"","sort":1}],"clickCount":0,"description":"","dirName":"婴幼玩具","gotoApp":"","gotoWap":"","id":100001284,"ifShowShoppingCart":"0","imgApp":"","imgWap":"","level":2,"parentId":100001282,"pcCi":"","seoCf":"0","sort":7},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"1","children":[{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"毛绒公仔","gotoApp":"","gotoWap":"","id":100001313,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/pinlei/4-2-1.png","imgWap":"http://sale.suning.com/act/20140808/pinlei/4-2-1.png","level":3,"parentId":100001310,"pcCi":"313141","seoCf":"","sort":3},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"靠垫抱枕","gotoApp":"","gotoWap":"","id":100001316,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/pinlei/4-2-2.png","imgWap":"http://sale.suning.com/act/20140808/pinlei/4-2-2.png","level":3,"parentId":100001310,"pcCi":"313142","seoCf":"","sort":2},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"布艺玩具","gotoApp":"","gotoWap":"","id":100001321,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/pinlei/4-2-3.png","imgWap":"http://sale.suning.com/act/20140808/pinlei/4-2-3.png","level":3,"parentId":100001310,"pcCi":"317027","seoCf":"","sort":1}],"clickCount":0,"description":"","dirName":"毛绒玩具","gotoApp":"","gotoWap":"","id":100001310,"ifShowShoppingCart":"0","imgApp":"","imgWap":"","level":2,"parentId":100001282,"pcCi":"","seoCf":"0","sort":6},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"1","children":[{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"手工彩泥","gotoApp":"","gotoWap":"","id":100001326,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/pinlei/4-3-1.png","imgWap":"http://sale.suning.com/act/20140808/pinlei/4-3-1.png","level":3,"parentId":100001323,"pcCi":"313145","seoCf":"","sort":3},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"画笔画架","gotoApp":"","gotoWap":"","id":100001330,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/pinlei/4-3-2.png","imgWap":"http://sale.suning.com/act/20140808/pinlei/4-3-2.png","level":3,"parentId":100001323,"pcCi":"317036","seoCf":"","sort":2},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"过家家玩具","gotoApp":"","gotoWap":"","id":100001332,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/pinlei/4-3-3.png","imgWap":"http://sale.suning.com/act/20140808/pinlei/4-3-3.png","level":3,"parentId":100001323,"pcCi":"317037","seoCf":"","sort":1}],"clickCount":0,"description":"","dirName":"DIY手工/绘画","gotoApp":"","gotoWap":"","id":100001323,"ifShowShoppingCart":"0","imgApp":"","imgWap":"","level":2,"parentId":100001282,"pcCi":"","seoCf":"0","sort":5},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"1","children":[{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"堆叠积木","gotoApp":"","gotoWap":"","id":100001337,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/pinlei/4-4-1.png","imgWap":"http://sale.suning.com/act/20140808/pinlei/4-4-1.png","level":3,"parentId":100001334,"pcCi":"317043","seoCf":"","sort":5},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"拼插积木","gotoApp":"","gotoWap":"","id":100001339,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/pinlei/4-4-2.png","imgWap":"http://sale.suning.com/act/20140808/pinlei/4-4-2.png","level":3,"parentId":100001334,"pcCi":"313143","seoCf":"","sort":4},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"迷宫/拼图","gotoApp":"","gotoWap":"","id":100001342,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/pinlei/4-4-3.png","imgWap":"http://sale.suning.com/act/20140808/pinlei/4-4-3.png","level":3,"parentId":100001334,"pcCi":"317044","seoCf":"","sort":3},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"磁力棒/磁贴","gotoApp":"","gotoWap":"","id":100001344,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/pinlei/4-4-4.png","imgWap":"http://sale.suning.com/act/20140808/pinlei/4-4-4.png","level":3,"parentId":100001334,"pcCi":"317045","seoCf":"","sort":2},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"立体拼插","gotoApp":"","gotoWap":"","id":100001346,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/pinlei/4-4-5.png","imgWap":"http://sale.suning.com/act/20140808/pinlei/4-4-5.png","level":3,"parentId":100001334,"pcCi":"317046","seoCf":"","sort":1}],"clickCount":0,"description":"","dirName":"积木拼插","gotoApp":"","gotoWap":"","id":100001334,"ifShowShoppingCart":"0","imgApp":"","imgWap":"","level":2,"parentId":100001282,"pcCi":"","seoCf":"0","sort":4},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"1","children":[{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"运动户外","gotoApp":"","gotoWap":"","id":100001348,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/pinlei/4-5-1.png","imgWap":"http://sale.suning.com/act/20140808/pinlei/4-5-1.png","level":3,"parentId":100001347,"pcCi":"315670","seoCf":"","sort":6},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"绳类/球类","gotoApp":"","gotoWap":"","id":100001350,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/pinlei/4-5-2.png","imgWap":"http://sale.suning.com/act/20140808/pinlei/4-5-2.png","level":3,"parentId":100001347,"pcCi":"315677","seoCf":"","sort":5},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"轮滑/摇马","gotoApp":"","gotoWap":"","id":100001354,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/pinlei/4-5-3.png","imgWap":"http://sale.suning.com/act/20140808/pinlei/4-5-3.png","level":3,"parentId":100001347,"pcCi":"315678","seoCf":"","sort":4},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"游泳圈","gotoApp":"","gotoWap":"","id":100001357,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/pinlei/4-5-4.png","imgWap":"http://sale.suning.com/act/20140808/pinlei/4-5-4.png","level":3,"parentId":100001347,"pcCi":"317020","seoCf":"","sort":3},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"戏水玩沙","gotoApp":"","gotoWap":"","id":100001361,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/pinlei/4-5-5.png","imgWap":"http://sale.suning.com/act/20140808/pinlei/4-5-5.png","level":3,"parentId":100001347,"pcCi":"317022","seoCf":"","sort":2},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"游戏屋","gotoApp":"","gotoWap":"","id":100001363,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/pinlei/4-5-6.png","imgWap":"http://sale.suning.com/act/20140808/pinlei/4-5-6.png","level":3,"parentId":100001347,"pcCi":"317025","seoCf":"","sort":1}],"clickCount":0,"description":"","dirName":"户外玩具","gotoApp":"","gotoWap":"","id":100001347,"ifShowShoppingCart":"0","imgApp":"","imgWap":"","level":2,"parentId":100001282,"pcCi":"","seoCf":"0","sort":3},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"1","children":[{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"仿真模型","gotoApp":"","gotoWap":"","id":100001386,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/pinlei/4-6-1.png","imgWap":"http://sale.suning.com/act/20140808/pinlei/4-6-1.png","level":3,"parentId":100001385,"pcCi":"317048","seoCf":"","sort":5},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"拼装模型","gotoApp":"","gotoWap":"","id":100001387,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/pinlei/4-6-2.png","imgWap":"http://sale.suning.com/act/20140808/pinlei/4-6-2.png","level":3,"parentId":100001385,"pcCi":"317049","seoCf":"","sort":4},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"车模玩具","gotoApp":"","gotoWap":"","id":100001388,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/pinlei/4-6-3.png","imgWap":"http://sale.suning.com/act/20140808/pinlei/4-6-3.png","level":3,"parentId":100001385,"pcCi":"317051","seoCf":"","sort":3},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"变形类玩具","gotoApp":"","gotoWap":"","id":100001389,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/pinlei/4-6-4.png","imgWap":"http://sale.suning.com/act/20140808/pinlei/4-6-4.png","level":3,"parentId":100001385,"pcCi":"317053","seoCf":"","sort":2},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"兵器模型","gotoApp":"","gotoWap":"","id":100001390,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/pinlei/4-6-5.png","imgWap":"http://sale.suning.com/act/20140808/pinlei/4-6-5.png","level":3,"parentId":100001385,"pcCi":"317054","seoCf":"","sort":1}],"clickCount":0,"description":"","dirName":"模型玩具","gotoApp":"","gotoWap":"","id":100001385,"ifShowShoppingCart":"0","imgApp":"","imgWap":"","level":2,"parentId":100001282,"pcCi":"","seoCf":"0","sort":2},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"1","children":[{"advts":[],"attriCf":"solr_2225_attrId:遥控车","bigPicture":"0","categoryGoto":"3","children":[],"clickCount":0,"description":"","dirName":"遥控车","gotoApp":"","gotoWap":"","id":100001392,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/pinlei/4-7-1.png","imgWap":"http://sale.suning.com/act/20140808/pinlei/4-7-1.png","level":3,"parentId":100001391,"pcCi":"313146","seoCf":"0","sort":4},{"advts":[],"attriCf":"solr_2225_attrId:遥控飞机","bigPicture":"0","categoryGoto":"3","children":[],"clickCount":0,"description":"","dirName":"遥控飞机","gotoApp":"","gotoWap":"","id":100001393,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/pinlei/4-7-2.png","imgWap":"http://sale.suning.com/act/20140808/pinlei/4-7-2.png","level":3,"parentId":100001391,"pcCi":"313146","seoCf":"0","sort":3},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"轨道车","gotoApp":"","gotoWap":"","id":100001394,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/pinlei/4-7-3.png","imgWap":"http://sale.suning.com/act/20140808/pinlei/4-7-3.png","level":3,"parentId":100001391,"pcCi":"317031","seoCf":"","sort":2},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"电动玩具","gotoApp":"","gotoWap":"","id":100001395,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/pinlei/4-7-4.png","imgWap":"http://sale.suning.com/act/20140808/pinlei/4-7-4.png","level":3,"parentId":100001391,"pcCi":"317032","seoCf":"","sort":1}],"clickCount":0,"description":"","dirName":"遥控玩具","gotoApp":"","gotoWap":"","id":100001391,"ifShowShoppingCart":"0","imgApp":"","imgWap":"","level":2,"parentId":100001282,"pcCi":"","seoCf":"0","sort":1}],"clickCount":0,"description":"","dirName":"宝宝玩乐","gotoApp":"","gotoWap":"","id":100001282,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140416/why20140416/01.jpg","imgWap":"http://sale.suning.com/act/20140416/why20140416/01.jpg","level":1,"parentId":99999999,"pcCi":"","seoCf":"","sort":6},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"1","children":[{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"1","children":[{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"防辐射服","gotoApp":"","gotoWap":"","id":100001400,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20150413/ayy/a1.png","imgWap":"http://sale.suning.com/act/20150413/ayy/a1.png","level":3,"parentId":100001398,"pcCi":"315565","seoCf":"","sort":6},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"时尚孕装","gotoApp":"","gotoWap":"","id":100001401,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20150413/ayy/a2.png","imgWap":"http://sale.suning.com/act/20150413/ayy/a2.png","level":3,"parentId":100001398,"pcCi":"315569","seoCf":"","sort":5},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"月子服/家居服","gotoApp":"","gotoWap":"","id":100001402,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20150413/ayy/a3.png","imgWap":"http://sale.suning.com/act/20150413/ayy/a3.png","level":3,"parentId":100001398,"pcCi":"315572","seoCf":"","sort":4},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"文胸/内裤","gotoApp":"","gotoWap":"","id":100001405,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20150413/ayy/a4.png","imgWap":"http://sale.suning.com/act/20150413/ayy/a4.png","level":3,"parentId":100001398,"pcCi":"315576","seoCf":"","sort":3},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"打底裤","gotoApp":"","gotoWap":"","id":100003977,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20150413/ayy/a5.png","imgWap":"http://sale.suning.com/act/20150413/ayy/a5.png","level":3,"parentId":100001398,"pcCi":"315569","seoCf":"","sort":2},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"妈咪鞋","gotoApp":"","gotoWap":"","id":100003978,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20150413/ayy/a6.png","imgWap":"http://sale.suning.com/act/20150413/ayy/a6.png","level":3,"parentId":100001398,"pcCi":"348004","seoCf":"","sort":1}],"clickCount":0,"description":"","dirName":"孕妇服饰","gotoApp":"","gotoWap":"","id":100001398,"ifShowShoppingCart":"0","imgApp":"","imgWap":"","level":2,"parentId":100001396,"pcCi":"","seoCf":"0","sort":3},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"1","children":[{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"孕妇枕","gotoApp":"","gotoWap":"","id":100001404,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20150413/ayy/b1.png","imgWap":"http://sale.suning.com/act/20150413/ayy/b1.png","level":3,"parentId":100001403,"pcCi":"315641","seoCf":"","sort":5},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"待产包","gotoApp":"","gotoWap":"","id":100001406,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/pinlei/5-2-3.png","imgWap":"http://sale.suning.com/act/20140808/pinlei/5-2-3.png","level":3,"parentId":100001403,"pcCi":"315646","seoCf":"","sort":4},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"产后护理垫","gotoApp":"","gotoWap":"","id":100001407,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20150413/ayy/b3.png","imgWap":"http://sale.suning.com/act/20150413/ayy/b3.png","level":3,"parentId":100001403,"pcCi":"315640","seoCf":"","sort":3},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"产后塑身","gotoApp":"","gotoWap":"","id":100001408,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20150413/ayy/b4.png","imgWap":"http://sale.suning.com/act/20150413/ayy/b4.png","level":3,"parentId":100001403,"pcCi":"315585","seoCf":"","sort":2},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"卫生巾","gotoApp":"","gotoWap":"","id":100003980,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20150413/ayy/b6.png","imgWap":"http://sale.suning.com/act/20150413/ayy/b6.png","level":3,"parentId":100001403,"pcCi":"315640","seoCf":"","sort":1}],"clickCount":0,"description":"","dirName":"妈咪孕产用品","gotoApp":"","gotoWap":"","id":100001403,"ifShowShoppingCart":"0","imgApp":"","imgWap":"","level":2,"parentId":100001396,"pcCi":"315637","seoCf":"0","sort":2},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"1","children":[{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"妈咪包","gotoApp":"","gotoWap":"","id":100001410,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20150413/ayy/c1.png","imgWap":"http://sale.suning.com/act/20150413/ayy/c1.png","level":3,"parentId":100001409,"pcCi":"315656","seoCf":"","sort":3},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"背婴带","gotoApp":"","gotoWap":"","id":100001411,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20150413/ayy/c2.png","imgWap":"http://sale.suning.com/act/20150413/ayy/c2.png","level":3,"parentId":100001409,"pcCi":"315657","seoCf":"","sort":2},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"学步带","gotoApp":"","gotoWap":"","id":100001412,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/pinlei/5-3-3.png","imgWap":"http://sale.suning.com/act/20140808/pinlei/5-3-3.png","level":3,"parentId":100001409,"pcCi":"321503","seoCf":"","sort":1}],"clickCount":0,"description":"","dirName":"妈咪外出用品","gotoApp":"","gotoWap":"","id":100001409,"ifShowShoppingCart":"0","imgApp":"","imgWap":"","level":2,"parentId":100001396,"pcCi":"315653","seoCf":"0","sort":1}],"clickCount":0,"description":"","dirName":"妈妈专区","gotoApp":"","gotoWap":"","id":100001396,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140416/why20140416/04.jpg","imgWap":"http://sale.suning.com/act/20140416/why20140416/04.jpg","level":1,"parentId":99999999,"pcCi":"","seoCf":"","sort":5},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"1","children":[{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"1","children":[{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"新生儿礼盒","gotoApp":"","gotoWap":"","id":100001277,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/pinlei/6-1-1.png","imgWap":"http://sale.suning.com/act/20140808/pinlei/6-1-1.png","level":3,"parentId":100001275,"pcCi":"362007","seoCf":"","sort":6},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"婴童内衣裤","gotoApp":"","gotoWap":"","id":100001278,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/pinlei/6-1-2.png","imgWap":"http://sale.suning.com/act/20140808/pinlei/6-1-2.png","level":3,"parentId":100001275,"pcCi":"362006","seoCf":"","sort":5},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"婴童套装","gotoApp":"","gotoWap":"","id":100001279,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/pinlei/6-1-3.png","imgWap":"http://sale.suning.com/act/20140808/pinlei/6-1-3.png","level":3,"parentId":100001275,"pcCi":"369503","seoCf":"","sort":4},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"婴童外出服","gotoApp":"","gotoWap":"","id":100001281,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20150413/ayy/d4.png","imgWap":"http://sale.suning.com/act/20150413/ayy/d4.png","level":3,"parentId":100001275,"pcCi":"315061","seoCf":"","sort":3},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"食饭衫/口水巾","gotoApp":"","gotoWap":"","id":100001283,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/pinlei/6-1-5.png","imgWap":"http://sale.suning.com/act/20140808/pinlei/6-1-5.png","level":3,"parentId":100001275,"pcCi":"362008","seoCf":"","sort":2},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"肚兜/肚围","gotoApp":"","gotoWap":"","id":100001285,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/pinlei/6-1-6.png","imgWap":"http://sale.suning.com/act/20140808/pinlei/6-1-6.png","level":3,"parentId":100001275,"pcCi":"362011","seoCf":"","sort":1}],"clickCount":0,"description":"","dirName":"宝宝服饰","gotoApp":"","gotoWap":"","id":100001275,"ifShowShoppingCart":"0","imgApp":"","imgWap":"","level":2,"parentId":100001271,"pcCi":"","seoCf":"0","sort":6},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"1","children":[{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"睡袋/抱被","gotoApp":"","gotoWap":"","id":100001289,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/pinlei/6-2-1.png","imgWap":"http://sale.suning.com/act/20140808/pinlei/6-2-1.png","level":3,"parentId":100001287,"pcCi":"500341","seoCf":"","sort":6},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"枕头","gotoApp":"","gotoWap":"","id":100001291,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/pinlei/6-2-2.png","imgWap":"http://sale.suning.com/act/20140808/pinlei/6-2-2.png","level":3,"parentId":100001287,"pcCi":"161727","seoCf":"","sort":5},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"床品套件","gotoApp":"","gotoWap":"","id":100001292,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20150413/ayy/e3.png","imgWap":"http://sale.suning.com/act/20150413/ayy/e3.png","level":3,"parentId":100001287,"pcCi":"500339","seoCf":"","sort":4},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"毛毯/被褥","gotoApp":"","gotoWap":"","id":100001295,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20150413/ayy/e4.png","imgWap":"http://sale.suning.com/act/20150413/ayy/e4.png","level":3,"parentId":100001287,"pcCi":"500342","seoCf":"","sort":3},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"浴巾/毛巾","gotoApp":"","gotoWap":"","id":100001297,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20150413/ayy/e5.png","imgWap":"http://sale.suning.com/act/20150413/ayy/e5.png","level":3,"parentId":100001287,"pcCi":"500340","seoCf":"","sort":2},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"凉席/蚊帐","gotoApp":"","gotoWap":"","id":100001298,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20150413/ayy/e6.png","imgWap":"http://sale.suning.com/act/20150413/ayy/e6.png","level":3,"parentId":100001287,"pcCi":"500336","seoCf":"","sort":1}],"clickCount":0,"description":"","dirName":"宝宝寝居","gotoApp":"","gotoWap":"","id":100001287,"ifShowShoppingCart":"0","imgApp":"","imgWap":"","level":2,"parentId":100001271,"pcCi":"","seoCf":"0","sort":5},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"1","children":[{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"外套","gotoApp":"","gotoWap":"","id":100001300,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20150413/ayy/f1.png","imgWap":"http://sale.suning.com/act/20150413/ayy/f1.png","level":3,"parentId":100001299,"pcCi":"315067","seoCf":"","sort":6},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"T恤/衬衫","gotoApp":"","gotoWap":"","id":100001306,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20150413/ayy/f3.png","imgWap":"http://sale.suning.com/act/20150413/ayy/f3.png","level":3,"parentId":100001299,"pcCi":"315065","seoCf":"","sort":5},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"卫衣","gotoApp":"","gotoWap":"","id":100001307,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20150413/ayy/f4.png","imgWap":"http://sale.suning.com/act/20150413/ayy/f4.png","level":3,"parentId":100001299,"pcCi":"315066","seoCf":"","sort":4},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"裤子","gotoApp":"","gotoWap":"","id":100001308,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/pinlei/6-3-5.png","imgWap":"http://sale.suning.com/act/20140808/pinlei/6-3-5.png","level":3,"parentId":100001299,"pcCi":"315063","seoCf":"","sort":3},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"裙子","gotoApp":"","gotoWap":"","id":100001309,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/pinlei/6-3-6.png","imgWap":"http://sale.suning.com/act/20140808/pinlei/6-3-6.png","level":3,"parentId":100001299,"pcCi":"362012","seoCf":"","sort":2},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"亲子装","gotoApp":"","gotoWap":"","id":100003981,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20150413/ayy/f7.png","imgWap":"http://sale.suning.com/act/20150413/ayy/f7.png","level":3,"parentId":100001299,"pcCi":"315060","seoCf":"","sort":1}],"clickCount":0,"description":"","dirName":"童装","gotoApp":"","gotoWap":"","id":100001299,"ifShowShoppingCart":"0","imgApp":"","imgWap":"","level":2,"parentId":100001271,"pcCi":"","seoCf":"0","sort":4},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"1","children":[{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"学步鞋","gotoApp":"","gotoWap":"","id":100001314,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/pinlei/6-4-1.png","imgWap":"http://sale.suning.com/act/20140808/pinlei/6-4-1.png","level":3,"parentId":100001312,"pcCi":"341071","seoCf":"","sort":6},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"运动鞋","gotoApp":"","gotoWap":"","id":100001315,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/pinlei/6-4-2.png","imgWap":"http://sale.suning.com/act/20140808/pinlei/6-4-2.png","level":3,"parentId":100001312,"pcCi":"315082","seoCf":"","sort":5},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"皮鞋","gotoApp":"","gotoWap":"","id":100001317,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/pinlei/6-4-3.png","imgWap":"http://sale.suning.com/act/20140808/pinlei/6-4-3.png","level":3,"parentId":100001312,"pcCi":"315085","seoCf":"","sort":4},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"拖鞋","gotoApp":"","gotoWap":"","id":100001318,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20150413/ayy/g4.png","imgWap":"http://sale.suning.com/act/20150413/ayy/g4.png","level":3,"parentId":100001312,"pcCi":"315086","seoCf":"","sort":3},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"凉鞋","gotoApp":"","gotoWap":"","id":100001320,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/pinlei/6-4-6.png","imgWap":"http://sale.suning.com/act/20140808/pinlei/6-4-6.png","level":3,"parentId":100001312,"pcCi":"315083","seoCf":"","sort":2},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"婴儿鞋","gotoApp":"","gotoWap":"","id":100001322,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20150413/ayy/g8.png","imgWap":"http://sale.suning.com/act/20150413/ayy/g8.png","level":3,"parentId":100001312,"pcCi":"315056","seoCf":"","sort":1}],"clickCount":0,"description":"","dirName":"童鞋","gotoApp":"","gotoWap":"","id":100001312,"ifShowShoppingCart":"0","imgApp":"","imgWap":"","level":2,"parentId":100001271,"pcCi":"","seoCf":"0","sort":3},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"1","children":[{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"布尿裤","gotoApp":"","gotoWap":"","id":100001325,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/pinlei/6-5-1.png","imgWap":"http://sale.suning.com/act/20140808/pinlei/6-5-1.png","level":3,"parentId":100001324,"pcCi":"500335","seoCf":"","sort":4},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"隔尿垫","gotoApp":"","gotoWap":"","id":100001327,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/pinlei/6-5-2.png","imgWap":"http://sale.suning.com/act/20140808/pinlei/6-5-2.png","level":3,"parentId":100001324,"pcCi":"500334","seoCf":"","sort":3}],"clickCount":0,"description":"","dirName":"隔尿用品","gotoApp":"","gotoWap":"","id":100001324,"ifShowShoppingCart":"0","imgApp":"","imgWap":"","level":2,"parentId":100001271,"pcCi":"","seoCf":"0","sort":2},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"1","children":[{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"帽子/手套/围巾","gotoApp":"","gotoWap":"","id":100003983,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20150413/ayy/h1.png","imgWap":"http://sale.suning.com/act/20150413/ayy/h1.png","level":3,"parentId":100003982,"pcCi":"341078","seoCf":"","sort":3},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"袜子","gotoApp":"","gotoWap":"","id":100003984,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20150413/ayy/h2.png","imgWap":"http://sale.suning.com/act/20150413/ayy/h2.png","level":3,"parentId":100003982,"pcCi":"341077","seoCf":"","sort":2},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"内裤","gotoApp":"","gotoWap":"","id":100003985,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20150413/ayy/h3.png","imgWap":"http://sale.suning.com/act/20150413/ayy/h3.png","level":3,"parentId":100003982,"pcCi":"315054","seoCf":"","sort":1}],"clickCount":0,"description":"","dirName":"配件","gotoApp":"","gotoWap":"","id":100003982,"ifShowShoppingCart":"0","imgApp":"","imgWap":"","level":2,"parentId":100001271,"pcCi":"","seoCf":"0","sort":1}],"clickCount":0,"description":"","dirName":"童装童鞋","gotoApp":"","gotoWap":"","id":100001271,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140416/why20140416/05.jpg","imgWap":"http://sale.suning.com/act/20140416/why20140416/05.jpg","level":1,"parentId":99999999,"pcCi":"","seoCf":"","sort":4},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"1","children":[{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"1","children":[{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"孕产育儿","gotoApp":"","gotoWap":"","id":100004503,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20150624/tushu/a1.jpg","imgWap":"http://sale.suning.com/act/20150624/tushu/a1.jpg","level":3,"parentId":100004502,"pcCi":"262509","seoCf":"","sort":21},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"家庭教育","gotoApp":"","gotoWap":"","id":100004504,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20150624/tushu/a2.jpg","imgWap":"http://sale.suning.com/act/20150624/tushu/a2.jpg","level":3,"parentId":100004502,"pcCi":"262510","seoCf":"","sort":20},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"减肥瘦身","gotoApp":"","gotoWap":"","id":100004505,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20150624/tushu/a3.jpg","imgWap":"http://sale.suning.com/act/20150624/tushu/a3.jpg","level":3,"parentId":100004502,"pcCi":"264274","seoCf":"","sort":19},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"0-2岁","gotoApp":"","gotoWap":"","id":100004506,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20150624/tushu/b1.jpg","imgWap":"http://sale.suning.com/act/20150624/tushu/b1.jpg","level":3,"parentId":100004502,"pcCi":"264322","seoCf":"","sort":18},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"3-6岁","gotoApp":"","gotoWap":"","id":100004507,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20150624/tushu/b2.jpg","imgWap":"http://sale.suning.com/act/20150624/tushu/b2.jpg","level":3,"parentId":100004502,"pcCi":"264320","seoCf":"","sort":17},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"7-10岁","gotoApp":"","gotoWap":"","id":100004508,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20150624/tushu/b3.jpg","imgWap":"http://sale.suning.com/act/20150624/tushu/b3.jpg","level":3,"parentId":100004502,"pcCi":"264319","seoCf":"","sort":16},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"11-14岁","gotoApp":"","gotoWap":"","id":100004509,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20150624/tushu/c1.jpg","imgWap":"http://sale.suning.com/act/20150624/tushu/c1.jpg","level":3,"parentId":100004502,"pcCi":"264321","seoCf":"","sort":15},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"绘本","gotoApp":"","gotoWap":"","id":100004510,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20150624/tushu/c2.jpg","imgWap":"http://sale.suning.com/act/20150624/tushu/c2.jpg","level":3,"parentId":100004502,"pcCi":"264313","seoCf":"","sort":14},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"中国儿童文学","gotoApp":"","gotoWap":"","id":100004511,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20150624/tushu/c3.jpg","imgWap":"http://sale.suning.com/act/20150624/tushu/c3.jpg","level":3,"parentId":100004502,"pcCi":"264306","seoCf":"","sort":13},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"外国儿童文学","gotoApp":"","gotoWap":"","id":100004512,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20150624/tushu/d1.jpg","imgWap":"http://sale.suning.com/act/20150624/tushu/d1.jpg","level":3,"parentId":100004502,"pcCi":"264312","seoCf":"","sort":12},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"幼儿启蒙","gotoApp":"","gotoWap":"","id":100004513,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20150624/tushu/d2.jpg","imgWap":"http://sale.suning.com/act/20150624/tushu/d2.jpg","level":3,"parentId":100004502,"pcCi":"264308","seoCf":"","sort":11},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"婴儿读物","gotoApp":"","gotoWap":"","id":100004514,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20150624/tushu/d3.jpg","imgWap":"http://sale.suning.com/act/20150624/tushu/d3.jpg","level":3,"parentId":100004502,"pcCi":"264309","seoCf":"","sort":10},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"益智游戏","gotoApp":"","gotoWap":"","id":100004515,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20150624/tushu/e1.jpg","imgWap":"http://sale.suning.com/act/20150624/tushu/e1.jpg","level":3,"parentId":100004502,"pcCi":"264310","seoCf":"","sort":9},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"玩具书","gotoApp":"","gotoWap":"","id":100004516,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20150624/tushu/e2.jpg","imgWap":"http://sale.suning.com/act/20150624/tushu/e2.jpg","level":3,"parentId":100004502,"pcCi":"264311","seoCf":"","sort":8},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"图画书","gotoApp":"","gotoWap":"","id":100004517,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20150624/tushu/e3.jpg","imgWap":"http://sale.suning.com/act/20150624/tushu/e3.jpg","level":3,"parentId":100004502,"pcCi":"264313","seoCf":"","sort":7},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"励志成长","gotoApp":"","gotoWap":"","id":100004518,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20150624/tushu/f1.jpg","imgWap":"http://sale.suning.com/act/20150624/tushu/f1.jpg","level":3,"parentId":100004502,"pcCi":"264316","seoCf":"","sort":6},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"少儿科普","gotoApp":"","gotoWap":"","id":100004519,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20150624/tushu/f2.jpg","imgWap":"http://sale.suning.com/act/20150624/tushu/f2.jpg","level":3,"parentId":100004502,"pcCi":"264378","seoCf":"","sort":5},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"卡通动漫","gotoApp":"","gotoWap":"","id":100004520,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20150624/tushu/f3.jpg","imgWap":"http://sale.suning.com/act/20150624/tushu/f3.jpg","level":3,"parentId":100004502,"pcCi":"264318","seoCf":"","sort":4},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"少儿期刊","gotoApp":"","gotoWap":"","id":100004521,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20150624/tushu/g1.jpg","imgWap":"http://sale.suning.com/act/20150624/tushu/g1.jpg","level":3,"parentId":100004502,"pcCi":"383511","seoCf":"","sort":3},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"少儿原版书","gotoApp":"","gotoWap":"","id":100004522,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20150624/tushu/g2.jpg","imgWap":"http://sale.suning.com/act/20150624/tushu/g2.jpg","level":3,"parentId":100004502,"pcCi":"264314","seoCf":"","sort":2},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"少儿英语","gotoApp":"","gotoWap":"","id":100004523,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20150624/tushu/g3.jpg","imgWap":"http://sale.suning.com/act/20150624/tushu/g3.jpg","level":3,"parentId":100004502,"pcCi":"264315","seoCf":"","sort":1}],"clickCount":0,"description":"","dirName":"图书天地","gotoApp":"","gotoWap":"","id":100004502,"ifShowShoppingCart":"0","imgApp":"","imgWap":"","level":2,"parentId":100001432,"pcCi":"","seoCf":"0","sort":1}],"clickCount":0,"description":"","dirName":"图书天地","gotoApp":"","gotoWap":"","id":100001432,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140428/liuz/1.png","imgWap":"http://sale.suning.com/act/20140428/liuz/1.png","level":1,"parentId":99999999,"pcCi":"","seoCf":"","sort":3},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"1","children":[{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"1","children":[{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"婴儿推车","gotoApp":"","gotoWap":"","id":100004029,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20150429/img0429/a1.jpg","imgWap":"http://sale.suning.com/act/20150429/img0429/a1.jpg","level":3,"parentId":100004026,"pcCi":"315121","seoCf":"","sort":6},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"学步车","gotoApp":"","gotoWap":"","id":100004030,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20150429/img0429/a2.jpg","imgWap":"http://sale.suning.com/act/20150429/img0429/a2.jpg","level":3,"parentId":100004026,"pcCi":"315125","seoCf":"","sort":5},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"健身车","gotoApp":"","gotoWap":"","id":100004031,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20150429/img0429/a3.jpg","imgWap":"http://sale.suning.com/act/20150429/img0429/a3.jpg","level":3,"parentId":100004026,"pcCi":"359503","seoCf":"","sort":4},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"电动车","gotoApp":"","gotoWap":"","id":100004032,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20150429/img0429/a4.jpg","imgWap":"http://sale.suning.com/act/20150429/img0429/a4.jpg","level":3,"parentId":100004026,"pcCi":"315122","seoCf":"","sort":3},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"自行车","gotoApp":"","gotoWap":"","id":100004033,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20150429/img0429/a5.jpg","imgWap":"http://sale.suning.com/act/20150429/img0429/a5.jpg","level":3,"parentId":100004026,"pcCi":"315123","seoCf":"","sort":2},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"三轮车","gotoApp":"","gotoWap":"","id":100004034,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20150429/img0429/a6.jpg","imgWap":"http://sale.suning.com/act/20150429/img0429/a6.jpg","level":3,"parentId":100004026,"pcCi":"315124","seoCf":"","sort":1}],"clickCount":0,"description":"","dirName":"婴儿车","gotoApp":"","gotoWap":"","id":100004026,"ifShowShoppingCart":"0","imgApp":"","imgWap":"","level":2,"parentId":100004025,"pcCi":"","seoCf":"0","sort":3},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"1","children":[{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"婴儿床","gotoApp":"","gotoWap":"","id":100004035,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20150429/img0429/a7.jpg","imgWap":"http://sale.suning.com/act/20150429/img0429/a7.jpg","level":3,"parentId":100004027,"pcCi":"331003","seoCf":"","sort":3},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"餐椅","gotoApp":"","gotoWap":"","id":100004036,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20150429/img0429/a8.jpg","imgWap":"http://sale.suning.com/act/20150429/img0429/a8.jpg","level":3,"parentId":100004027,"pcCi":"315131","seoCf":"","sort":2},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"摇椅","gotoApp":"","gotoWap":"","id":100004037,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20150429/img0429/a9.jpg","imgWap":"http://sale.suning.com/act/20150429/img0429/a9.jpg","level":3,"parentId":100004027,"pcCi":"315134","seoCf":"","sort":1}],"clickCount":0,"description":"","dirName":"婴儿床椅","gotoApp":"","gotoWap":"","id":100004027,"ifShowShoppingCart":"0","imgApp":"","imgWap":"","level":2,"parentId":100004025,"pcCi":"","seoCf":"0","sort":2},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"1","children":[{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"安全座椅","gotoApp":"","gotoWap":"","id":100004038,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20150429/img0429/a10.jpg","imgWap":"http://sale.suning.com/act/20150429/img0429/a10.jpg","level":3,"parentId":100004028,"pcCi":"500314","seoCf":"","sort":1}],"clickCount":0,"description":"","dirName":"安全座椅","gotoApp":"","gotoWap":"","id":100004028,"ifShowShoppingCart":"0","imgApp":"","imgWap":"","level":2,"parentId":100004025,"pcCi":"","seoCf":"0","sort":1}],"clickCount":0,"description":"","dirName":"童车童床","gotoApp":"","gotoWap":"","id":100004025,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20150429/img0429/a1.jpg","imgWap":"http://sale.suning.com/act/20150429/img0429/a1.jpg","level":1,"parentId":99999999,"pcCi":"","seoCf":"","sort":2}]
* status : 200
*/
private String message;
private int status;
private List<RsBean> rs;
public String getMessage() {
return message;
}
public void setMessage(String message) {
this.message = message;
}
public int getStatus() {
return status;
}
public void setStatus(int status) {
this.status = status;
}
public List<RsBean> getRs() {
return rs;
}
public void setRs(List<RsBean> rs) {
this.rs = rs;
}
public static class RsBean {
/**
* advts : []
* attriCf :
* bigPicture : 0
* categoryGoto : 1
* children : [{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"1","children":[{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"一段奶粉","gotoApp":"","gotoWap":"","id":100007005,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/milk/1.png","imgWap":"http://sale.suning.com/act/20140808/milk/1.png","level":3,"parentId":100007004,"pcCi":"313006","seoCf":"","sort":9},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"二段奶粉","gotoApp":"","gotoWap":"","id":100007006,"ifShowShoppingCart":"0","imgApp":"http://image4.suning.cn/uimg/cms/img/145630533828587812.jpg","imgWap":"http://image4.suning.cn/uimg/cms/img/145630533828587812.jpg","level":3,"parentId":100007004,"pcCi":"313007","seoCf":"","sort":8},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"三段奶粉","gotoApp":"","gotoWap":"","id":100007007,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/milk/3.png","imgWap":"http://sale.suning.com/act/20140808/milk/3.png","level":3,"parentId":100007004,"pcCi":"313008","seoCf":"","sort":7},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"四段奶粉","gotoApp":"","gotoWap":"","id":100007008,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/milk/4.png","imgWap":"http://sale.suning.com/act/20140808/milk/4.png","level":3,"parentId":100007004,"pcCi":"313009","seoCf":"","sort":6},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"五段奶粉","gotoApp":"","gotoWap":"","id":100007009,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/milk/5.png","imgWap":"http://sale.suning.com/act/20140808/milk/5.png","level":3,"parentId":100007004,"pcCi":"313010","seoCf":"","sort":5},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"特配奶粉","gotoApp":"","gotoWap":"","id":100007010,"ifShowShoppingCart":"0","imgApp":"http://image1.suning.cn/uimg/cms/img/145891016809665814.jpg","imgWap":"http://image1.suning.cn/uimg/cms/img/145891016809665814.jpg","level":3,"parentId":100007004,"pcCi":"313012","seoCf":"","sort":4},{"advts":[],"attriCf":"s54206a:E7BE8AE5A5B6E7B289","bigPicture":"0","categoryGoto":"3","children":[],"clickCount":0,"description":"","dirName":"羊奶粉","gotoApp":"","gotoWap":"","id":100007011,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/milk/7.png","imgWap":"http://sale.suning.com/act/20140808/milk/7.png","level":3,"parentId":100007004,"pcCi":"313005","seoCf":"123239","sort":3},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"妈咪奶粉","gotoApp":"","gotoWap":"","id":100007012,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/milk/8.png","imgWap":"http://sale.suning.com/act/20140808/milk/8.png","level":3,"parentId":100007004,"pcCi":"320504","seoCf":"","sort":2},{"advts":[],"attriCf":"s54205a:E58E9FE8A385E8BF9BE58FA3","bigPicture":"0","categoryGoto":"3","children":[],"clickCount":0,"description":"","dirName":"原装进口","gotoApp":"","gotoWap":"","id":100007013,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/milk/9.png","imgWap":"http://sale.suning.com/act/20140808/milk/9.png","level":3,"parentId":100007004,"pcCi":"313005","seoCf":"123237","sort":1}],"clickCount":0,"description":"","dirName":"奶粉","gotoApp":"","gotoWap":"","id":100007004,"ifShowShoppingCart":"0","imgApp":"","imgWap":"","level":2,"parentId":100007001,"pcCi":"","seoCf":"","sort":2},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"1","children":[{"advts":[],"attriCf":"bnf:E99B85E59FB9284162626F747429","bigPicture":"0","categoryGoto":"3","children":[],"clickCount":0,"description":"","dirName":"雅培","gotoApp":"","gotoWap":"","id":100007203,"ifShowShoppingCart":"0","imgApp":"http://image3.suning.cn/uimg/cms/img/146070741932497822.jpg","imgWap":"http://image3.suning.cn/uimg/cms/img/146070741932497822.jpg","level":3,"parentId":100007015,"pcCi":"313005","seoCf":"11196","sort":9},{"advts":[],"attriCf":"bnf:E7BE8EE8B59EE887A3284D656164204A6F686E736F6E29","bigPicture":"0","categoryGoto":"3","children":[],"clickCount":0,"description":"","dirName":"美赞臣","gotoApp":"","gotoWap":"","id":100007018,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20150910/2056/meizanchen.jpg","imgWap":"http://sale.suning.com/act/20150910/2056/meizanchen.jpg","level":3,"parentId":100007015,"pcCi":"313005","seoCf":"51312","sort":8},{"advts":[],"attriCf":"bnf:E7BE8EE7B4A0E4BDB3E584BF28467269736F29","bigPicture":"0","categoryGoto":"3","children":[],"clickCount":0,"description":"","dirName":"美素佳儿","gotoApp":"","gotoWap":"","id":100007016,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20150910/2056/meisu.jpg","imgWap":"http://sale.suning.com/act/20150910/2056/meisu.jpg","level":3,"parentId":100007015,"pcCi":"313005","seoCf":"43614","sort":7},{"advts":[],"attriCf":"bnf:E99B80E5B7A2284E6573746C6529","bigPicture":"0","categoryGoto":"3","children":[],"clickCount":0,"description":"","dirName":"雀巢","gotoApp":"","gotoWap":"","id":100007017,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20150910/2056/quechao.jpg","imgWap":"http://sale.suning.com/act/20150910/2056/quechao.jpg","level":3,"parentId":100007015,"pcCi":"313005","seoCf":"42301","sort":6},{"advts":[],"attriCf":"bnf:E7BE8EE7B4A0E4BDB3E584BF28467269736F29","bigPicture":"0","categoryGoto":"3","children":[],"clickCount":0,"description":"","dirName":"荷兰美素","gotoApp":"","gotoWap":"","id":100007022,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20150915/1711/meisu.jpg","imgWap":"http://sale.suning.com/act/20150915/1711/meisu.jpg","level":3,"parentId":100007015,"pcCi":"313005","seoCf":"43614","sort":5},{"advts":[],"attriCf":"bnf:E683A0E6B08F28577965746829","bigPicture":"0","categoryGoto":"3","children":[],"clickCount":0,"description":"","dirName":"惠氏","gotoApp":"","gotoWap":"","id":100007019,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20150910/2056/huishi.jpg","imgWap":"http://sale.suning.com/act/20150910/2056/huishi.jpg","level":3,"parentId":100007015,"pcCi":"313005","seoCf":"19645","sort":4},{"advts":[],"attriCf":"bnf:E788B1E4BB96E7BE8E28617074616D696C29","bigPicture":"0","categoryGoto":"3","children":[],"clickCount":0,"description":"","dirName":"爱他美","gotoApp":"","gotoWap":"","id":100007020,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20150915/1711/aitamei.jpg","imgWap":"http://sale.suning.com/act/20150915/1711/aitamei.jpg","level":3,"parentId":100007015,"pcCi":"313005","seoCf":"21541","sort":3},{"advts":[],"attriCf":"bnf:E88BB1E59BBDE7899BE6A08F28436F77204761746529","bigPicture":"0","categoryGoto":"3","children":[],"clickCount":0,"description":"","dirName":"牛栏","gotoApp":"","gotoWap":"","id":100007021,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20150915/1711/niulan.jpg","imgWap":"http://sale.suning.com/act/20150915/1711/niulan.jpg","level":3,"parentId":100007015,"pcCi":"313005","seoCf":"47753","sort":2},{"advts":[],"attriCf":"bnf:E9A39EE9B9A4284649524D555329","bigPicture":"0","categoryGoto":"3","children":[],"clickCount":0,"description":"","dirName":"飞鹤","gotoApp":"","gotoWap":"","id":100007204,"ifShowShoppingCart":"0","imgApp":"http://image3.suning.cn/uimg/cms/img/146077137953313964.jpg","imgWap":"http://image3.suning.cn/uimg/cms/img/146077137953313964.jpg","level":3,"parentId":100007015,"pcCi":"313005","seoCf":"40460","sort":1}],"clickCount":0,"description":"","dirName":"奶粉品牌","gotoApp":"","gotoWap":"","id":100007015,"ifShowShoppingCart":"0","imgApp":"","imgWap":"","level":2,"parentId":100007001,"pcCi":"","seoCf":"","sort":1}]
* clickCount : 0
* description :
* dirName : 宝宝奶粉
* gotoApp :
* gotoWap :
* id : 100007001
* ifShowShoppingCart : 0
* imgApp :
* imgWap :
* level : 1
* parentId : 99999999
* pcCi :
* seoCf :
* sort : 11
*/
private String attriCf;
private String bigPicture;
private String categoryGoto;
private int clickCount;
private String description;
private String dirName;
private String gotoApp;
private String gotoWap;
private int id;
private String ifShowShoppingCart;
private String imgApp;
private String imgWap;
private int level;
private int parentId;
private String pcCi;
private String seoCf;
private int sort;
private List<?> advts;
private List<ChildrenBeanX> children;
public String getAttriCf() {
return attriCf;
}
public void setAttriCf(String attriCf) {
this.attriCf = attriCf;
}
public String getBigPicture() {
return bigPicture;
}
public void setBigPicture(String bigPicture) {
this.bigPicture = bigPicture;
}
public String getCategoryGoto() {
return categoryGoto;
}
public void setCategoryGoto(String categoryGoto) {
this.categoryGoto = categoryGoto;
}
public int getClickCount() {
return clickCount;
}
public void setClickCount(int clickCount) {
this.clickCount = clickCount;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public String getDirName() {
return dirName;
}
public void setDirName(String dirName) {
this.dirName = dirName;
}
public String getGotoApp() {
return gotoApp;
}
public void setGotoApp(String gotoApp) {
this.gotoApp = gotoApp;
}
public String getGotoWap() {
return gotoWap;
}
public void setGotoWap(String gotoWap) {
this.gotoWap = gotoWap;
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getIfShowShoppingCart() {
return ifShowShoppingCart;
}
public void setIfShowShoppingCart(String ifShowShoppingCart) {
this.ifShowShoppingCart = ifShowShoppingCart;
}
public String getImgApp() {
return imgApp;
}
public void setImgApp(String imgApp) {
this.imgApp = imgApp;
}
public String getImgWap() {
return imgWap;
}
public void setImgWap(String imgWap) {
this.imgWap = imgWap;
}
public int getLevel() {
return level;
}
public void setLevel(int level) {
this.level = level;
}
public int getParentId() {
return parentId;
}
public void setParentId(int parentId) {
this.parentId = parentId;
}
public String getPcCi() {
return pcCi;
}
public void setPcCi(String pcCi) {
this.pcCi = pcCi;
}
public String getSeoCf() {
return seoCf;
}
public void setSeoCf(String seoCf) {
this.seoCf = seoCf;
}
public int getSort() {
return sort;
}
public void setSort(int sort) {
this.sort = sort;
}
public List<?> getAdvts() {
return advts;
}
public void setAdvts(List<?> advts) {
this.advts = advts;
}
public List<ChildrenBeanX> getChildren() {
return children;
}
public void setChildren(List<ChildrenBeanX> children) {
this.children = children;
}
public static class ChildrenBeanX {
/**
* advts : []
* attriCf :
* bigPicture : 0
* categoryGoto : 1
* children : [{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"一段奶粉","gotoApp":"","gotoWap":"","id":100007005,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/milk/1.png","imgWap":"http://sale.suning.com/act/20140808/milk/1.png","level":3,"parentId":100007004,"pcCi":"313006","seoCf":"","sort":9},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"二段奶粉","gotoApp":"","gotoWap":"","id":100007006,"ifShowShoppingCart":"0","imgApp":"http://image4.suning.cn/uimg/cms/img/145630533828587812.jpg","imgWap":"http://image4.suning.cn/uimg/cms/img/145630533828587812.jpg","level":3,"parentId":100007004,"pcCi":"313007","seoCf":"","sort":8},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"三段奶粉","gotoApp":"","gotoWap":"","id":100007007,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/milk/3.png","imgWap":"http://sale.suning.com/act/20140808/milk/3.png","level":3,"parentId":100007004,"pcCi":"313008","seoCf":"","sort":7},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"四段奶粉","gotoApp":"","gotoWap":"","id":100007008,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/milk/4.png","imgWap":"http://sale.suning.com/act/20140808/milk/4.png","level":3,"parentId":100007004,"pcCi":"313009","seoCf":"","sort":6},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"五段奶粉","gotoApp":"","gotoWap":"","id":100007009,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/milk/5.png","imgWap":"http://sale.suning.com/act/20140808/milk/5.png","level":3,"parentId":100007004,"pcCi":"313010","seoCf":"","sort":5},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"特配奶粉","gotoApp":"","gotoWap":"","id":100007010,"ifShowShoppingCart":"0","imgApp":"http://image1.suning.cn/uimg/cms/img/145891016809665814.jpg","imgWap":"http://image1.suning.cn/uimg/cms/img/145891016809665814.jpg","level":3,"parentId":100007004,"pcCi":"313012","seoCf":"","sort":4},{"advts":[],"attriCf":"s54206a:E7BE8AE5A5B6E7B289","bigPicture":"0","categoryGoto":"3","children":[],"clickCount":0,"description":"","dirName":"羊奶粉","gotoApp":"","gotoWap":"","id":100007011,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/milk/7.png","imgWap":"http://sale.suning.com/act/20140808/milk/7.png","level":3,"parentId":100007004,"pcCi":"313005","seoCf":"123239","sort":3},{"advts":[],"attriCf":"","bigPicture":"0","categoryGoto":"2","children":[],"clickCount":0,"description":"","dirName":"妈咪奶粉","gotoApp":"","gotoWap":"","id":100007012,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/milk/8.png","imgWap":"http://sale.suning.com/act/20140808/milk/8.png","level":3,"parentId":100007004,"pcCi":"320504","seoCf":"","sort":2},{"advts":[],"attriCf":"s54205a:E58E9FE8A385E8BF9BE58FA3","bigPicture":"0","categoryGoto":"3","children":[],"clickCount":0,"description":"","dirName":"原装进口","gotoApp":"","gotoWap":"","id":100007013,"ifShowShoppingCart":"0","imgApp":"http://sale.suning.com/act/20140808/milk/9.png","imgWap":"http://sale.suning.com/act/20140808/milk/9.png","level":3,"parentId":100007004,"pcCi":"313005","seoCf":"123237","sort":1}]
* clickCount : 0
* description :
* dirName : 奶粉
* gotoApp :
* gotoWap :
* id : 100007004
* ifShowShoppingCart : 0
* imgApp :
* imgWap :
* level : 2
* parentId : 100007001
* pcCi :
* seoCf :
* sort : 2
*/
private String attriCf;
private String bigPicture;
private String categoryGoto;
private int clickCount;
private String description;
private String dirName;
private String gotoApp;
private String gotoWap;
private int id;
private String ifShowShoppingCart;
private String imgApp;
private String imgWap;
private int level;
private int parentId;
private String pcCi;
private String seoCf;
private int sort;
private List<?> advts;
private List<ChildrenBean> children;
public String getAttriCf() {
return attriCf;
}
public void setAttriCf(String attriCf) {
this.attriCf = attriCf;
}
public String getBigPicture() {
return bigPicture;
}
public void setBigPicture(String bigPicture) {
this.bigPicture = bigPicture;
}
public String getCategoryGoto() {
return categoryGoto;
}
public void setCategoryGoto(String categoryGoto) {
this.categoryGoto = categoryGoto;
}
public int getClickCount() {
return clickCount;
}
public void setClickCount(int clickCount) {
this.clickCount = clickCount;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public String getDirName() {
return dirName;
}
public void setDirName(String dirName) {
this.dirName = dirName;
}
public String getGotoApp() {
return gotoApp;
}
public void setGotoApp(String gotoApp) {
this.gotoApp = gotoApp;
}
public String getGotoWap() {
return gotoWap;
}
public void setGotoWap(String gotoWap) {
this.gotoWap = gotoWap;
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getIfShowShoppingCart() {
return ifShowShoppingCart;
}
public void setIfShowShoppingCart(String ifShowShoppingCart) {
this.ifShowShoppingCart = ifShowShoppingCart;
}
public String getImgApp() {
return imgApp;
}
public void setImgApp(String imgApp) {
this.imgApp = imgApp;
}
public String getImgWap() {
return imgWap;
}
public void setImgWap(String imgWap) {
this.imgWap = imgWap;
}
public int getLevel() {
return level;
}
public void setLevel(int level) {
this.level = level;
}
public int getParentId() {
return parentId;
}
public void setParentId(int parentId) {
this.parentId = parentId;
}
public String getPcCi() {
return pcCi;
}
public void setPcCi(String pcCi) {
this.pcCi = pcCi;
}
public String getSeoCf() {
return seoCf;
}
public void setSeoCf(String seoCf) {
this.seoCf = seoCf;
}
public int getSort() {
return sort;
}
public void setSort(int sort) {
this.sort = sort;
}
public List<?> getAdvts() {
return advts;
}
public void setAdvts(List<?> advts) {
this.advts = advts;
}
public List<ChildrenBean> getChildren() {
return children;
}
public void setChildren(List<ChildrenBean> children) {
this.children = children;
}
public static class ChildrenBean {
/**
* advts : []
* attriCf :
* bigPicture : 0
* categoryGoto : 2
* children : []
* clickCount : 0
* description :
* dirName : 一段奶粉
* gotoApp :
* gotoWap :
* id : 100007005
* ifShowShoppingCart : 0
* imgApp : http://sale.suning.com/act/20140808/milk/1.png
* imgWap : http://sale.suning.com/act/20140808/milk/1.png
* level : 3
* parentId : 100007004
* pcCi : 313006
* seoCf :
* sort : 9
*/
private String attriCf;
private String bigPicture;
private String categoryGoto;
private int clickCount;
private String description;
private String dirName;
private String gotoApp;
private String gotoWap;
private int id;
private String ifShowShoppingCart;
private String imgApp;
private String imgWap;
private int level;
private int parentId;
private String pcCi;
private String seoCf;
private int sort;
private List<?> advts;
private List<?> children;
public String getAttriCf() {
return attriCf;
}
public void setAttriCf(String attriCf) {
this.attriCf = attriCf;
}
public String getBigPicture() {
return bigPicture;
}
public void setBigPicture(String bigPicture) {
this.bigPicture = bigPicture;
}
public String getCategoryGoto() {
return categoryGoto;
}
public void setCategoryGoto(String categoryGoto) {
this.categoryGoto = categoryGoto;
}
public int getClickCount() {
return clickCount;
}
public void setClickCount(int clickCount) {
this.clickCount = clickCount;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public String getDirName() {
return dirName;
}
public void setDirName(String dirName) {
this.dirName = dirName;
}
public String getGotoApp() {
return gotoApp;
}
public void setGotoApp(String gotoApp) {
this.gotoApp = gotoApp;
}
public String getGotoWap() {
return gotoWap;
}
public void setGotoWap(String gotoWap) {
this.gotoWap = gotoWap;
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getIfShowShoppingCart() {
return ifShowShoppingCart;
}
public void setIfShowShoppingCart(String ifShowShoppingCart) {
this.ifShowShoppingCart = ifShowShoppingCart;
}
public String getImgApp() {
return imgApp;
}
public void setImgApp(String imgApp) {
this.imgApp = imgApp;
}
public String getImgWap() {
return imgWap;
}
public void setImgWap(String imgWap) {
this.imgWap = imgWap;
}
public int getLevel() {
return level;
}
public void setLevel(int level) {
this.level = level;
}
public int getParentId() {
return parentId;
}
public void setParentId(int parentId) {
this.parentId = parentId;
}
public String getPcCi() {
return pcCi;
}
public void setPcCi(String pcCi) {
this.pcCi = pcCi;
}
public String getSeoCf() {
return seoCf;
}
public void setSeoCf(String seoCf) {
this.seoCf = seoCf;
}
public int getSort() {
return sort;
}
public void setSort(int sort) {
this.sort = sort;
}
public List<?> getAdvts() {
return advts;
}
public void setAdvts(List<?> advts) {
this.advts = advts;
}
public List<?> getChildren() {
return children;
}
public void setChildren(List<?> children) {
this.children = children;
}
}
}
}
}
| [
"1320155994@qq.com"
] | 1320155994@qq.com |
ed19106fc5906df10efec90d898340b5ae891872 | bba1ebf0b3023e1827deaec37ec593e6d3e23af3 | /catalogo-ejb/src/main/java/com/indracompany/catalogo/dao/interfaces/CanalAtendimentoDAO.java | 0d0eeaa204c6333c19766834602a878c6a470592 | [] | no_license | douglasikoshima/teste-repositorio | 91a2844c2b8a7cc4f5d423ed25bfd24bfd1eff28 | c85512ec57b9a1fd450bba950b6e71c019ca14c3 | refs/heads/master | 2021-01-19T09:00:23.590328 | 2017-02-15T19:46:02 | 2017-02-15T19:46:02 | 82,079,552 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 592 | java | package com.indracompany.catalogo.dao.interfaces;
import java.util.List;
import com.indracompany.catalogo.datalayer.CanalAtendimento;
import com.indracompany.catalogo.exception.DAOException;
import com.indracompany.catalogo.to.CanalAtendimentoTO;
/**
* @author Luiz Pereira
*
*/
public interface CanalAtendimentoDAO {
/**
* @return
* @throws DAOException
*
* Método responsável em obter todos os Canais de Atendimento da base.
*/
public List<CanalAtendimentoTO> findAll() throws DAOException;
public CanalAtendimento findById(Integer idCanal) throws DAOException;
}
| [
"vfabio@indracompany.com"
] | vfabio@indracompany.com |
09b8f45c5ac0e2c869a5eacdbd606a99085139a2 | 73267be654cd1fd76cf2cb9ea3a75630d9f58a41 | /services/cdn/src/main/java/com/huaweicloud/sdk/cdn/v1/model/ShowQuotaResponse.java | 4c10231a862ce0c553db003f00956df15131f3ad | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-java-v3 | 51b32a451fac321a0affe2176663fed8a9cd8042 | 2f8543d0d037b35c2664298ba39a89cc9d8ed9a3 | refs/heads/master | 2023-08-29T06:50:15.642693 | 2023-08-24T08:34:48 | 2023-08-24T08:34:48 | 262,207,545 | 91 | 57 | NOASSERTION | 2023-09-08T12:24:55 | 2020-05-08T02:27:00 | Java | UTF-8 | Java | false | false | 2,332 | java | package com.huaweicloud.sdk.cdn.v1.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.huaweicloud.sdk.core.SdkResponse;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
import java.util.function.Consumer;
/**
* Response Object
*/
public class ShowQuotaResponse extends SdkResponse {
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "quotas")
private List<Quotas> quotas = null;
public ShowQuotaResponse withQuotas(List<Quotas> quotas) {
this.quotas = quotas;
return this;
}
public ShowQuotaResponse addQuotasItem(Quotas quotasItem) {
if (this.quotas == null) {
this.quotas = new ArrayList<>();
}
this.quotas.add(quotasItem);
return this;
}
public ShowQuotaResponse withQuotas(Consumer<List<Quotas>> quotasSetter) {
if (this.quotas == null) {
this.quotas = new ArrayList<>();
}
quotasSetter.accept(this.quotas);
return this;
}
/**
* 配额数组。
* @return quotas
*/
public List<Quotas> getQuotas() {
return quotas;
}
public void setQuotas(List<Quotas> quotas) {
this.quotas = quotas;
}
@Override
public boolean equals(java.lang.Object obj) {
if (this == obj) {
return true;
}
if (obj == null || getClass() != obj.getClass()) {
return false;
}
ShowQuotaResponse that = (ShowQuotaResponse) obj;
return Objects.equals(this.quotas, that.quotas);
}
@Override
public int hashCode() {
return Objects.hash(quotas);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ShowQuotaResponse {\n");
sb.append(" quotas: ").append(toIndentedString(quotas)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
| [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
e9d2152642869f8404ec7b551f5d10abb357f1f2 | c51559ec29dc2c23a7f8a09e839467b6c903736b | /src/src/Main.java | 9ff21b27dfddc571d621e949fcb6f401a8f86226 | [] | no_license | frostyboy33/Assignment4 | 08aa1cc2337359560eb1f409785dbafa77c4280f | ed97ea6a4a1091edfec3c96c96ffd382cdb90667 | refs/heads/master | 2021-01-10T11:11:20.335645 | 2015-10-12T00:02:12 | 2015-10-12T00:02:12 | 44,073,639 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,123 | java | package src;
import java.util.List;
import java.io.*;
public class Main {
public static void main(String[] args) throws Exception {
BufferedReader console = new BufferedReader(new InputStreamReader(System.in));
Dice d1 = new Dice();
Dice d2 = new Dice();
Dice d3 = new Dice();
Player player = new Player("Fred", 100);
Game game = new Game(d1, d2, d3);
List<DiceValue> cdv = game.getDiceValues();
int totalWins = 0;
int totalLosses = 0;
while (true)
{
int winCount = 0;
int loseCount = 0;
for (int i = 0; i < 100; i++)
{
String name = "Fred";
int balance = 100;
int limit = 0;
player = new Player(name, balance);
player.setLimit(limit);
int bet = 5;
System.out.println(String.format("Start Game %d: ", i));
System.out.println(String.format("%s starts with balance %d, limit %d",
player.getName(), player.getBalance(), player.getLimit()));
int turn = 0;
while (player.balanceExceedsLimitBy(bet) && player.getBalance() < 200)
{
turn++;
DiceValue pick = DiceValue.getRandom();
System.out.printf("Turn %d: %s bet %d on %s\n",
turn, player.getName(), bet, pick);
int winnings = game.playRound(player, pick, bet);
cdv = game.getDiceValues();
System.out.printf("Rolled %s, %s, %s\n",
cdv.get(0), cdv.get(1), cdv.get(2));
if (winnings > 0) {
System.out.printf("%s won %d, balance now %d\n\n",
player.getName(), winnings, player.getBalance());
winCount++;
}
else {
System.out.printf("%s lost, balance now %d\n\n",
player.getName(), player.getBalance());
loseCount++;
}
} //while
System.out.print(String.format("%d turns later.\nEnd Game %d: ", turn, i));
System.out.println(String.format("%s now has balance %d\n", player.getName(), player.getBalance()));
} //for
System.out.println(String.format("Win count = %d, Lose Count = %d, %.2f", winCount, loseCount, (float) winCount/(winCount+loseCount)));
totalWins += winCount;
totalLosses += loseCount;
String ans = console.readLine();
if (ans.equals("q")) break;
} //while true
System.out.println(String.format("Overall win rate = %.1f%%", (float)(totalWins * 100) / (totalWins + totalLosses)));
}
}
| [
"jaan@liiband.com"
] | jaan@liiband.com |
58b0fc2ebbf01144faf2341b0d706f45652e1d26 | 221ba5d328f3468d27c15a91b20b69004340a821 | /jme/src/com/jmex/awt/swingui/dnd/JMEDropTargetEvent.java | 26d6a79be580a114a8d74790c8f4a381a9d0d580 | [] | no_license | cjbush/burriswarehouse | 49db0685163c8dbd43c3dbbbc6e17cb505b413f1 | 23bd43484387b7ccd5259c69cb9491bf8875b3f5 | refs/heads/master | 2016-09-06T11:17:03.659594 | 2015-04-04T22:42:39 | 2015-04-04T22:42:39 | 33,420,363 | 0 | 1 | null | null | null | null | UTF-8 | Java | false | false | 2,772 | java | /*
* Copyright (c) 2003-2009 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'jMonkeyEngine' nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package com.jmex.awt.swingui.dnd;
import java.awt.Point;
import java.awt.datatransfer.Transferable;
import java.util.EventObject;
/**
* @author Galun
*/
public class JMEDropTargetEvent extends EventObject {
private static final long serialVersionUID = 1L;
private Point point;
private int action;
private boolean accepted;
private boolean completed;
private JMEDragAndDrop dnd;
JMEDropTargetEvent(Object source, Point point, int action, JMEDragAndDrop dnd ) {
super(source);
this.point = point;
this.action = action;
this.dnd = dnd;
}
public Point getPoint() {
return point;
}
public int getAction() {
return action;
}
public void acceptDrop( int action ) {
accepted = true;
}
public void dropComplete( boolean success ) {
completed = success;
}
public boolean isAccepted() {
return accepted;
}
public Transferable getTransferable() {
return dnd.getTransferable();
}
public boolean isCompleted() {
return completed;
}
}
| [
"cjbush77"
] | cjbush77 |
0a5a519651a8b91b773575550a2f2aaa21a1409f | 97e2d811428180dc7f0c3dc58377ed1f7627c0c8 | /src/system/renderer/shader/Program.java | a3c46d6db2d1f09f593b1023411b5420b2b86e84 | [] | no_license | NovalisTheMagician/Elements | d1e603d73212501892de60c0f388110262e90ee3 | cfcf9d12aff32ef218a765ccdfa62558c4c0d6bd | refs/heads/master | 2021-01-12T07:41:09.677849 | 2019-07-11T11:49:23 | 2019-07-11T11:49:23 | 76,997,507 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,609 | java | package system.renderer.shader;
import static org.lwjgl.opengl.GL20.*;
import math.Matrix4;
import math.Vector2;
import math.Vector3;
public class Program
{
private static final int INVALID_LOCATION = -1;
static enum State
{
LINKED,
READY,
ERROR,
NOT_READY
};
private int programId;
private State state;
private String errorMessage;
public Program()
{
programId = glCreateProgram();
state = State.NOT_READY;
}
public void attachShader(Shader shader) throws ProgramLinkException
{
if(shader.getState() != Shader.State.COMPILED)
throw new ProgramLinkException("Could not attach shader: Shader not compiled");
glAttachShader(programId, shader.getId());
}
public void link() throws ProgramLinkException
{
if(programId == 0)
{
state = State.ERROR;
throw new ProgramLinkException("No shader attached to this program");
}
glLinkProgram(programId);
glValidateProgram(programId);
boolean programState = glGetProgrami(programId, GL_LINK_STATUS) != 0;
if(!programState)
{
errorMessage = glGetProgramInfoLog(programId, 255);
state = State.ERROR;
throw new ProgramLinkException("Program failed to link");
}
state = State.LINKED;
}
public Uniform<Matrix4> getUniformMatrix4(String location)
{
int loc = glGetUniformLocation(programId, location);
if(loc == INVALID_LOCATION)
throw new UniformNotFoundException(location);
return new Uniform<Matrix4>()
{
int location = loc;
@Override
public void set(Matrix4 data)
{
glUniformMatrix4(location, false, data.makeBuffer());
}
};
}
public Uniform<Vector3> getUniformVector3(String location)
{
int loc = glGetUniformLocation(programId, location);
if(loc == INVALID_LOCATION)
throw new UniformNotFoundException(location);
return new Uniform<Vector3>()
{
int location = loc;
@Override
public void set(Vector3 data)
{
glUniform3(location, data.makeBuffer());
}
};
}
public Uniform<Vector2> getUniformVector2(String location)
{
int loc = glGetUniformLocation(programId, location);
if(loc == INVALID_LOCATION)
throw new UniformNotFoundException(location);
return new Uniform<Vector2>()
{
int location = loc;
@Override
public void set(Vector2 data)
{
glUniform2(location, data.makeBuffer());
}
};
}
public Uniform<Float> getUniformFloat(String location)
{
int loc = glGetUniformLocation(programId, location);
if(loc == INVALID_LOCATION)
throw new UniformNotFoundException(location);
return new Uniform<Float>()
{
int location = loc;
@Override
public void set(Float data)
{
glUniform1f(location, data);
}
};
}
public Uniform<Integer> getUniformInteger(String location)
{
int loc = glGetUniformLocation(programId, location);
if(loc == INVALID_LOCATION)
throw new UniformNotFoundException(location);
return new Uniform<Integer>()
{
int location = loc;
@Override
public void set(Integer data)
{
glUniform1i(location, data);
}
};
}
public void use()
{
glUseProgram(programId);
}
public int getProgramId()
{
return programId;
}
public String getErrorMessage()
{
return errorMessage;
}
public State getState()
{
return state;
}
public void destroy()
{
glDeleteProgram(programId);
programId = 0;
state = State.NOT_READY;
}
}
| [
"patrik.koern@student.htw-berlin.de"
] | patrik.koern@student.htw-berlin.de |
d494b476d2afdda54ea33443a152a1badd482a37 | 1bea2c87ddd571f4138826ae605514134f1bfce1 | /final/src/kh/com/service/impl/E_BbsServiceImpl.java | 43b374b5a6326ed25af86afdc3ee9b672b97a437 | [] | no_license | junghyebae/university | 5da7db5a0e9319fcdc10906df75b82a2b5a7c9b6 | 429d31064b6280014909325bbfc76bf423c204ff | refs/heads/master | 2020-03-27T06:17:10.947907 | 2018-08-25T12:58:04 | 2018-08-25T12:58:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,373 | java | package kh.com.service.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import kh.com.dao.E_BbsDao;
import kh.com.model.E_BbsDto;
import kh.com.model.ProfEvaluationDTO;
import kh.com.service.E_BbsService;
import kh.com.util.Pagination;
@Service
public class E_BbsServiceImpl implements E_BbsService{
@Autowired
private E_BbsDao e_BbsDao;
@Override
public List<E_BbsDto> getEBbsList(Pagination pagination) throws Exception {
return e_BbsDao.getEBbsList(pagination);
}
@Override
public E_BbsDto getBbs(int seq) throws Exception {
return e_BbsDao.getBbs(seq);
}
@Override
public boolean addReadcount(int seq) throws Exception {
return e_BbsDao.addReadcount(seq);
}
@Override
public void uploadBbs(E_BbsDto edto) {
e_BbsDao.uploadBbs(edto);
}
@Override
public int getBbsCount(E_BbsDto edto) throws Exception {
return e_BbsDao.getBbsCount(edto);
}
@Override
public boolean updateEBbs(E_BbsDto edto) throws Exception{
return e_BbsDao.updateEBbs(edto);
}
@Override
public List<ProfEvaluationDTO> ProfEvaluation(ProfEvaluationDTO info) throws Exception {
List<ProfEvaluationDTO> eclist = e_BbsDao.ProfEvaluation(info);
return eclist;
}
@Override
public int deleteEBbs(int seq) throws Exception{
return e_BbsDao.deleteEBbs(seq);
}
}
| [
"vuiuv@naver.com"
] | vuiuv@naver.com |
d52c7967d1f0c8a80f0e320edea06ca08188f6ac | bece1fa9c7936ef0d400a63ae037a66a9759cd87 | /src/main/java/com/jeeframework/util/resource/ResolverUtil.java | be5b6f8a6010ef5f92d0572e154876bcead62de5 | [] | no_license | Steadily/jeeframework | 19013e48375eca6f6a2b6225b6dbea5b92f929a0 | a20e1642f85b9249c15938972302c1ba3e7f13ab | refs/heads/master | 2020-12-11T04:09:52.644742 | 2016-08-06T04:55:10 | 2016-08-06T04:55:10 | 53,473,042 | 0 | 0 | null | 2016-03-11T02:07:23 | 2016-03-09T06:10:24 | Java | UTF-8 | Java | false | false | 15,504 | java | /* Copyright 2005-2006 Tim Fennell
*
* 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.jeeframework.util.resource;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.lang.annotation.Annotation;
import java.net.URL;
import java.net.URLDecoder;
import java.util.Enumeration;
import java.util.HashSet;
import java.util.Set;
import java.util.jar.JarEntry;
import java.util.jar.JarInputStream;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
/**
* <p>ResolverUtil is used to locate classes that are available in the/a class path and meet
* arbitrary conditions. The two most common conditions are that a class implements/extends
* another class, or that is it annotated with a specific annotation. However, through the use
* of the {@link Test} class it is possible to search using arbitrary conditions.</p>
*
* <p>A ClassLoader is used to locate all locations (directories and jar files) in the class
* path that contain classes within certain packages, and then to load those classes and
* check them. By default the ClassLoader returned by
* {@code Thread.currentThread().getContextClassLoader()} is used, but this can be overridden
* by calling {@link #setClassLoader(ClassLoader)} prior to invoking any of the {@code find()}
* methods.</p>
*
* <p>General searches are initiated by calling the
* {@link #find(com.opensymphony.xwork2.util.ResolverUtil.Test, String...)} ()} method and supplying
* a package name and a Test instance. This will cause the named package <b>and all sub-packages</b>
* to be scanned for classes that meet the test. There are also utility methods for the common
* use cases of scanning multiple packages for extensions of particular classes, or classes
* annotated with a specific annotation.</p>
*
* <p>The standard usage pattern for the ResolverUtil class is as follows:</p>
*
*<pre>
*ResolverUtil<ActionBean> resolver = new ResolverUtil<ActionBean>();
*resolver.findImplementation(ActionBean.class, pkg1, pkg2);
*resolver.find(new CustomTest(), pkg1);
*resolver.find(new CustomTest(), pkg2);
*Collection<ActionBean> beans = resolver.getClasses();
*</pre>
*
* <p>This class was copied from Stripes - http://stripes.mc4j.org/confluence/display/stripes/Home
* </p>
*
* @author Tim Fennell
*/
public class ResolverUtil<T> {
/** An instance of Log to use for logging in this class. */
private static final Log log = LogFactory.getLog(ResolverUtil.class);
/**
* A simple interface that specifies how to test classes to determine if they
* are to be included in the results produced by the ResolverUtil.
*/
public static interface Test {
/**
* Will be called repeatedly with candidate classes. Must return True if a class
* is to be included in the results, false otherwise.
*/
boolean matches(Class type);
}
/**
* A Test that checks to see if each class is assignable to the provided class. Note
* that this test will match the parent type itself if it is presented for matching.
*/
public static class IsA implements Test {
private Class parent;
/** Constructs an IsA test using the supplied Class as the parent class/interface. */
public IsA(Class parentType) { this.parent = parentType; }
/** Returns true if type is assignable to the parent type supplied in the constructor. */
public boolean matches(Class type) {
return type != null && parent.isAssignableFrom(type);
}
@Override public String toString() {
return "is assignable to " + parent.getSimpleName();
}
}
/**
* A Test that checks to see if each class name ends with the provided suffix.
*/
public static class NameEndsWith implements Test {
private String suffix;
/** Constructs a NameEndsWith test using the supplied suffix. */
public NameEndsWith(String suffix) { this.suffix = suffix; }
/** Returns true if type name ends with the suffix supplied in the constructor. */
public boolean matches(Class type) {
return type != null && type.getName().endsWith(suffix);
}
@Override public String toString() {
return "ends with the suffix " + suffix;
}
}
/**
* A Test that checks to see if each class is annotated with a specific annotation. If it
* is, then the test returns true, otherwise false.
*/
public static class AnnotatedWith implements Test {
private Class<? extends Annotation> annotation;
/** Construts an AnnotatedWith test for the specified annotation type. */
public AnnotatedWith(Class<? extends Annotation> annotation) { this.annotation = annotation; }
/** Returns true if the type is annotated with the class provided to the constructor. */
public boolean matches(Class type) {
return type != null && type.isAnnotationPresent(annotation);
}
@Override public String toString() {
return "annotated with @" + annotation.getSimpleName();
}
}
/** The set of matches being accumulated. */
private Set<Class<? extends T>> matches = new HashSet<Class<?extends T>>();
/**
* The ClassLoader to use when looking for classes. If null then the ClassLoader returned
* by Thread.currentThread().getContextClassLoader() will be used.
*/
private ClassLoader classloader;
/**
* Provides access to the classes discovered so far. If no calls have been made to
* any of the {@code find()} methods, this set will be empty.
*
* @return the set of classes that have been discovered.
*/
public Set<Class<? extends T>> getClasses() {
return matches;
}
/**
* Returns the classloader that will be used for scanning for classes. If no explicit
* ClassLoader has been set by the calling, the context class loader will be used.
*
* @return the ClassLoader that will be used to scan for classes
*/
public ClassLoader getClassLoader() {
return classloader == null ? Thread.currentThread().getContextClassLoader() : classloader;
}
/**
* Sets an explicit ClassLoader that should be used when scanning for classes. If none
* is set then the context classloader will be used.
*
* @param classloader a ClassLoader to use when scanning for classes
*/
public void setClassLoader(ClassLoader classloader) { this.classloader = classloader; }
/**
* Attempts to discover classes that are assignable to the type provided. In the case
* that an interface is provided this method will collect implementations. In the case
* of a non-interface class, subclasses will be collected. Accumulated classes can be
* accessed by calling {@link #getClasses()}.
*
* @param parent the class of interface to find subclasses or implementations of
* @param packageNames one or more package names to scan (including subpackages) for classes
*/
public void findImplementations(Class parent, String... packageNames) {
if (packageNames == null) return;
Test test = new IsA(parent);
for (String pkg : packageNames) {
findInPackage(test, pkg);
}
}
/**
* Attempts to discover classes who's name ends with the provided suffix. Accumulated classes can be
* accessed by calling {@link #getClasses()}.
*
* @param suffix The class name suffix to match
* @param packageNames one or more package names to scan (including subpackages) for classes
*/
public void findSuffix(String suffix, String... packageNames) {
if (packageNames == null) return;
Test test = new NameEndsWith(suffix);
for (String pkg : packageNames) {
findInPackage(test, pkg);
}
}
/**
* Attempts to discover classes that are annotated with to the annotation. Accumulated
* classes can be accessed by calling {@link #getClasses()}.
*
* @param annotation the annotation that should be present on matching classes
* @param packageNames one or more package names to scan (including subpackages) for classes
*/
public void findAnnotated(Class<? extends Annotation> annotation, String... packageNames) {
if (packageNames == null) return;
Test test = new AnnotatedWith(annotation);
for (String pkg : packageNames) {
findInPackage(test, pkg);
}
}
/**
* Attempts to discover classes that pass the test. Accumulated
* classes can be accessed by calling {@link #getClasses()}.
*
* @param test the test to determine matching classes
* @param packageNames one or more package names to scan (including subpackages) for classes
*/
public void find(Test test, String... packageNames) {
if (packageNames == null) return;
for (String pkg : packageNames) {
findInPackage(test, pkg);
}
}
/**
* Scans for classes starting at the package provided and descending into subpackages.
* Each class is offered up to the Test as it is discovered, and if the Test returns
* true the class is retained. Accumulated classes can be fetched by calling
* {@link #getClasses()}.
*
* @param test an instance of {@link Test} that will be used to filter classes
* @param packageName the name of the package from which to start scanning for
* classes, e.g. {@code net.sourceforge.stripes}
*/
public void findInPackage(Test test, String packageName) {
packageName = packageName.replace('.', '/');
ClassLoader loader = getClassLoader();
Enumeration<URL> urls;
try {
urls = loader.getResources(packageName);
}
catch (IOException ioe) {
log.warn("Could not read package: " + packageName, ioe);
return;
}
while (urls.hasMoreElements()) {
try {
String urlPath = urls.nextElement().getFile();
urlPath = URLDecoder.decode(urlPath, "UTF-8");
// If it's a file in a directory, trim the stupid file: spec
if ( urlPath.startsWith("file:") ) {
urlPath = urlPath.substring(5);
}
// Else it's in a JAR, grab the path to the jar
if (urlPath.indexOf('!') > 0) {
urlPath = urlPath.substring(0, urlPath.indexOf('!'));
}
log.info("Scanning for classes in [" + urlPath + "] matching criteria: " + test);
File file = new File(urlPath);
if ( file.isDirectory() ) {
loadImplementationsInDirectory(test, packageName, file);
}
else {
loadImplementationsInJar(test, packageName, file);
}
}
catch (IOException ioe) {
log.warn("could not read entries", ioe);
}
}
}
/**
* Finds matches in a physical directory on a filesystem. Examines all
* files within a directory - if the File object is not a directory, and ends with <i>.class</i>
* the file is loaded and tested to see if it is acceptable according to the Test. Operates
* recursively to find classes within a folder structure matching the package structure.
*
* @param test a Test used to filter the classes that are discovered
* @param parent the package name up to this directory in the package hierarchy. E.g. if
* /classes is in the classpath and we wish to examine files in /classes/org/apache then
* the values of <i>parent</i> would be <i>org/apache</i>
* @param location a File object representing a directory
*/
private void loadImplementationsInDirectory(Test test, String parent, File location) {
File[] files = location.listFiles();
StringBuilder builder = null;
for (File file : files) {
builder = new StringBuilder(100);
builder.append(parent).append("/").append(file.getName());
String packageOrClass = ( parent == null ? file.getName() : builder.toString() );
if (file.isDirectory()) {
loadImplementationsInDirectory(test, packageOrClass, file);
}
else if (file.getName().endsWith(".class")) {
addIfMatching(test, packageOrClass);
}
}
}
/**
* Finds matching classes within a jar files that contains a folder structure
* matching the package structure. If the File is not a JarFile or does not exist a warning
* will be logged, but no error will be raised.
*
* @param test a Test used to filter the classes that are discovered
* @param parent the parent package under which classes must be in order to be considered
* @param jarfile the jar file to be examined for classes
*/
private void loadImplementationsInJar(Test test, String parent, File jarfile) {
try {
JarEntry entry;
JarInputStream jarStream = new JarInputStream(new FileInputStream(jarfile));
while ( (entry = jarStream.getNextJarEntry() ) != null) {
String name = entry.getName();
if (!entry.isDirectory() && name.startsWith(parent) && name.endsWith(".class")) {
addIfMatching(test, name);
}
}
}
catch (IOException ioe) {
log.error("Could not search jar file '" + jarfile + "' for classes matching criteria: " +
test + " due to an IOException", ioe);
}
}
/**
* Add the class designated by the fully qualified class name provided to the set of
* resolved classes if and only if it is approved by the Test supplied.
*
* @param test the test used to determine if the class matches
* @param fqn the fully qualified name of a class
*/
protected void addIfMatching(Test test, String fqn) {
try {
String externalName = fqn.substring(0, fqn.indexOf('.')).replace('/', '.');
ClassLoader loader = getClassLoader();
if (log.isDebugEnabled()) {
log.debug("Checking to see if class " + externalName + " matches criteria [" + test + "]");
}
Class type = loader.loadClass(externalName);
if (test.matches(type) ) {
matches.add( (Class<T>) type);
}
}
catch (Throwable t) {
log.warn("Could not examine class '" + fqn + "' due to a " +
t.getClass().getName() + " with message: " + t.getMessage());
}
}
} | [
"lance@gmail.com"
] | lance@gmail.com |
4869122f9822699b5f7be54037c2652b314946f3 | 1da402d56e91fb2be998f565f75e513a7bc3212a | /src/Model/User.java | 4ec91cafdc153bab90a561aa971f50db5738680f | [] | no_license | Xorang/Appointment-Manager | 8b43ab83fb04c6213861b5f5d6684de4c9125ce1 | 3b3442277af737eda98fd82f9bb2dbd171555c18 | refs/heads/master | 2020-03-31T00:43:26.167643 | 2018-10-09T04:53:08 | 2018-10-09T04:53:08 | 151,751,735 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,676 | java | package Model;
import java.time.LocalDate;
import java.time.LocalDateTime;
/**
* Storing user information
*/
public class User {
private int userId;
private String userName;
private String password;
private int active;
private LocalDate createDate;
private String createdBy;
private LocalDateTime lastUpdate;
private String lastUpdateBy;
public User(int userId, String userName, String password, int active, LocalDate createDate, String createdBy, LocalDateTime lastUpdate, String lastUpdateBy) {
this.userId = userId;
this.userName = userName;
this.password = password;
this.active = active;
this.createDate = createDate;
this.createdBy = createdBy;
this.lastUpdate = lastUpdate;
this.lastUpdateBy = lastUpdateBy;
}
public User() {
}
public int getUserId() {
return userId;
}
public void setUserId(int userId) {
this.userId = userId;
}
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 int getActive() {
return active;
}
public void setActive(int activeCode) {
this.active = activeCode;
}
public LocalDate getCreateDate() {
return createDate;
}
public void setCreateDate(LocalDate createDate) {
this.createDate = createDate;
}
public String getCreatedBy() {
return createdBy;
}
public void setCreatedBy(String createdBy) {
this.createdBy = createdBy;
}
public LocalDateTime getLastUpdate() {
return lastUpdate;
}
public void setLastUpdate(LocalDateTime lastUpdate) {
this.lastUpdate = lastUpdate;
}
public String getLastUpdateBy() {
return lastUpdateBy;
}
public void setLastUpdateBy(String lastUpdateBy) {
this.lastUpdateBy = lastUpdateBy;
}
/**
* Override to allow more portability between objects and lists
*
* @param obj
* @return true if both objects have the same userId.
*/
@Override
public boolean equals(Object obj) {
if (!(obj instanceof User) || obj == null) {
return false;
}
User otherUser = (User) obj;
return this.getUserId() == otherUser.getUserId();
}
@Override
public int hashCode() {
int hash = 5;
hash = 89 * hash + this.userId;
return hash;
}
} | [
"zanewheadon@gmail.com"
] | zanewheadon@gmail.com |
db36ebb01076fe47a2cc8fdc671f1b22ae516c46 | e47a51d203c7589e72027ad1562535b9aaf8b9d1 | /src/main/java/ch19/NullParameterFilter.java | f2b291b1db80fdad7e0d775fccb1714dc8d80c8e | [] | no_license | lurutia/jsp23 | 170bd67d0d6352571c7d14318b7da513f66f5f07 | f9073330a8deb7a544d41a6386af1dcb5d6361ee | refs/heads/main | 2023-04-21T17:04:45.800737 | 2021-05-14T16:41:10 | 2021-05-14T16:41:10 | 360,905,828 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,139 | java | package ch19;
import java.io.IOException;
import java.util.StringTokenizer;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.http.HttpServletRequest;
public class NullParameterFilter implements Filter {
private String[] parameterNames = null;
@Override
public void init(FilterConfig config) throws ServletException {
String names = config.getInitParameter("parameterNames");
StringTokenizer st = new StringTokenizer(names, ",");
parameterNames = new String[st.countTokens()];
for(int i=0; st.hasMoreTokens(); i++) {
parameterNames[i] = st.nextToken();
}
}
@Override
public void doFilter(ServletRequest req, ServletResponse res, FilterChain chain) throws IOException, ServletException {
NullParameterRequestWrapper requestWrapper = new NullParameterRequestWrapper((HttpServletRequest) req);
requestWrapper.checkNull(parameterNames);
chain.doFilter(requestWrapper, res);
}
@Override
public void destroy() {
}
}
| [
"lurutia@naver.com"
] | lurutia@naver.com |
63de9c1b71bcabd71e5c80e2bdf90a9b371d27a5 | 649ddcbecbdeb64645b16896683207da6dc2c262 | /service/story-service/src/main/java/com/duan/story/common/dto/StoryListItemDTO.java | 3573e4274d6edd4e7c86a43e8411b4afcd069fd1 | [] | no_license | DuanJiaNing/story | 797a623fe9b086a91c33ecaf63ec179caa8b49ac | 9941bf3f7aa28aa302afaf8984f8b5bcd5eaa69c | refs/heads/master | 2023-07-25T01:20:24.275000 | 2019-07-28T15:08:35 | 2019-07-28T15:08:35 | 196,806,549 | 0 | 0 | null | 2023-07-22T10:48:16 | 2019-07-14T07:23:31 | Java | UTF-8 | Java | false | false | 665 | java | package com.duan.story.common.dto;
import lombok.Data;
import java.io.Serializable;
import java.sql.Timestamp;
/**
* Created on 2017/12/16.
*
* @author DuanJiaNing
*/
@Data
public class StoryListItemDTO implements Serializable {
private static final Long serialVersionUID = -5072404723143229440L;
private Integer id;
private CategoryDTO[] categories;
private LabelDTO[] labels;
private Integer state;
private String title;
private String titleBase64;
private String summary;
private String img;
private Timestamp releaseDate;
private Timestamp nearestModifyDate;
private StoryBaseStatisticsDTO statistics;
}
| [
"aimeimeits@gmail.com"
] | aimeimeits@gmail.com |
3d478703184aec04517d31593f616ebeab5f010b | 297ac4bc00a05ccdde1f38afeb18eb6ca04e1a90 | /src/main/java/com/justai/testtaskjunior/model/messages/VkMessage.java | bc15c27f485612297f1c0949e8c8bf137e153ff4 | [] | no_license | CptBronzebeard/test-task-junior | 5b93f58518ed32441142cf218e4c30f5d517c4e5 | 0ccc0bfe8acf898d13b30c20a009a6137509a9f3 | refs/heads/master | 2022-12-01T13:14:59.698543 | 2020-08-07T04:47:51 | 2020-08-07T04:47:51 | 285,734,183 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,395 | java | package com.justai.testtaskjunior.model.messages;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import java.io.Serializable;
import java.util.List;
@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
public class VkMessage implements Serializable {
private Integer id;
@JsonProperty("date")
private Integer unixTimeSent;
@JsonProperty("peer_id")
private Integer peerId;
@JsonProperty("from_id")
private Integer fromId;
private String text;
@JsonProperty("random_id")
private Integer randomId;
private String ref;
@JsonProperty("ref_source")
private String refSource;
private List<VkAttachment> attachments;
private Boolean important;
private VkGeo geo;
private String payload;
private VkBotKeyboard keyboard;
@JsonProperty("fwd_messages")
private List<VkMessage> fwdMessages;
@JsonProperty("reply_message")
private VkMessage replyMessage;
private VkChatAction action;
//Old API versions compatibility field
private Integer out;
//FIXME Below fields are NOT LISTED in VK API, yet are being sent, as of version 5.122
@JsonProperty("conversation_message_id")
private Integer conversationMessageId;
@JsonProperty("is_hidden")
private Boolean isHidden;
}
| [
"omg4itep@gmail.com"
] | omg4itep@gmail.com |
8ab9881c213777ef62c11f713b4cb073fd83d631 | edb56ad0406257023766e44a31b33bda416e7fb3 | /app/src/main/java/com/radiomkor/controller/HelloWorld.java | 1d4825a21f17f0b1e00699c226e5650a7ae0558f | [] | no_license | mykhailokoretskyi/deploy-tomcat | ee4e311158ff9d8488f5421a3a11cae010b9d168 | 1774fe64cebab36701a9c1547bf47285d00c498e | refs/heads/master | 2021-01-20T03:06:20.029804 | 2017-03-06T14:15:05 | 2017-03-06T14:15:22 | 83,826,632 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 298 | java | package com.radiomkor.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
public class HelloWorld {
@RequestMapping("/")
public String hello(){
return "Hello World app";
}
}
| [
"radio.mkor@gmail.com"
] | radio.mkor@gmail.com |
6d0a6ef4b0543adf3b16c7183e66bcf1ab23c380 | b3fb532ad843d09e083f4cc2a78f5838077bfe70 | /Android/app/src/main/java/com/crowdbootstrap/fragments/groupsModule/GroupsSearchFragment.java | 86758be740be2cacf6924b66c060895834586f13 | [] | no_license | Marklaw01/Crowd | 4565b33776f2329576751d556a3cf577b531164a | 30f4e687fde3c9676cb894f965bbdf845ed26661 | refs/heads/master | 2020-03-25T10:26:59.720241 | 2018-07-18T10:41:51 | 2018-07-18T10:41:51 | 143,693,590 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 12,387 | java | package com.crowdbootstrap.fragments.groupsModule;
import android.app.Activity;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.KeyEvent;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.inputmethod.EditorInfo;
import android.widget.AdapterView;
import android.widget.EditText;
import android.widget.LinearLayout;
import android.widget.TextView;
import android.widget.Toast;
import com.crowdbootstrap.R;
import com.crowdbootstrap.activities.HomeActivity;
import com.crowdbootstrap.adapter.LikesDislikesAdapter;
import com.crowdbootstrap.fragments.ViewOtherContractorPublicProfileFragment;
import com.crowdbootstrap.listeners.AsyncTaskCompleteListener;
import com.crowdbootstrap.loadmore_listview.LoadMoreListView;
import com.crowdbootstrap.logger.CrowdBootstrapLogger;
import com.crowdbootstrap.models.UserObject;
import com.crowdbootstrap.utilities.AsyncNew;
import com.crowdbootstrap.utilities.Constants;
import com.crowdbootstrap.utilities.UtilitiesClass;
import org.json.JSONException;
import org.json.JSONObject;
import java.util.ArrayList;
/**
* Created by Sunakshi.Gautam on 3/9/2017.
*/
public class GroupsSearchFragment extends Fragment implements AdapterView.OnItemClickListener, AsyncTaskCompleteListener<String> {
private Bundle bundle;
private AsyncNew asyncNew;
private static int TOTAL_ITEMS = 0;
int current_page = 1;
private LoadMoreListView list_persons;
private LikesDislikesAdapter adapter;
private String mFundId;
private ArrayList<UserObject> list;
private LinearLayout searchLayout;
private EditText searchText;
private TextView searchBtn;
public GroupsSearchFragment() {
super();
}
/**
* Called to do initial creation of a fragment. This is called after
* {@link #onAttach(Activity)} and before
* {@link #onCreateView(LayoutInflater, ViewGroup, Bundle)}.
* <p>
* <p>Note that this can be called while the fragment's activity is
* still in the process of being created. As such, you can not rely
* on things like the activity's content view hierarchy being initialized
* at this point. If you want to do work once the activity itself is
* created, see {@link #onActivityCreated(Bundle)}.
*
* @param savedInstanceState If the fragment is being re-created from
* a previous saved state, this is the state.
*/
@Override
public void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
bundle = this.getArguments();
((HomeActivity) getActivity()).setActionBarTitle("Search Group");
mFundId = bundle.getString(Constants.FUND_ID);
}
/**
* Called when the fragment is visible to the user and actively running.
* This is generally
* tied to {@link Activity#onResume() Activity.onResume} of the containing
* Activity's lifecycle.
*/
@Override
public void onResume() {
super.onResume();
((HomeActivity) getActivity()).setOnBackPressedListener(this);
((HomeActivity) getActivity()).setActionBarTitle("Search Group");
//((HomeActivity) getActivity()).setActionBarTitle(bundle.getString(Constants.LIKE_DISLIKE));
current_page = 1;
list = new ArrayList<>();
adapter = null;
getLikersDislikers(current_page, Constants.REGISTER_ROLE_USER_LIST, Constants.REGISTER_ROLE_USER_LIST_TAG,"");
}
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
View rootView = inflater.inflate(R.layout.likes_dislike_fragment, container, false);
list_persons = (LoadMoreListView) rootView.findViewById(R.id.list_persons);
/* adapter = new LikesDislikesAdapter(getActivity(), list);
list_persons.setAdapter(adapter);*/
list_persons.setOnItemClickListener(this);
list_persons.setOnLoadMoreListener(new LoadMoreListView.OnLoadMoreListener() {
@Override
public void onLoadMore() {
if (((HomeActivity) getActivity()).networkConnectivity.isOnline()) {
current_page += 1;
if (TOTAL_ITEMS != adapter.getCount()) {
getLikersDislikers(current_page, Constants.REGISTER_ROLE_USER_LIST, Constants.REGISTER_ROLE_USER_LIST_TAG, "");
} else {
list_persons.onLoadMoreComplete();
}
} else {
list_persons.onLoadMoreComplete();
adapter.notifyDataSetChanged();
((HomeActivity) getActivity()).utilitiesClass.alertDialogSingleButton(getString(R.string.no_internet_connection));
}
}
});
searchLayout = (LinearLayout) rootView.findViewById(R.id.searchLayout);
searchText = (EditText) rootView.findViewById(R.id.et_search);
searchBtn = (TextView) rootView.findViewById(R.id.btn_search);
searchLayout.setVisibility(View.VISIBLE);
searchText.setHint("Search by Group name or keywords");
searchText.setImeOptions(EditorInfo.IME_ACTION_DONE);
searchText.setOnEditorActionListener(new EditText.OnEditorActionListener() {
@Override
public boolean onEditorAction(TextView v, int actionId, KeyEvent event) {
if (actionId == EditorInfo.IME_ACTION_DONE) {
current_page = 1;
list = new ArrayList<>();
list.clear();
adapter = null;
if (((HomeActivity) getActivity()).networkConnectivity.isOnline()) {
String searchedKey = ((HomeActivity) getActivity()).utilitiesClass.removeSpecialCharacters(searchText.getText().toString().trim());
getLikersDislikers(current_page, Constants.REGISTER_ROLE_USER_LIST, Constants.REGISTER_ROLE_USER_LIST_TAG,searchedKey);
} else {
((HomeActivity) getActivity()).utilitiesClass.alertDialogSingleButton(getString(R.string.no_internet_connection));
}
return true;
}
return false;
}
});
searchBtn.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
current_page = 1;
list = new ArrayList<>();
list.clear();
adapter = null;
if (((HomeActivity) getActivity()).networkConnectivity.isOnline()) {
String searchedKey = ((HomeActivity) getActivity()).utilitiesClass.removeSpecialCharacters(searchText.getText().toString().trim());
getLikersDislikers(current_page, Constants.REGISTER_ROLE_USER_LIST, Constants.REGISTER_ROLE_USER_LIST_TAG,searchedKey);
} else {
((HomeActivity) getActivity()).utilitiesClass.alertDialogSingleButton(getString(R.string.no_internet_connection));
}
}
});
return rootView;
}
private void getLikersDislikers(int pageNumber, String url, String tag, String searchKey) {
if (((HomeActivity) getActivity()).networkConnectivity.isInternetConnectionAvaliable()) {
try {
JSONObject obj = new JSONObject();
obj.put("user_id", mFundId);
obj.put("type", "board_member");
obj.put("page_no", pageNumber);
obj.put("search", searchKey);
((HomeActivity) getActivity()).showProgressDialog();
asyncNew = new AsyncNew(getActivity(), (AsyncTaskCompleteListener<String>) getActivity(), tag, url, Constants.HTTP_POST_REQUEST, obj);
asyncNew.execute();
} catch (JSONException e) {
e.printStackTrace();
}
} else {
((HomeActivity) getActivity()).utilitiesClass.alertDialogSingleButton(getString(R.string.no_internet_connection));
}
}
/**
* Callback method to be invoked when an item in this AdapterView has
* been clicked.
* <p>
* Implementers can call getItemAtPosition(position) if they need
* to access the data associated with the selected item.
*
* @param parent The AdapterView where the click happened.
* @param view The view within the AdapterView that was clicked (this
* will be a view provided by the adapter)
* @param position The position of the view in the adapter.
* @param id The row id of the item that was clicked.
*/
@Override
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
Bundle bundle = new Bundle();
bundle.putString("COMMING_FROM", Constants.LIKE_DISLIKE);
bundle.putString("id", list.get(position).getId());
ViewOtherContractorPublicProfileFragment profile = new ViewOtherContractorPublicProfileFragment();
profile.setArguments(bundle);
((HomeActivity) getActivity()).replaceFragment(profile);
}
/**
* When network give response in this.
*
* @param result
* @param tag
*/
@Override
public void onTaskComplete(String result, String tag) {
if (result.equalsIgnoreCase(Constants.NOINTERNET)) {
((HomeActivity) getActivity()).dismissProgressDialog();
Toast.makeText(getActivity(), getString(R.string.check_internet), Toast.LENGTH_LONG).show();
} else if (result.equalsIgnoreCase(Constants.TIMEOUT_EXCEPTION)) {
((HomeActivity) getActivity()).dismissProgressDialog();
UtilitiesClass.getInstance(getActivity()).alertDialogSingleButton(getString(R.string.time_out));
} else if (result.equalsIgnoreCase(Constants.SERVEREXCEPTION)) {
((HomeActivity) getActivity()).dismissProgressDialog();
Toast.makeText(getActivity(), getString(R.string.server_down), Toast.LENGTH_LONG).show();
} else {
if (tag.equals(Constants.REGISTER_ROLE_USER_LIST_TAG)) {
((HomeActivity) getActivity()).dismissProgressDialog();
try {
JSONObject jsonObject = new JSONObject(result);
if (jsonObject.optString(Constants.RESPONSE_STATUS_CODE).equalsIgnoreCase(Constants.RESPONSE_SUCESS_STATUS_CODE)) {
TOTAL_ITEMS = Integer.parseInt(jsonObject.optString("TotalItems"));
for (int i = 0; i < jsonObject.getJSONArray("users").length(); i++) {
JSONObject obj = jsonObject.getJSONArray("users").getJSONObject(i);
UserObject userObject = new UserObject();
userObject.setBio(obj.getString("bio"));
userObject.setId(obj.getString("id"));
userObject.setName(obj.getString("name"));
userObject.setImage(obj.getString("image"));
list.add(userObject);
}
}
} catch (JSONException e) {
e.printStackTrace();
Toast.makeText(getActivity(), getString(R.string.server_down), Toast.LENGTH_LONG).show();
}
if (adapter == null) {
adapter = new LikesDislikesAdapter(getActivity(), list);
list_persons.setAdapter(adapter);
}
list_persons.onLoadMoreComplete();
adapter.notifyDataSetChanged();
int index = list_persons.getLastVisiblePosition();
list_persons.smoothScrollToPosition(index);
}
CrowdBootstrapLogger.logInfo(result);
}
}
}
| [
"neelmani.karan@trantorinc.com"
] | neelmani.karan@trantorinc.com |
03cde8dd42e8baf0c321775bdd77c223baf4c1a4 | a92ba375caa435e3999574c02edbb913f6eae901 | /linq-common/src/main/java/com/linq/common/exception/user/UserPasswordNotMatchException.java | a1b4ff27ed8d1015250dbd027cb1ce45d7304835 | [] | no_license | wusijava/jiewu | f4febee79da4b5931522c93efef37f01b8b52351 | 41ad92122e7c09c7618aa9a4a5f2118fdaff173d | refs/heads/master | 2023-02-16T23:03:58.273783 | 2021-01-14T02:46:44 | 2021-01-14T02:46:44 | 329,489,086 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 335 | java | package com.linq.common.exception.user;
/**
* 用户密码不正确或不符合规范异常类
*/
public class UserPasswordNotMatchException extends UserException {
private static final long serialVersionUID = 1L;
public UserPasswordNotMatchException() {
super("user.password.not.match", null);
}
}
| [
"jay@JaydeMacBook-Pro.local"
] | jay@JaydeMacBook-Pro.local |
11450b18182c9688d304cc924d011ef72f464ed9 | 1b10956aa550d8ff335a82f40747907dac55a51d | /src/main/java/kr/co/jaemin/websocket/config/WebConfig.java | 12c0d7563ae5dd1bd15396553592cd9b37806e12 | [] | no_license | 2xel/spring-websocket | 1d49707138696e5506fac1d9cc4fe045df896144 | 8b593f045848d1f3464776667ae893275da9606e | refs/heads/master | 2021-01-22T11:28:42.319397 | 2017-06-08T09:01:21 | 2017-06-08T09:01:21 | 92,701,043 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,738 | java |
package kr.co.jaemin.websocket.config;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.DefaultServletHandlerConfigurer;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;
import org.springframework.web.socket.WebSocketHandler;
import org.springframework.web.socket.config.annotation.EnableWebSocket;
import org.springframework.web.socket.config.annotation.WebSocketConfigurer;
import org.springframework.web.socket.config.annotation.WebSocketHandlerRegistry;
import org.springframework.web.socket.handler.PerConnectionWebSocketHandler;
import org.springframework.web.socket.server.support.HttpSessionHandshakeInterceptor;
import kr.co.jaemin.websocket.handler.ChatWebSocketHandler;
import kr.co.jaemin.websocket.interceptor.ChatWebSocketHandlerInterceptor;
@Configuration
@EnableWebMvc
@EnableWebSocket
@ComponentScan(basePackages={"kr.co.jaemin.websocket"})
public class WebConfig extends WebMvcConfigurerAdapter implements WebSocketConfigurer {
public void registerWebSocketHandlers(WebSocketHandlerRegistry registry) {
registry.addHandler(chatWebSocketHandler(), "/chat-sock")
.addInterceptors(new ChatWebSocketHandlerInterceptor()).withSockJS();
}
@Bean
public WebSocketHandler chatWebSocketHandler() {
return new PerConnectionWebSocketHandler(ChatWebSocketHandler.class);
}
@Override
public void configureDefaultServletHandling(DefaultServletHandlerConfigurer configurer) {
configurer.enable();
}
}
| [
"jaeminstar@gmail.com"
] | jaeminstar@gmail.com |
faa2906a28feab3923948799a9fdf5e73178bc85 | a61799165bf36377fc1bbcd41b680bee58a06621 | /app/src/test/java/com/prisly/natrogames/ExampleUnitTest.java | 4de48b95b643286b8aa29c3e0a5305706ecf0a50 | [] | no_license | PrislyRozario/NetrogamesLogin | 38fcef5f4bded31a32a03a2fb44ce78e745ee3ff | f73898040e35b8bf6df460fa4e7928c0c694e15c | refs/heads/master | 2022-12-04T12:15:32.934304 | 2020-05-25T19:04:04 | 2020-05-25T19:04:04 | 266,172,622 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 382 | java | package com.prisly.natrogames;
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() {
assertEquals(4, 2 + 2);
}
} | [
"niotronbuilder@gmail.com"
] | niotronbuilder@gmail.com |
1d8b6e2d2c27ddd2b53225697812d02b9fd1ef47 | 47b71ff8a12367c10573e58289d6abbd41c2436f | /android/packages/apps/DragonAging/src/com/softwinner/agingdragonbox/engine/testcase/ThreeDimensionalView.java | 9683eb48b5df257ccf1a9d45cb12c409868c2a8b | [] | no_license | BPI-SINOVOIP/BPI-A31S-Android | d567fcefb8881bcca67f9401c5a4cfa875df5640 | ed63ae00332d2fdab22efc45a4a9a46ff31b8180 | refs/heads/master | 2022-11-05T15:39:21.895636 | 2017-04-27T16:58:45 | 2017-04-27T16:58:45 | 48,844,096 | 2 | 4 | null | 2022-10-28T10:10:24 | 2015-12-31T09:34:31 | null | UTF-8 | Java | false | false | 5,763 | java | package com.softwinner.agingdragonbox.engine.testcase;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import java.nio.FloatBuffer;
import java.nio.ShortBuffer;
import javax.microedition.khronos.egl.EGLConfig;
import javax.microedition.khronos.opengles.GL10;
import android.content.Context;
import android.opengl.GLSurfaceView;
import android.opengl.GLSurfaceView.Renderer;
import android.opengl.GLU;
import android.util.AttributeSet;
import android.util.Log;
import android.view.ViewGroup;
/**
* 3D测试界面
*/
public class ThreeDimensionalView extends GLSurfaceView implements Renderer {
private static final String TAG = "3D";
private ThreeDimensionalView mThreeDimensionalView;
protected ViewGroup mStage;
private static final float X = .525731112119133606f;
private static final float Z = .850650808352039932f;
private static float vertices[] = new float[] { -X, 0.0f, Z, X, 0.0f, Z, -X, 0.0f, -Z, X, 0.0f, -Z, 0.0f, Z, X,
0.0f, Z, -X, 0.0f, -Z, X, 0.0f, -Z, -X, Z, X, 0.0f, -Z, X, 0.0f, Z, -X, 0.0f, -Z, -X, 0.0f};
private static short indices[] = new short[] { 0, 4, 1, 0, 9, 4, 9, 5, 4, 4, 5, 8, 4, 8, 1, 8, 10, 1, 8, 3, 10, 5,
3, 8, 5, 2, 3, 2, 7, 3, 7, 10, 3, 7, 6, 10, 7, 11, 6, 11, 0, 6, 0, 1, 6, 6, 1, 10, 9, 0, 11, 9, 11, 2, 9,
2, 5, 7, 2, 11 };
// The colors mapped to the vertices.
private static float[] colors = { 0f, 0f, 0f, 1f, 0f, 0f, 1f, 1f, 0f, 1f, 0f, 1f, 0f, 1f, 1f, 1f, 1f, 0f, 0f, 1f,
1f, 0f, 1f, 1f, 1f, 1f, 0f, 1f, 1f, 1f, 1f, 1f, 1f, 0f, 0f, 1f, 0f, 1f, 0f, 1f, 0f, 0f, 1f, 1f, 1f, 0f, 1f,
1f };
// buffer
private FloatBuffer mVertexBuffer;
private FloatBuffer mColorBuffer;
private ShortBuffer mIndexBuffer;
private int mAngle;
private int x;
public ThreeDimensionalView(Context context) {
super(context);
init();
}
public ThreeDimensionalView(Context context, AttributeSet attrs) {
super(context, attrs);
init();
}
private void init() {
ByteBuffer vbb = ByteBuffer.allocateDirect(vertices.length * 4);
vbb.order(ByteOrder.nativeOrder());
mVertexBuffer = vbb.asFloatBuffer();
mVertexBuffer.put(vertices);
mVertexBuffer.position(0);
ByteBuffer cbb = ByteBuffer.allocateDirect(colors.length * 4);
cbb.order(ByteOrder.nativeOrder());
mColorBuffer = cbb.asFloatBuffer();
mColorBuffer.put(colors);
mColorBuffer.position(0);
ByteBuffer ibb = ByteBuffer.allocateDirect(indices.length * 2);
ibb.order(ByteOrder.nativeOrder());
mIndexBuffer = ibb.asShortBuffer();
mIndexBuffer.put(indices);
mIndexBuffer.position(0);
mAngle = 0;
this.setRenderer(this);
}
@Override
public void onSurfaceCreated(GL10 gl, EGLConfig config) {
gl.glDisable(GL10.GL_DITHER);
// Set the background color to black ( rgba ).
gl.glClearColor(0.0f, 0.0f, 0.0f, 0.5f);
// Enable Smooth Shading, default not really needed.
gl.glShadeModel(GL10.GL_SMOOTH);
// Depth buffer setup.
gl.glClearDepthf(1.0f);
// Enables depth testing.
gl.glEnable(GL10.GL_DEPTH_TEST);
// The type of depth testing to do.
gl.glDepthFunc(GL10.GL_LEQUAL);
// Really nice perspective calculations.
gl.glHint(GL10.GL_PERSPECTIVE_CORRECTION_HINT, GL10.GL_NEAREST);
Log.d(TAG, "3D Test........");
}
@Override
public void onDrawFrame(GL10 gl) {
gl.glClearColor(0.0f, 0.0f, 0.0f, 0.0f);
// Clears the screen and depth buffer.
gl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT);
gl.glColor4f(1.0f, 1.0f, 1.0f, 1.0f);
gl.glLoadIdentity();
gl.glTranslatef(2.2f, 1.0F, -6);
for(int i = 0; i < 30; i++){
gl.glRotatef(mAngle, 0, -1, 0);
gl.glRotatef(mAngle, 0, 0, 1);
gl.glRotatef(mAngle, 1, 0, 0);
}
for(int i = 0; i < 30; i++){
gl.glRotatef(mAngle, 0, 1, 0);
gl.glRotatef(mAngle, 0, 0, -1);
gl.glRotatef(mAngle, -1, 0, 0);
}
// gl.glFrontFace(GL10.GL_CCW);
// gl.glEnable(GL10.GL_CULL_FACE);
// gl.glCullFace(GL10.GL_BACK);
gl.glEnableClientState(GL10.GL_VERTEX_ARRAY);
gl.glVertexPointer(3, GL10.GL_FLOAT, 0, mVertexBuffer);
gl.glEnableClientState(GL10.GL_COLOR_ARRAY);
gl.glColorPointer(4, GL10.GL_FLOAT, 0, mColorBuffer);
gl.glDrawElements(GL10.GL_TRIANGLES, indices.length, GL10.GL_UNSIGNED_SHORT, mIndexBuffer);
gl.glLoadIdentity();
gl.glTranslatef(2.2f, -1.0F, -6);
for(int i = 0; i < 10; i++){
gl.glRotatef(mAngle, 0, -1, 0);
gl.glRotatef(mAngle, 0, 0, 1);
gl.glRotatef(mAngle, 1, 0, 0);
}
for(int i = 0; i < 10; i++){
gl.glRotatef(mAngle, 0, 1, 0);
gl.glRotatef(mAngle, 0, 0, -1);
gl.glRotatef(mAngle, -1, 0, 0);
}
gl.glDrawElements(GL10.GL_TRIANGLES, indices.length, GL10.GL_UNSIGNED_SHORT, mIndexBuffer);
gl.glLoadIdentity();
gl.glTranslatef(-1.0f, 0, -4);
// gl.glRotatef(mAngle, 0, 1, 0);
for(int i = 0; i < 5; i++){
gl.glRotatef(mAngle, 0, -1, 0);
gl.glRotatef(mAngle, 0, 0, 1);
gl.glRotatef(mAngle, 1, 0, 0);
}
for(int j = 0; j < 5; j++){
gl.glRotatef(mAngle, 0, 1, 0);
gl.glRotatef(mAngle, 0, 0, -1);
gl.glRotatef(mAngle, -1, 0, 0);
}
// gl.glScalef(1.2f, 1.2f, 1f);
gl.glDrawElements(GL10.GL_TRIANGLES, indices.length, GL10.GL_UNSIGNED_SHORT, mIndexBuffer);
gl.glDisableClientState(GL10.GL_VERTEX_ARRAY);
gl.glDisable(GL10.GL_CULL_FACE);
mAngle++;
}
@Override
public void onSurfaceChanged(GL10 gl, int width, int height) {
// Sets the current view port to the new size.
gl.glViewport(0, 0, width, height);
// Select the projection matrix
gl.glMatrixMode(GL10.GL_PROJECTION);
// Reset the projection matrix
gl.glLoadIdentity();
// Calculate the aspect ratio of the window
GLU.gluPerspective(gl, 45.0f, (float) width / (float) height, 0.1f, 100.0f);
// Select the modelview matrix
gl.glMatrixMode(GL10.GL_MODELVIEW);
// Reset the modelview matrix
gl.glLoadIdentity();
}
}
| [
"mingxin.android@gmail.com"
] | mingxin.android@gmail.com |
5c4459bc415fab16e37447b4aaddc47813d55d5a | dfc2d24310b242b6510c2291fc6f737b4930ba7d | /Output/CodePro/36_schemaspyTest/java/net/sourceforge/schemaspy/view/HtmlFormatterTest.java | c5e8dcb02cef893bb673117ea52ebf45e4326eea | [] | no_license | jakepetrovic/Jesh_Jacob_QualityOfTestsPaper | e06a97b0b0a1c647cbe499f37b958affff3c34aa | 2945d31c76bb4bdc65a7c95061758d9b7c4fe497 | refs/heads/master | 2016-09-16T04:07:10.088029 | 2015-07-04T21:10:20 | 2015-07-04T21:10:20 | 20,139,705 | 0 | 1 | null | null | null | null | UTF-8 | Java | false | false | 237,112 | java | package net.sourceforge.schemaspy.view;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.OutputStream;
import net.sourceforge.schemaspy.model.xml.SchemaMeta;
import java.sql.Connection;
import java.sql.DatabaseMetaData;
import java.util.HashSet;
import net.sourceforge.schemaspy.model.Table;
import java.util.List;
import java.util.Set;
import java.util.TreeSet;
import net.sourceforge.schemaspy.util.LineWriter;
import net.sourceforge.schemaspy.Config;
import net.sourceforge.schemaspy.model.Database;
import org.junit.*;
import net.sourceforge.schemaspy.model.xml.TableColumnMeta;
import net.sourceforge.schemaspy.model.TableColumn;
import static org.junit.Assert.*;
/**
* The class <code>HtmlFormatterTest</code> contains tests for the class <code>{@link HtmlFormatter}</code>.
*
* @generatedBy CodePro at 6/7/15 4:19 PM
* @author Jesh
* @version $Revision: 1.0 $
*/
public class HtmlFormatterTest {
/**
* An instance of the class being tested.
*
* @see HtmlFormatter
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
private HtmlFormatter fixture;
/**
* Return an instance of the class being tested.
*
* @return an instance of the class being tested
*
* @see HtmlFormatter
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
public HtmlFormatter getFixture()
throws Exception {
if (fixture == null) {
fixture = new HtmlFormatter();
}
return fixture;
}
/**
* Run the HtmlFormatter() constructor test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testHtmlFormatter_1()
throws Exception {
HtmlFormatter result = new HtmlFormatter();
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
assertNotNull(result);
}
/**
* Run the String getDescription(Database,Table,String,boolean) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testGetDescription_fixture_1()
throws Exception {
HtmlFormatter fixture2 = getFixture();
Database db = new Database(Config.getInstance(), (Connection) null, (DatabaseMetaData) null, "", "", "", new SchemaMeta("", "", ""));
Table table = null;
String text = "1";
boolean hoverHelp = false;
String result = fixture2.getDescription(db, table, text, hoverHelp);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
assertNotNull(result);
}
/**
* Run the String getDescription(Database,Table,String,boolean) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testGetDescription_fixture_2()
throws Exception {
HtmlFormatter fixture2 = getFixture();
Database db = new Database(new Config(), (Connection) null, (DatabaseMetaData) null, "0123456789", "0123456789", "0123456789", new SchemaMeta("", "", ""));
Table table = null;
String text = null;
boolean hoverHelp = true;
String result = fixture2.getDescription(db, table, text, hoverHelp);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
assertNotNull(result);
}
/**
* Run the String getDescription(Database,Table,String,boolean) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testGetDescription_fixture_3()
throws Exception {
HtmlFormatter fixture2 = getFixture();
Database db = new Database((Config) null, (Connection) null, (DatabaseMetaData) null, "0123456789", "0123456789", "0123456789", new SchemaMeta("0123456789", "0123456789", "0123456789"));
Table table = null;
String text = "1";
boolean hoverHelp = true;
String result = fixture2.getDescription(db, table, text, hoverHelp);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
assertNotNull(result);
}
/**
* Run the String getDescription(Database,Table,String,boolean) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testGetDescription_fixture_4()
throws Exception {
HtmlFormatter fixture2 = getFixture();
Database db = new Database((Config) null, (Connection) null, (DatabaseMetaData) null, (String) null, (String) null, (String) null, new SchemaMeta("An��t-1.0.txt", "An��t-1.0.txt", "An��t-1.0.txt"));
Table table = null;
String text = "1";
boolean hoverHelp = true;
String result = fixture2.getDescription(db, table, text, hoverHelp);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
assertNotNull(result);
}
/**
* Run the String getDescription(Database,Table,String,boolean) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testGetDescription_fixture_5()
throws Exception {
HtmlFormatter fixture2 = getFixture();
Database db = new Database(Config.getInstance(), (Connection) null, (DatabaseMetaData) null, "", "", "", new SchemaMeta("", "", ""));
Table table = null;
String text = "1";
boolean hoverHelp = true;
String result = fixture2.getDescription(db, table, text, hoverHelp);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
assertNotNull(result);
}
/**
* Run the String getDescription(Database,Table,String,boolean) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testGetDescription_fixture_6()
throws Exception {
HtmlFormatter fixture2 = getFixture();
Database db = new Database(Config.getInstance(), (Connection) null, (DatabaseMetaData) null, "An��t-1.0.txt", "An��t-1.0.txt", "An��t-1.0.txt", new SchemaMeta("0123456789", "0123456789", "0123456789"));
Table table = null;
String text = "1";
boolean hoverHelp = true;
String result = fixture2.getDescription(db, table, text, hoverHelp);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
assertNotNull(result);
}
/**
* Run the String getDescription(Database,Table,String,boolean) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testGetDescription_fixture_7()
throws Exception {
HtmlFormatter fixture2 = getFixture();
Database db = new Database(new Config(), (Connection) null, (DatabaseMetaData) null, "0123456789", "0123456789", "0123456789", new SchemaMeta("", "", ""));
Table table = null;
String text = "1";
boolean hoverHelp = true;
String result = fixture2.getDescription(db, table, text, hoverHelp);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
assertNotNull(result);
}
/**
* Run the String getDescription(Database,Table,String,boolean) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testGetDescription_fixture_8()
throws Exception {
HtmlFormatter fixture2 = getFixture();
Database db = new Database((Config) null, (Connection) null, (DatabaseMetaData) null, "0123456789", "0123456789", "0123456789", new SchemaMeta("0123456789", "0123456789", "0123456789"));
Table table = null;
String text = "1";
boolean hoverHelp = false;
String result = fixture2.getDescription(db, table, text, hoverHelp);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
assertNotNull(result);
}
/**
* Run the String getDescription(Database,Table,String,boolean) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testGetDescription_fixture_9()
throws Exception {
HtmlFormatter fixture2 = getFixture();
Database db = new Database(Config.getInstance(), (Connection) null, (DatabaseMetaData) null, "", "", "", new SchemaMeta("", "", ""));
Table table = null;
String text = null;
boolean hoverHelp = false;
String result = fixture2.getDescription(db, table, text, hoverHelp);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
assertNotNull(result);
}
/**
* Run the String getDescription(Database,Table,String,boolean) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testGetDescription_fixture_10()
throws Exception {
HtmlFormatter fixture2 = getFixture();
Database db = new Database(Config.getInstance(), (Connection) null, (DatabaseMetaData) null, "An��t-1.0.txt", "An��t-1.0.txt", "An��t-1.0.txt", new SchemaMeta("0123456789", "0123456789", "0123456789"));
Table table = null;
String text = null;
boolean hoverHelp = false;
String result = fixture2.getDescription(db, table, text, hoverHelp);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
assertNotNull(result);
}
/**
* Run the String getDescription(Database,Table,String,boolean) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testGetDescription_fixture_11()
throws Exception {
HtmlFormatter fixture2 = getFixture();
Database db = new Database(new Config(), (Connection) null, (DatabaseMetaData) null, "0123456789", "0123456789", "0123456789", new SchemaMeta("", "", ""));
Table table = null;
String text = null;
boolean hoverHelp = false;
String result = fixture2.getDescription(db, table, text, hoverHelp);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
assertNotNull(result);
}
/**
* Run the String getDescription(Database,Table,String,boolean) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testGetDescription_fixture_12()
throws Exception {
HtmlFormatter fixture2 = getFixture();
Database db = new Database(new Config(), (Connection) null, (DatabaseMetaData) null, (String) null, (String) null, (String) null, (SchemaMeta) null);
Table table = null;
String text = null;
boolean hoverHelp = false;
String result = fixture2.getDescription(db, table, text, hoverHelp);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
assertNotNull(result);
}
/**
* Run the String getDescription(Database,Table,String,boolean) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testGetDescription_fixture_13()
throws Exception {
HtmlFormatter fixture2 = getFixture();
Database db = new Database(new Config(new String[] {"", "0123456789", "An��t-1.0.txt", null}), (Connection) null, (DatabaseMetaData) null, "An��t-1.0.txt", "An��t-1.0.txt", "An��t-1.0.txt", new SchemaMeta("An��t-1.0.txt", "An��t-1.0.txt", "An��t-1.0.txt"));
Table table = null;
String text = null;
boolean hoverHelp = false;
String result = fixture2.getDescription(db, table, text, hoverHelp);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
assertNotNull(result);
}
/**
* Run the String getDescription(Database,Table,String,boolean) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testGetDescription_fixture_14()
throws Exception {
HtmlFormatter fixture2 = getFixture();
Database db = new Database(Config.getInstance(), (Connection) null, (DatabaseMetaData) null, "", "", "", new SchemaMeta("", "", ""));
Table table = null;
String text = null;
boolean hoverHelp = true;
String result = fixture2.getDescription(db, table, text, hoverHelp);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
assertNotNull(result);
}
/**
* Run the String getDescription(Database,Table,String,boolean) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testGetDescription_fixture_15()
throws Exception {
HtmlFormatter fixture2 = getFixture();
Database db = new Database(new Config(), (Connection) null, (DatabaseMetaData) null, (String) null, (String) null, (String) null, (SchemaMeta) null);
Table table = null;
String text = "1";
boolean hoverHelp = true;
String result = fixture2.getDescription(db, table, text, hoverHelp);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
assertNotNull(result);
}
/**
* Run the String getDescription(Database,Table,String,boolean) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testGetDescription_fixture_16()
throws Exception {
HtmlFormatter fixture2 = getFixture();
Database db = new Database(new Config(new String[] {"", "0123456789", "An��t-1.0.txt", null}), (Connection) null, (DatabaseMetaData) null, "An��t-1.0.txt", "An��t-1.0.txt", "An��t-1.0.txt", new SchemaMeta("An��t-1.0.txt", "An��t-1.0.txt", "An��t-1.0.txt"));
Table table = null;
String text = "1";
boolean hoverHelp = true;
String result = fixture2.getDescription(db, table, text, hoverHelp);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
assertNotNull(result);
}
/**
* Run the String getDescription(Database,Table,String,boolean) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testGetDescription_fixture_17()
throws Exception {
HtmlFormatter fixture2 = getFixture();
Database db = new Database((Config) null, (Connection) null, (DatabaseMetaData) null, "0123456789", "0123456789", "0123456789", new SchemaMeta("0123456789", "0123456789", "0123456789"));
Table table = null;
String text = null;
boolean hoverHelp = false;
String result = fixture2.getDescription(db, table, text, hoverHelp);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
assertNotNull(result);
}
/**
* Run the String getDescription(Database,Table,String,boolean) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testGetDescription_fixture_18()
throws Exception {
HtmlFormatter fixture2 = getFixture();
Database db = new Database((Config) null, (Connection) null, (DatabaseMetaData) null, (String) null, (String) null, (String) null, new SchemaMeta("An��t-1.0.txt", "An��t-1.0.txt", "An��t-1.0.txt"));
Table table = null;
String text = null;
boolean hoverHelp = false;
String result = fixture2.getDescription(db, table, text, hoverHelp);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
assertNotNull(result);
}
/**
* Run the String getDescription(Database,Table,String,boolean) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testGetDescription_fixture_19()
throws Exception {
HtmlFormatter fixture2 = getFixture();
Database db = new Database(Config.getInstance(), (Connection) null, (DatabaseMetaData) null, "An��t-1.0.txt", "An��t-1.0.txt", "An��t-1.0.txt", new SchemaMeta("0123456789", "0123456789", "0123456789"));
Table table = null;
String text = "1";
boolean hoverHelp = false;
String result = fixture2.getDescription(db, table, text, hoverHelp);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
assertNotNull(result);
}
/**
* Run the String getDescription(Database,Table,String,boolean) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testGetDescription_fixture_20()
throws Exception {
HtmlFormatter fixture2 = getFixture();
Database db = new Database(new Config(), (Connection) null, (DatabaseMetaData) null, (String) null, (String) null, (String) null, (SchemaMeta) null);
Table table = null;
String text = null;
boolean hoverHelp = true;
String result = fixture2.getDescription(db, table, text, hoverHelp);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
assertNotNull(result);
}
/**
* Run the String getDescription(Database,Table,String,boolean) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testGetDescription_fixture_21()
throws Exception {
HtmlFormatter fixture2 = getFixture();
Database db = new Database((Config) null, (Connection) null, (DatabaseMetaData) null, (String) null, (String) null, (String) null, new SchemaMeta("An��t-1.0.txt", "An��t-1.0.txt", "An��t-1.0.txt"));
Table table = null;
String text = null;
boolean hoverHelp = true;
String result = fixture2.getDescription(db, table, text, hoverHelp);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
assertNotNull(result);
}
/**
* Run the String getDescription(Database,Table,String,boolean) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testGetDescription_fixture_22()
throws Exception {
HtmlFormatter fixture2 = getFixture();
Database db = new Database(Config.getInstance(), (Connection) null, (DatabaseMetaData) null, "An��t-1.0.txt", "An��t-1.0.txt", "An��t-1.0.txt", new SchemaMeta("0123456789", "0123456789", "0123456789"));
Table table = null;
String text = null;
boolean hoverHelp = true;
String result = fixture2.getDescription(db, table, text, hoverHelp);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
assertNotNull(result);
}
/**
* Run the String getDescription(Database,Table,String,boolean) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testGetDescription_fixture_23()
throws Exception {
HtmlFormatter fixture2 = getFixture();
Database db = new Database(new Config(), (Connection) null, (DatabaseMetaData) null, (String) null, (String) null, (String) null, (SchemaMeta) null);
Table table = null;
String text = "1";
boolean hoverHelp = false;
String result = fixture2.getDescription(db, table, text, hoverHelp);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
assertNotNull(result);
}
/**
* Run the String getDescription(Database,Table,String,boolean) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testGetDescription_fixture_24()
throws Exception {
HtmlFormatter fixture2 = getFixture();
Database db = new Database(new Config(new String[] {"", "0123456789", "An��t-1.0.txt", null}), (Connection) null, (DatabaseMetaData) null, "An��t-1.0.txt", "An��t-1.0.txt", "An��t-1.0.txt", new SchemaMeta("An��t-1.0.txt", "An��t-1.0.txt", "An��t-1.0.txt"));
Table table = null;
String text = "1";
boolean hoverHelp = false;
String result = fixture2.getDescription(db, table, text, hoverHelp);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
assertNotNull(result);
}
/**
* Run the String getDescription(Database,Table,String,boolean) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testGetDescription_fixture_25()
throws Exception {
HtmlFormatter fixture2 = getFixture();
Database db = new Database((Config) null, (Connection) null, (DatabaseMetaData) null, "0123456789", "0123456789", "0123456789", new SchemaMeta("0123456789", "0123456789", "0123456789"));
Table table = null;
String text = null;
boolean hoverHelp = true;
String result = fixture2.getDescription(db, table, text, hoverHelp);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
assertNotNull(result);
}
/**
* Run the String getDescription(Database,Table,String,boolean) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testGetDescription_fixture_26()
throws Exception {
HtmlFormatter fixture2 = getFixture();
Database db = new Database(new Config(), (Connection) null, (DatabaseMetaData) null, "0123456789", "0123456789", "0123456789", new SchemaMeta("", "", ""));
Table table = null;
String text = "1";
boolean hoverHelp = false;
String result = fixture2.getDescription(db, table, text, hoverHelp);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
assertNotNull(result);
}
/**
* Run the String getDescription(Database,Table,String,boolean) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testGetDescription_fixture_27()
throws Exception {
HtmlFormatter fixture2 = getFixture();
Database db = new Database(new Config(new String[] {"", "0123456789", "An��t-1.0.txt", null}), (Connection) null, (DatabaseMetaData) null, "An��t-1.0.txt", "An��t-1.0.txt", "An��t-1.0.txt", new SchemaMeta("An��t-1.0.txt", "An��t-1.0.txt", "An��t-1.0.txt"));
Table table = null;
String text = null;
boolean hoverHelp = true;
String result = fixture2.getDescription(db, table, text, hoverHelp);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
assertNotNull(result);
}
/**
* Run the String getDescription(Database,Table,String,boolean) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testGetDescription_fixture_28()
throws Exception {
HtmlFormatter fixture2 = getFixture();
Database db = new Database((Config) null, (Connection) null, (DatabaseMetaData) null, (String) null, (String) null, (String) null, new SchemaMeta("An��t-1.0.txt", "An��t-1.0.txt", "An��t-1.0.txt"));
Table table = null;
String text = "1";
boolean hoverHelp = false;
String result = fixture2.getDescription(db, table, text, hoverHelp);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
assertNotNull(result);
}
/**
* Run the String getPathToRoot() method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testGetPathToRoot_fixture_1()
throws Exception {
HtmlFormatter fixture2 = getFixture();
String result = fixture2.getPathToRoot();
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
assertNotNull(result);
}
/**
* Run the boolean isAnomaliesPage() method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testIsAnomaliesPage_fixture_1()
throws Exception {
HtmlFormatter fixture2 = getFixture();
boolean result = fixture2.isAnomaliesPage();
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
assertTrue(result);
}
/**
* Run the boolean isColumnsPage() method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testIsColumnsPage_fixture_1()
throws Exception {
HtmlFormatter fixture2 = getFixture();
boolean result = fixture2.isColumnsPage();
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
assertTrue(result);
}
/**
* Run the boolean isConstraintsPage() method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testIsConstraintsPage_fixture_1()
throws Exception {
HtmlFormatter fixture2 = getFixture();
boolean result = fixture2.isConstraintsPage();
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
assertTrue(result);
}
/**
* Run the boolean isMainIndex() method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testIsMainIndex_fixture_1()
throws Exception {
HtmlFormatter fixture2 = getFixture();
boolean result = fixture2.isMainIndex();
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
assertTrue(result);
}
/**
* Run the boolean isOrphansPage() method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testIsOrphansPage_fixture_1()
throws Exception {
HtmlFormatter fixture2 = getFixture();
boolean result = fixture2.isOrphansPage();
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
assertTrue(result);
}
/**
* Run the boolean isRelationshipsPage() method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testIsRelationshipsPage_fixture_1()
throws Exception {
HtmlFormatter fixture2 = getFixture();
boolean result = fixture2.isRelationshipsPage();
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
assertTrue(result);
}
/**
* Run the boolean isRoutinesPage() method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testIsRoutinesPage_fixture_1()
throws Exception {
HtmlFormatter fixture2 = getFixture();
boolean result = fixture2.isRoutinesPage();
// add additional test code here
assertEquals(false, result);
}
/**
* Run the boolean sourceForgeLogoEnabled() method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testSourceForgeLogoEnabled_fixture_1()
throws Exception {
HtmlFormatter fixture2 = getFixture();
boolean result = fixture2.sourceForgeLogoEnabled();
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
assertTrue(result);
}
/**
* Run the String urlEncode(String) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testUrlEncode_1()
throws Exception {
String string = "";
String result = HtmlFormatter.urlEncode(string);
// add additional test code here
assertEquals("", result);
}
/**
* Run the String urlEncode(String) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testUrlEncode_2()
throws Exception {
String string = "0123456789";
String result = HtmlFormatter.urlEncode(string);
// add additional test code here
assertEquals("0123456789", result);
}
/**
* Run the void writeExcludedColumns(Set<TableColumn>,Table,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteExcludedColumns_fixture_1()
throws Exception {
HtmlFormatter fixture2 = getFixture();
HashSet<TableColumn> excludedColumns = new HashSet<TableColumn>();
excludedColumns.add(new TableColumn(new Table(new Database(Config.getInstance(), (Connection) null, (DatabaseMetaData) null, "", "", "", new SchemaMeta("", "", "")), "", "", "", ""), (TableColumnMeta) null));
Table table = null;
LineWriter html = new LineWriter("", "");
fixture2.writeExcludedColumns(excludedColumns, table, html);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// net.sourceforge.schemaspy.model.InvalidConfigurationException: Specified meta file "" does not exist
// at net.sourceforge.schemaspy.model.xml.SchemaMeta.<init>(SchemaMeta.java:74)
}
/**
* Run the void writeExcludedColumns(Set<TableColumn>,Table,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteExcludedColumns_fixture_2()
throws Exception {
HtmlFormatter fixture2 = getFixture();
HashSet<TableColumn> excludedColumns = new HashSet<TableColumn>();
excludedColumns.add(new TableColumn(new Table(new Database(Config.getInstance(), (Connection) null, (DatabaseMetaData) null, "An��t-1.0.txt", "An��t-1.0.txt", "An��t-1.0.txt", new SchemaMeta("0123456789", "0123456789", "0123456789")), "0123456789", "0123456789", "0123456789", "0123456789"), (TableColumnMeta) null));
Table table = null;
LineWriter html = new LineWriter("", 0, "");
fixture2.writeExcludedColumns(excludedColumns, table, html);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// net.sourceforge.schemaspy.model.InvalidConfigurationException: Specified meta file "0123456789" does not exist
// at net.sourceforge.schemaspy.model.xml.SchemaMeta.<init>(SchemaMeta.java:74)
}
/**
* Run the void writeExcludedColumns(Set<TableColumn>,Table,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteExcludedColumns_fixture_3()
throws Exception {
HtmlFormatter fixture2 = getFixture();
TreeSet<TableColumn> excludedColumns = new TreeSet<TableColumn>();
excludedColumns.add(new TableColumn(new Table(new Database(Config.getInstance(), (Connection) null, (DatabaseMetaData) null, "", "", "", new SchemaMeta("", "", "")), "", "", "", ""), (TableColumnMeta) null));
excludedColumns.add(new TableColumn(new Table(new Database(Config.getInstance(), (Connection) null, (DatabaseMetaData) null, "An��t-1.0.txt", "An��t-1.0.txt", "An��t-1.0.txt", new SchemaMeta("0123456789", "0123456789", "0123456789")), "0123456789", "0123456789", "0123456789", "0123456789"), (TableColumnMeta) null));
Table table = null;
LineWriter html = new LineWriter("0123456789", "0123456789");
fixture2.writeExcludedColumns(excludedColumns, table, html);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// net.sourceforge.schemaspy.model.InvalidConfigurationException: Specified meta file "" does not exist
// at net.sourceforge.schemaspy.model.xml.SchemaMeta.<init>(SchemaMeta.java:74)
}
/**
* Run the void writeExcludedColumns(Set<TableColumn>,Table,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteExcludedColumns_fixture_4()
throws Exception {
HtmlFormatter fixture2 = getFixture();
Set<TableColumn> excludedColumns = new HashSet<TableColumn>();
Table table = null;
LineWriter html = new LineWriter("0123456789", 1, "0123456789");
fixture2.writeExcludedColumns(excludedColumns, table, html);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeExcludedColumns(Set<TableColumn>,Table,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteExcludedColumns_fixture_5()
throws Exception {
HtmlFormatter fixture2 = getFixture();
HashSet<TableColumn> excludedColumns = new HashSet<TableColumn>();
excludedColumns.add(new TableColumn(new Table(new Database(Config.getInstance(), (Connection) null, (DatabaseMetaData) null, "", "", "", new SchemaMeta("", "", "")), "", "", "", ""), (TableColumnMeta) null));
Table table = null;
LineWriter html = new LineWriter("An��t-1.0.txt", 7, "An��t-1.0.txt");
fixture2.writeExcludedColumns(excludedColumns, table, html);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// net.sourceforge.schemaspy.model.InvalidConfigurationException: Specified meta file "" does not exist
// at net.sourceforge.schemaspy.model.xml.SchemaMeta.<init>(SchemaMeta.java:74)
}
/**
* Run the void writeExcludedColumns(Set<TableColumn>,Table,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteExcludedColumns_fixture_6()
throws Exception {
HtmlFormatter fixture2 = getFixture();
HashSet<TableColumn> excludedColumns = new HashSet<TableColumn>();
excludedColumns.add(new TableColumn(new Table(new Database(Config.getInstance(), (Connection) null, (DatabaseMetaData) null, "An��t-1.0.txt", "An��t-1.0.txt", "An��t-1.0.txt", new SchemaMeta("0123456789", "0123456789", "0123456789")), "0123456789", "0123456789", "0123456789", "0123456789"), (TableColumnMeta) null));
Table table = null;
LineWriter html = new LineWriter(File.createTempFile("", ""), "");
fixture2.writeExcludedColumns(excludedColumns, table, html);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// net.sourceforge.schemaspy.model.InvalidConfigurationException: Specified meta file "0123456789" does not exist
// at net.sourceforge.schemaspy.model.xml.SchemaMeta.<init>(SchemaMeta.java:74)
}
/**
* Run the void writeExcludedColumns(Set<TableColumn>,Table,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteExcludedColumns_fixture_7()
throws Exception {
HtmlFormatter fixture2 = getFixture();
TreeSet<TableColumn> excludedColumns = new TreeSet<TableColumn>();
excludedColumns.add(new TableColumn(new Table(new Database(Config.getInstance(), (Connection) null, (DatabaseMetaData) null, "", "", "", new SchemaMeta("", "", "")), "", "", "", ""), (TableColumnMeta) null));
excludedColumns.add(new TableColumn(new Table(new Database(Config.getInstance(), (Connection) null, (DatabaseMetaData) null, "An��t-1.0.txt", "An��t-1.0.txt", "An��t-1.0.txt", new SchemaMeta("0123456789", "0123456789", "0123456789")), "0123456789", "0123456789", "0123456789", "0123456789"), (TableColumnMeta) null));
Table table = null;
LineWriter html = new LineWriter(File.createTempFile("", ""), 0, "");
fixture2.writeExcludedColumns(excludedColumns, table, html);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// net.sourceforge.schemaspy.model.InvalidConfigurationException: Specified meta file "" does not exist
// at net.sourceforge.schemaspy.model.xml.SchemaMeta.<init>(SchemaMeta.java:74)
}
/**
* Run the void writeExcludedColumns(Set<TableColumn>,Table,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteExcludedColumns_fixture_8()
throws Exception {
HtmlFormatter fixture2 = getFixture();
Set<TableColumn> excludedColumns = new HashSet<TableColumn>();
Table table = null;
LineWriter html = new LineWriter(File.createTempFile("", "", (File) null), "0123456789");
fixture2.writeExcludedColumns(excludedColumns, table, html);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeExcludedColumns(Set<TableColumn>,Table,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteExcludedColumns_fixture_9()
throws Exception {
HtmlFormatter fixture2 = getFixture();
HashSet<TableColumn> excludedColumns = new HashSet<TableColumn>();
excludedColumns.add(new TableColumn(new Table(new Database(Config.getInstance(), (Connection) null, (DatabaseMetaData) null, "", "", "", new SchemaMeta("", "", "")), "", "", "", ""), (TableColumnMeta) null));
Table table = null;
LineWriter html = new LineWriter(File.createTempFile("", "", (File) null), 1, "0123456789");
fixture2.writeExcludedColumns(excludedColumns, table, html);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// net.sourceforge.schemaspy.model.InvalidConfigurationException: Specified meta file "" does not exist
// at net.sourceforge.schemaspy.model.xml.SchemaMeta.<init>(SchemaMeta.java:74)
}
/**
* Run the void writeExcludedColumns(Set<TableColumn>,Table,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteExcludedColumns_fixture_10()
throws Exception {
HtmlFormatter fixture2 = getFixture();
HashSet<TableColumn> excludedColumns = new HashSet<TableColumn>();
excludedColumns.add(new TableColumn(new Table(new Database(Config.getInstance(), (Connection) null, (DatabaseMetaData) null, "An��t-1.0.txt", "An��t-1.0.txt", "An��t-1.0.txt", new SchemaMeta("0123456789", "0123456789", "0123456789")), "0123456789", "0123456789", "0123456789", "0123456789"), (TableColumnMeta) null));
Table table = null;
LineWriter html = new LineWriter(File.createTempFile("0123456789", "0123456789"), 7, "An��t-1.0.txt");
fixture2.writeExcludedColumns(excludedColumns, table, html);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// net.sourceforge.schemaspy.model.InvalidConfigurationException: Specified meta file "0123456789" does not exist
// at net.sourceforge.schemaspy.model.xml.SchemaMeta.<init>(SchemaMeta.java:74)
}
/**
* Run the void writeExcludedColumns(Set<TableColumn>,Table,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteExcludedColumns_fixture_11()
throws Exception {
HtmlFormatter fixture2 = getFixture();
TreeSet<TableColumn> excludedColumns = new TreeSet<TableColumn>();
excludedColumns.add(new TableColumn(new Table(new Database(Config.getInstance(), (Connection) null, (DatabaseMetaData) null, "", "", "", new SchemaMeta("", "", "")), "", "", "", ""), (TableColumnMeta) null));
excludedColumns.add(new TableColumn(new Table(new Database(Config.getInstance(), (Connection) null, (DatabaseMetaData) null, "An��t-1.0.txt", "An��t-1.0.txt", "An��t-1.0.txt", new SchemaMeta("0123456789", "0123456789", "0123456789")), "0123456789", "0123456789", "0123456789", "0123456789"), (TableColumnMeta) null));
Table table = null;
LineWriter html = new LineWriter(new ByteArrayOutputStream(), "");
fixture2.writeExcludedColumns(excludedColumns, table, html);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// net.sourceforge.schemaspy.model.InvalidConfigurationException: Specified meta file "" does not exist
// at net.sourceforge.schemaspy.model.xml.SchemaMeta.<init>(SchemaMeta.java:74)
}
/**
* Run the void writeExcludedColumns(Set<TableColumn>,Table,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteExcludedColumns_fixture_12()
throws Exception {
HtmlFormatter fixture2 = getFixture();
Set<TableColumn> excludedColumns = new HashSet<TableColumn>();
Table table = null;
LineWriter html = new LineWriter(new ByteArrayOutputStream(), 0, "");
fixture2.writeExcludedColumns(excludedColumns, table, html);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeExcludedColumns(Set<TableColumn>,Table,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteExcludedColumns_fixture_13()
throws Exception {
HtmlFormatter fixture2 = getFixture();
HashSet<TableColumn> excludedColumns = new HashSet<TableColumn>();
excludedColumns.add(new TableColumn(new Table(new Database(Config.getInstance(), (Connection) null, (DatabaseMetaData) null, "", "", "", new SchemaMeta("", "", "")), "", "", "", ""), (TableColumnMeta) null));
Table table = null;
LineWriter html = new LineWriter(new ByteArrayOutputStream(), 7, "An��t-1.0.txt");
fixture2.writeExcludedColumns(excludedColumns, table, html);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// net.sourceforge.schemaspy.model.InvalidConfigurationException: Specified meta file "" does not exist
// at net.sourceforge.schemaspy.model.xml.SchemaMeta.<init>(SchemaMeta.java:74)
}
/**
* Run the void writeExcludedColumns(Set<TableColumn>,Table,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteExcludedColumns_fixture_14()
throws Exception {
HtmlFormatter fixture2 = getFixture();
HashSet<TableColumn> excludedColumns = new HashSet<TableColumn>();
excludedColumns.add(new TableColumn(new Table(new Database(Config.getInstance(), (Connection) null, (DatabaseMetaData) null, "An��t-1.0.txt", "An��t-1.0.txt", "An��t-1.0.txt", new SchemaMeta("0123456789", "0123456789", "0123456789")), "0123456789", "0123456789", "0123456789", "0123456789"), (TableColumnMeta) null));
Table table = null;
LineWriter html = new LineWriter((OutputStream) null, "0123456789");
fixture2.writeExcludedColumns(excludedColumns, table, html);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// net.sourceforge.schemaspy.model.InvalidConfigurationException: Specified meta file "0123456789" does not exist
// at net.sourceforge.schemaspy.model.xml.SchemaMeta.<init>(SchemaMeta.java:74)
}
/**
* Run the void writeExcludedColumns(Set<TableColumn>,Table,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteExcludedColumns_fixture_15()
throws Exception {
HtmlFormatter fixture2 = getFixture();
TreeSet<TableColumn> excludedColumns = new TreeSet<TableColumn>();
excludedColumns.add(new TableColumn(new Table(new Database(Config.getInstance(), (Connection) null, (DatabaseMetaData) null, "", "", "", new SchemaMeta("", "", "")), "", "", "", ""), (TableColumnMeta) null));
excludedColumns.add(new TableColumn(new Table(new Database(Config.getInstance(), (Connection) null, (DatabaseMetaData) null, "An��t-1.0.txt", "An��t-1.0.txt", "An��t-1.0.txt", new SchemaMeta("0123456789", "0123456789", "0123456789")), "0123456789", "0123456789", "0123456789", "0123456789"), (TableColumnMeta) null));
Table table = null;
LineWriter html = new LineWriter((OutputStream) null, 1, "0123456789");
fixture2.writeExcludedColumns(excludedColumns, table, html);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// net.sourceforge.schemaspy.model.InvalidConfigurationException: Specified meta file "" does not exist
// at net.sourceforge.schemaspy.model.xml.SchemaMeta.<init>(SchemaMeta.java:74)
}
/**
* Run the void writeExcludedColumns(Set<TableColumn>,Table,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteExcludedColumns_fixture_16()
throws Exception {
HtmlFormatter fixture2 = getFixture();
Set<TableColumn> excludedColumns = new TreeSet<TableColumn>();
Table table = null;
LineWriter html = new LineWriter("", "");
fixture2.writeExcludedColumns(excludedColumns, table, html);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeExcludedColumns(Set<TableColumn>,Table,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteExcludedColumns_fixture_17()
throws Exception {
HtmlFormatter fixture2 = getFixture();
HashSet<TableColumn> excludedColumns = new HashSet<TableColumn>();
excludedColumns.add(new TableColumn(new Table(new Database(Config.getInstance(), (Connection) null, (DatabaseMetaData) null, "", "", "", new SchemaMeta("", "", "")), "", "", "", ""), (TableColumnMeta) null));
excludedColumns.add(new TableColumn(new Table(new Database(Config.getInstance(), (Connection) null, (DatabaseMetaData) null, "An��t-1.0.txt", "An��t-1.0.txt", "An��t-1.0.txt", new SchemaMeta("0123456789", "0123456789", "0123456789")), "0123456789", "0123456789", "0123456789", "0123456789"), (TableColumnMeta) null));
Table table = null;
LineWriter html = new LineWriter("", 0, "");
fixture2.writeExcludedColumns(excludedColumns, table, html);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// net.sourceforge.schemaspy.model.InvalidConfigurationException: Specified meta file "" does not exist
// at net.sourceforge.schemaspy.model.xml.SchemaMeta.<init>(SchemaMeta.java:74)
}
/**
* Run the void writeExcludedColumns(Set<TableColumn>,Table,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteExcludedColumns_fixture_18()
throws Exception {
HtmlFormatter fixture2 = getFixture();
TreeSet<TableColumn> excludedColumns = new TreeSet<TableColumn>();
excludedColumns.add(new TableColumn(new Table(new Database(Config.getInstance(), (Connection) null, (DatabaseMetaData) null, "", "", "", new SchemaMeta("", "", "")), "", "", "", ""), (TableColumnMeta) null));
Table table = null;
LineWriter html = new LineWriter("0123456789", "0123456789");
fixture2.writeExcludedColumns(excludedColumns, table, html);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// net.sourceforge.schemaspy.model.InvalidConfigurationException: Specified meta file "" does not exist
// at net.sourceforge.schemaspy.model.xml.SchemaMeta.<init>(SchemaMeta.java:74)
}
/**
* Run the void writeExcludedColumns(Set<TableColumn>,Table,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteExcludedColumns_fixture_19()
throws Exception {
HtmlFormatter fixture2 = getFixture();
TreeSet<TableColumn> excludedColumns = new TreeSet<TableColumn>();
excludedColumns.add(new TableColumn(new Table(new Database(Config.getInstance(), (Connection) null, (DatabaseMetaData) null, "An��t-1.0.txt", "An��t-1.0.txt", "An��t-1.0.txt", new SchemaMeta("0123456789", "0123456789", "0123456789")), "0123456789", "0123456789", "0123456789", "0123456789"), (TableColumnMeta) null));
Table table = null;
LineWriter html = new LineWriter("0123456789", 1, "0123456789");
fixture2.writeExcludedColumns(excludedColumns, table, html);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// net.sourceforge.schemaspy.model.InvalidConfigurationException: Specified meta file "0123456789" does not exist
// at net.sourceforge.schemaspy.model.xml.SchemaMeta.<init>(SchemaMeta.java:74)
}
/**
* Run the void writeExcludedColumns(Set<TableColumn>,Table,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteExcludedColumns_fixture_20()
throws Exception {
HtmlFormatter fixture2 = getFixture();
Set<TableColumn> excludedColumns = new TreeSet<TableColumn>();
Table table = null;
LineWriter html = new LineWriter("An��t-1.0.txt", 7, "An��t-1.0.txt");
fixture2.writeExcludedColumns(excludedColumns, table, html);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeExcludedColumns(Set<TableColumn>,Table,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteExcludedColumns_fixture_21()
throws Exception {
HtmlFormatter fixture2 = getFixture();
HashSet<TableColumn> excludedColumns = new HashSet<TableColumn>();
excludedColumns.add(new TableColumn(new Table(new Database(Config.getInstance(), (Connection) null, (DatabaseMetaData) null, "", "", "", new SchemaMeta("", "", "")), "", "", "", ""), (TableColumnMeta) null));
excludedColumns.add(new TableColumn(new Table(new Database(Config.getInstance(), (Connection) null, (DatabaseMetaData) null, "An��t-1.0.txt", "An��t-1.0.txt", "An��t-1.0.txt", new SchemaMeta("0123456789", "0123456789", "0123456789")), "0123456789", "0123456789", "0123456789", "0123456789"), (TableColumnMeta) null));
Table table = null;
LineWriter html = new LineWriter(File.createTempFile("", ""), "");
fixture2.writeExcludedColumns(excludedColumns, table, html);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// net.sourceforge.schemaspy.model.InvalidConfigurationException: Specified meta file "" does not exist
// at net.sourceforge.schemaspy.model.xml.SchemaMeta.<init>(SchemaMeta.java:74)
}
/**
* Run the void writeExcludedColumns(Set<TableColumn>,Table,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteExcludedColumns_fixture_22()
throws Exception {
HtmlFormatter fixture2 = getFixture();
TreeSet<TableColumn> excludedColumns = new TreeSet<TableColumn>();
excludedColumns.add(new TableColumn(new Table(new Database(Config.getInstance(), (Connection) null, (DatabaseMetaData) null, "", "", "", new SchemaMeta("", "", "")), "", "", "", ""), (TableColumnMeta) null));
Table table = null;
LineWriter html = new LineWriter(File.createTempFile("", ""), 0, "");
fixture2.writeExcludedColumns(excludedColumns, table, html);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// net.sourceforge.schemaspy.model.InvalidConfigurationException: Specified meta file "" does not exist
// at net.sourceforge.schemaspy.model.xml.SchemaMeta.<init>(SchemaMeta.java:74)
}
/**
* Run the void writeExcludedColumns(Set<TableColumn>,Table,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteExcludedColumns_fixture_23()
throws Exception {
HtmlFormatter fixture2 = getFixture();
TreeSet<TableColumn> excludedColumns = new TreeSet<TableColumn>();
excludedColumns.add(new TableColumn(new Table(new Database(Config.getInstance(), (Connection) null, (DatabaseMetaData) null, "An��t-1.0.txt", "An��t-1.0.txt", "An��t-1.0.txt", new SchemaMeta("0123456789", "0123456789", "0123456789")), "0123456789", "0123456789", "0123456789", "0123456789"), (TableColumnMeta) null));
Table table = null;
LineWriter html = new LineWriter(File.createTempFile("", "", (File) null), "0123456789");
fixture2.writeExcludedColumns(excludedColumns, table, html);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// net.sourceforge.schemaspy.model.InvalidConfigurationException: Specified meta file "0123456789" does not exist
// at net.sourceforge.schemaspy.model.xml.SchemaMeta.<init>(SchemaMeta.java:74)
}
/**
* Run the void writeExcludedColumns(Set<TableColumn>,Table,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteExcludedColumns_fixture_24()
throws Exception {
HtmlFormatter fixture2 = getFixture();
Set<TableColumn> excludedColumns = new TreeSet<TableColumn>();
Table table = null;
LineWriter html = new LineWriter(File.createTempFile("", "", (File) null), 1, "0123456789");
fixture2.writeExcludedColumns(excludedColumns, table, html);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeExcludedColumns(Set<TableColumn>,Table,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteExcludedColumns_fixture_25()
throws Exception {
HtmlFormatter fixture2 = getFixture();
HashSet<TableColumn> excludedColumns = new HashSet<TableColumn>();
excludedColumns.add(new TableColumn(new Table(new Database(Config.getInstance(), (Connection) null, (DatabaseMetaData) null, "", "", "", new SchemaMeta("", "", "")), "", "", "", ""), (TableColumnMeta) null));
excludedColumns.add(new TableColumn(new Table(new Database(Config.getInstance(), (Connection) null, (DatabaseMetaData) null, "An��t-1.0.txt", "An��t-1.0.txt", "An��t-1.0.txt", new SchemaMeta("0123456789", "0123456789", "0123456789")), "0123456789", "0123456789", "0123456789", "0123456789"), (TableColumnMeta) null));
Table table = null;
LineWriter html = new LineWriter(File.createTempFile("0123456789", "0123456789"), 7, "An��t-1.0.txt");
fixture2.writeExcludedColumns(excludedColumns, table, html);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// net.sourceforge.schemaspy.model.InvalidConfigurationException: Specified meta file "" does not exist
// at net.sourceforge.schemaspy.model.xml.SchemaMeta.<init>(SchemaMeta.java:74)
}
/**
* Run the void writeExcludedColumns(Set<TableColumn>,Table,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteExcludedColumns_fixture_26()
throws Exception {
HtmlFormatter fixture2 = getFixture();
TreeSet<TableColumn> excludedColumns = new TreeSet<TableColumn>();
excludedColumns.add(new TableColumn(new Table(new Database(Config.getInstance(), (Connection) null, (DatabaseMetaData) null, "", "", "", new SchemaMeta("", "", "")), "", "", "", ""), (TableColumnMeta) null));
Table table = null;
LineWriter html = new LineWriter(new ByteArrayOutputStream(), "");
fixture2.writeExcludedColumns(excludedColumns, table, html);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// net.sourceforge.schemaspy.model.InvalidConfigurationException: Specified meta file "" does not exist
// at net.sourceforge.schemaspy.model.xml.SchemaMeta.<init>(SchemaMeta.java:74)
}
/**
* Run the void writeExcludedColumns(Set<TableColumn>,Table,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteExcludedColumns_fixture_27()
throws Exception {
HtmlFormatter fixture2 = getFixture();
TreeSet<TableColumn> excludedColumns = new TreeSet<TableColumn>();
excludedColumns.add(new TableColumn(new Table(new Database(Config.getInstance(), (Connection) null, (DatabaseMetaData) null, "An��t-1.0.txt", "An��t-1.0.txt", "An��t-1.0.txt", new SchemaMeta("0123456789", "0123456789", "0123456789")), "0123456789", "0123456789", "0123456789", "0123456789"), (TableColumnMeta) null));
Table table = null;
LineWriter html = new LineWriter(new ByteArrayOutputStream(), 0, "");
fixture2.writeExcludedColumns(excludedColumns, table, html);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// net.sourceforge.schemaspy.model.InvalidConfigurationException: Specified meta file "0123456789" does not exist
// at net.sourceforge.schemaspy.model.xml.SchemaMeta.<init>(SchemaMeta.java:74)
}
/**
* Run the void writeExcludedColumns(Set<TableColumn>,Table,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteExcludedColumns_fixture_28()
throws Exception {
HtmlFormatter fixture2 = getFixture();
Set<TableColumn> excludedColumns = new TreeSet<TableColumn>();
Table table = null;
LineWriter html = new LineWriter(new ByteArrayOutputStream(), 7, "An��t-1.0.txt");
fixture2.writeExcludedColumns(excludedColumns, table, html);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeExcludedColumns(Set<TableColumn>,Table,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteExcludedColumns_fixture_29()
throws Exception {
HtmlFormatter fixture2 = getFixture();
HashSet<TableColumn> excludedColumns = new HashSet<TableColumn>();
excludedColumns.add(new TableColumn(new Table(new Database(Config.getInstance(), (Connection) null, (DatabaseMetaData) null, "", "", "", new SchemaMeta("", "", "")), "", "", "", ""), (TableColumnMeta) null));
excludedColumns.add(new TableColumn(new Table(new Database(Config.getInstance(), (Connection) null, (DatabaseMetaData) null, "An��t-1.0.txt", "An��t-1.0.txt", "An��t-1.0.txt", new SchemaMeta("0123456789", "0123456789", "0123456789")), "0123456789", "0123456789", "0123456789", "0123456789"), (TableColumnMeta) null));
Table table = null;
LineWriter html = new LineWriter((OutputStream) null, "0123456789");
fixture2.writeExcludedColumns(excludedColumns, table, html);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// net.sourceforge.schemaspy.model.InvalidConfigurationException: Specified meta file "" does not exist
// at net.sourceforge.schemaspy.model.xml.SchemaMeta.<init>(SchemaMeta.java:74)
}
/**
* Run the void writeExcludedColumns(Set<TableColumn>,Table,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteExcludedColumns_fixture_30()
throws Exception {
HtmlFormatter fixture2 = getFixture();
TreeSet<TableColumn> excludedColumns = new TreeSet<TableColumn>();
excludedColumns.add(new TableColumn(new Table(new Database(Config.getInstance(), (Connection) null, (DatabaseMetaData) null, "", "", "", new SchemaMeta("", "", "")), "", "", "", ""), (TableColumnMeta) null));
Table table = null;
LineWriter html = new LineWriter((OutputStream) null, 1, "0123456789");
fixture2.writeExcludedColumns(excludedColumns, table, html);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// net.sourceforge.schemaspy.model.InvalidConfigurationException: Specified meta file "" does not exist
// at net.sourceforge.schemaspy.model.xml.SchemaMeta.<init>(SchemaMeta.java:74)
}
/**
* Run the void writeFooter(LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteFooter_fixture_1()
throws Exception {
HtmlFormatter fixture2 = getFixture();
LineWriter html = new LineWriter("", "");
fixture2.writeFooter(html);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeFooter(LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteFooter_fixture_2()
throws Exception {
HtmlFormatter fixture2 = getFixture();
LineWriter html = new LineWriter("", 0, "");
fixture2.writeFooter(html);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeFooter(LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteFooter_fixture_3()
throws Exception {
HtmlFormatter fixture2 = getFixture();
LineWriter html = new LineWriter("0123456789", "0123456789");
fixture2.writeFooter(html);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeFooter(LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteFooter_fixture_4()
throws Exception {
HtmlFormatter fixture2 = getFixture();
LineWriter html = new LineWriter("0123456789", 1, "0123456789");
fixture2.writeFooter(html);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeFooter(LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteFooter_fixture_5()
throws Exception {
HtmlFormatter fixture2 = getFixture();
LineWriter html = new LineWriter("An��t-1.0.txt", 7, "An��t-1.0.txt");
fixture2.writeFooter(html);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeFooter(LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteFooter_fixture_6()
throws Exception {
HtmlFormatter fixture2 = getFixture();
LineWriter html = new LineWriter(File.createTempFile("", ""), "");
fixture2.writeFooter(html);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeFooter(LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteFooter_fixture_7()
throws Exception {
HtmlFormatter fixture2 = getFixture();
LineWriter html = new LineWriter(File.createTempFile("", ""), 0, "");
fixture2.writeFooter(html);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeFooter(LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteFooter_fixture_8()
throws Exception {
HtmlFormatter fixture2 = getFixture();
LineWriter html = new LineWriter(File.createTempFile("", "", (File) null), "0123456789");
fixture2.writeFooter(html);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeFooter(LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteFooter_fixture_9()
throws Exception {
HtmlFormatter fixture2 = getFixture();
LineWriter html = new LineWriter(File.createTempFile("", "", (File) null), 1, "0123456789");
fixture2.writeFooter(html);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeFooter(LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteFooter_fixture_10()
throws Exception {
HtmlFormatter fixture2 = getFixture();
LineWriter html = new LineWriter(File.createTempFile("0123456789", "0123456789"), 7, "An��t-1.0.txt");
fixture2.writeFooter(html);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeFooter(LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteFooter_fixture_11()
throws Exception {
HtmlFormatter fixture2 = getFixture();
LineWriter html = new LineWriter(new ByteArrayOutputStream(), "");
fixture2.writeFooter(html);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeFooter(LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteFooter_fixture_12()
throws Exception {
HtmlFormatter fixture2 = getFixture();
LineWriter html = new LineWriter(new ByteArrayOutputStream(), 0, "");
fixture2.writeFooter(html);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeFooter(LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteFooter_fixture_13()
throws Exception {
HtmlFormatter fixture2 = getFixture();
LineWriter html = new LineWriter(new ByteArrayOutputStream(), 7, "An��t-1.0.txt");
fixture2.writeFooter(html);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeFooter(LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteFooter_fixture_14()
throws Exception {
HtmlFormatter fixture2 = getFixture();
LineWriter html = new LineWriter((OutputStream) null, "0123456789");
fixture2.writeFooter(html);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeFooter(LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteFooter_fixture_15()
throws Exception {
HtmlFormatter fixture2 = getFixture();
LineWriter html = new LineWriter((OutputStream) null, 1, "0123456789");
fixture2.writeFooter(html);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeGeneratedOn(String,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteGeneratedOn_fixture_1()
throws Exception {
HtmlFormatter fixture2 = getFixture();
String connectTime = "";
LineWriter html = new LineWriter("", "");
fixture2.writeGeneratedOn(connectTime, html);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeGeneratedOn(String,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteGeneratedOn_fixture_2()
throws Exception {
HtmlFormatter fixture2 = getFixture();
String connectTime = "0123456789";
LineWriter html = new LineWriter("", 0, "");
fixture2.writeGeneratedOn(connectTime, html);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeGeneratedOn(String,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteGeneratedOn_fixture_3()
throws Exception {
HtmlFormatter fixture2 = getFixture();
String connectTime = "";
LineWriter html = new LineWriter("0123456789", "0123456789");
fixture2.writeGeneratedOn(connectTime, html);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeGeneratedOn(String,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteGeneratedOn_fixture_4()
throws Exception {
HtmlFormatter fixture2 = getFixture();
String connectTime = "0123456789";
LineWriter html = new LineWriter("0123456789", 1, "0123456789");
fixture2.writeGeneratedOn(connectTime, html);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeGeneratedOn(String,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteGeneratedOn_fixture_5()
throws Exception {
HtmlFormatter fixture2 = getFixture();
String connectTime = "";
LineWriter html = new LineWriter("An��t-1.0.txt", 7, "An��t-1.0.txt");
fixture2.writeGeneratedOn(connectTime, html);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeGeneratedOn(String,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteGeneratedOn_fixture_6()
throws Exception {
HtmlFormatter fixture2 = getFixture();
String connectTime = "0123456789";
LineWriter html = new LineWriter(File.createTempFile("", ""), "");
fixture2.writeGeneratedOn(connectTime, html);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeGeneratedOn(String,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteGeneratedOn_fixture_7()
throws Exception {
HtmlFormatter fixture2 = getFixture();
String connectTime = "";
LineWriter html = new LineWriter(File.createTempFile("", ""), 0, "");
fixture2.writeGeneratedOn(connectTime, html);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeGeneratedOn(String,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteGeneratedOn_fixture_8()
throws Exception {
HtmlFormatter fixture2 = getFixture();
String connectTime = "0123456789";
LineWriter html = new LineWriter(File.createTempFile("", "", (File) null), "0123456789");
fixture2.writeGeneratedOn(connectTime, html);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeGeneratedOn(String,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteGeneratedOn_fixture_9()
throws Exception {
HtmlFormatter fixture2 = getFixture();
String connectTime = "";
LineWriter html = new LineWriter(File.createTempFile("", "", (File) null), 1, "0123456789");
fixture2.writeGeneratedOn(connectTime, html);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeGeneratedOn(String,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteGeneratedOn_fixture_10()
throws Exception {
HtmlFormatter fixture2 = getFixture();
String connectTime = "0123456789";
LineWriter html = new LineWriter(File.createTempFile("0123456789", "0123456789"), 7, "An��t-1.0.txt");
fixture2.writeGeneratedOn(connectTime, html);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeGeneratedOn(String,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteGeneratedOn_fixture_11()
throws Exception {
HtmlFormatter fixture2 = getFixture();
String connectTime = "";
LineWriter html = new LineWriter(new ByteArrayOutputStream(), "");
fixture2.writeGeneratedOn(connectTime, html);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeGeneratedOn(String,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteGeneratedOn_fixture_12()
throws Exception {
HtmlFormatter fixture2 = getFixture();
String connectTime = "0123456789";
LineWriter html = new LineWriter(new ByteArrayOutputStream(), 0, "");
fixture2.writeGeneratedOn(connectTime, html);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeGeneratedOn(String,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteGeneratedOn_fixture_13()
throws Exception {
HtmlFormatter fixture2 = getFixture();
String connectTime = "";
LineWriter html = new LineWriter(new ByteArrayOutputStream(), 7, "An��t-1.0.txt");
fixture2.writeGeneratedOn(connectTime, html);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeGeneratedOn(String,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteGeneratedOn_fixture_14()
throws Exception {
HtmlFormatter fixture2 = getFixture();
String connectTime = "0123456789";
LineWriter html = new LineWriter((OutputStream) null, "0123456789");
fixture2.writeGeneratedOn(connectTime, html);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeGeneratedOn(String,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteGeneratedOn_fixture_15()
throws Exception {
HtmlFormatter fixture2 = getFixture();
String connectTime = "";
LineWriter html = new LineWriter((OutputStream) null, 1, "0123456789");
fixture2.writeGeneratedOn(connectTime, html);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeGeneratedOn(String,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteGeneratedOn_fixture_16()
throws Exception {
HtmlFormatter fixture2 = getFixture();
String connectTime = "";
LineWriter html = new LineWriter("", 0, "");
fixture2.writeGeneratedOn(connectTime, html);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeGeneratedOn(String,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteGeneratedOn_fixture_17()
throws Exception {
HtmlFormatter fixture2 = getFixture();
String connectTime = "0123456789";
LineWriter html = new LineWriter("0123456789", "0123456789");
fixture2.writeGeneratedOn(connectTime, html);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeGeneratedOn(String,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteGeneratedOn_fixture_18()
throws Exception {
HtmlFormatter fixture2 = getFixture();
String connectTime = "";
LineWriter html = new LineWriter("0123456789", 1, "0123456789");
fixture2.writeGeneratedOn(connectTime, html);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeGeneratedOn(String,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteGeneratedOn_fixture_19()
throws Exception {
HtmlFormatter fixture2 = getFixture();
String connectTime = "0123456789";
LineWriter html = new LineWriter("An��t-1.0.txt", 7, "An��t-1.0.txt");
fixture2.writeGeneratedOn(connectTime, html);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeGeneratedOn(String,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteGeneratedOn_fixture_20()
throws Exception {
HtmlFormatter fixture2 = getFixture();
String connectTime = "";
LineWriter html = new LineWriter(File.createTempFile("", ""), "");
fixture2.writeGeneratedOn(connectTime, html);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeGeneratedOn(String,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteGeneratedOn_fixture_21()
throws Exception {
HtmlFormatter fixture2 = getFixture();
String connectTime = "0123456789";
LineWriter html = new LineWriter(File.createTempFile("", ""), 0, "");
fixture2.writeGeneratedOn(connectTime, html);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeGeneratedOn(String,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteGeneratedOn_fixture_22()
throws Exception {
HtmlFormatter fixture2 = getFixture();
String connectTime = "";
LineWriter html = new LineWriter(File.createTempFile("", "", (File) null), "0123456789");
fixture2.writeGeneratedOn(connectTime, html);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeGeneratedOn(String,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteGeneratedOn_fixture_23()
throws Exception {
HtmlFormatter fixture2 = getFixture();
String connectTime = "0123456789";
LineWriter html = new LineWriter(File.createTempFile("", "", (File) null), 1, "0123456789");
fixture2.writeGeneratedOn(connectTime, html);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeGeneratedOn(String,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteGeneratedOn_fixture_24()
throws Exception {
HtmlFormatter fixture2 = getFixture();
String connectTime = "";
LineWriter html = new LineWriter(File.createTempFile("0123456789", "0123456789"), 7, "An��t-1.0.txt");
fixture2.writeGeneratedOn(connectTime, html);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeGeneratedOn(String,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteGeneratedOn_fixture_25()
throws Exception {
HtmlFormatter fixture2 = getFixture();
String connectTime = "0123456789";
LineWriter html = new LineWriter(new ByteArrayOutputStream(), "");
fixture2.writeGeneratedOn(connectTime, html);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeGeneratedOn(String,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteGeneratedOn_fixture_26()
throws Exception {
HtmlFormatter fixture2 = getFixture();
String connectTime = "";
LineWriter html = new LineWriter(new ByteArrayOutputStream(), 0, "");
fixture2.writeGeneratedOn(connectTime, html);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeGeneratedOn(String,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteGeneratedOn_fixture_27()
throws Exception {
HtmlFormatter fixture2 = getFixture();
String connectTime = "0123456789";
LineWriter html = new LineWriter(new ByteArrayOutputStream(), 7, "An��t-1.0.txt");
fixture2.writeGeneratedOn(connectTime, html);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeGeneratedOn(String,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteGeneratedOn_fixture_28()
throws Exception {
HtmlFormatter fixture2 = getFixture();
String connectTime = "";
LineWriter html = new LineWriter((OutputStream) null, "0123456789");
fixture2.writeGeneratedOn(connectTime, html);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeGeneratedOn(String,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteGeneratedOn_fixture_29()
throws Exception {
HtmlFormatter fixture2 = getFixture();
String connectTime = "0123456789";
LineWriter html = new LineWriter((OutputStream) null, 1, "0123456789");
fixture2.writeGeneratedOn(connectTime, html);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeGeneratedOn(String,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteGeneratedOn_fixture_30()
throws Exception {
HtmlFormatter fixture2 = getFixture();
String connectTime = "0123456789";
LineWriter html = new LineWriter("", "");
fixture2.writeGeneratedOn(connectTime, html);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeHeader(Database,Table,String,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteHeader_fixture_1()
throws Exception {
HtmlFormatter fixture2 = getFixture();
Database db = new Database(Config.getInstance(), (Connection) null, (DatabaseMetaData) null, "", "", "", new SchemaMeta("", "", ""));
Table table = new Table(new Database(Config.getInstance(), (Connection) null, (DatabaseMetaData) null, "", "", "", new SchemaMeta("", "", "")), "", "", "", "");
String text = "";
LineWriter out = new LineWriter("", "");
fixture2.writeHeader(db, table, text, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeHeader(Database,Table,String,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteHeader_fixture_2()
throws Exception {
HtmlFormatter fixture2 = getFixture();
Database db = new Database(Config.getInstance(), (Connection) null, (DatabaseMetaData) null, "An��t-1.0.txt", "An��t-1.0.txt", "An��t-1.0.txt", new SchemaMeta("0123456789", "0123456789", "0123456789"));
Table table = new Table(new Database(Config.getInstance(), (Connection) null, (DatabaseMetaData) null, "An��t-1.0.txt", "An��t-1.0.txt", "An��t-1.0.txt", new SchemaMeta("0123456789", "0123456789", "0123456789")), "0123456789", "0123456789", "0123456789", "0123456789");
String text = "0123456789";
LineWriter out = new LineWriter("", 0, "");
fixture2.writeHeader(db, table, text, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeHeader(Database,Table,String,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteHeader_fixture_3()
throws Exception {
HtmlFormatter fixture2 = getFixture();
Database db = new Database(new Config(), (Connection) null, (DatabaseMetaData) null, "0123456789", "0123456789", "0123456789", new SchemaMeta("", "", ""));
Table table = new Table(new Database(new Config(), (Connection) null, (DatabaseMetaData) null, (String) null, (String) null, (String) null, (SchemaMeta) null), (String) null, (String) null, (String) null, (String) null);
String text = "";
LineWriter out = new LineWriter("0123456789", "0123456789");
fixture2.writeHeader(db, table, text, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeHeader(Database,Table,String,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteHeader_fixture_4()
throws Exception {
HtmlFormatter fixture2 = getFixture();
Database db = new Database(new Config(), (Connection) null, (DatabaseMetaData) null, (String) null, (String) null, (String) null, (SchemaMeta) null);
Table table = new Table(new Database((Config) null, (Connection) null, (DatabaseMetaData) null, "0123456789", "0123456789", "0123456789", new SchemaMeta("0123456789", "0123456789", "0123456789")), "0123456789", "0123456789", "", (String) null);
String text = "0123456789";
LineWriter out = new LineWriter("0123456789", 1, "0123456789");
fixture2.writeHeader(db, table, text, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeHeader(Database,Table,String,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteHeader_fixture_5()
throws Exception {
HtmlFormatter fixture2 = getFixture();
Database db = new Database((Config) null, (Connection) null, (DatabaseMetaData) null, "0123456789", "0123456789", "0123456789", new SchemaMeta("0123456789", "0123456789", "0123456789"));
Table table = new Table(new Database(Config.getInstance(), (Connection) null, (DatabaseMetaData) null, "An��t-1.0.txt", "An��t-1.0.txt", "An��t-1.0.txt", new SchemaMeta("0123456789", "0123456789", "0123456789")), "0123456789", "0123456789", "0123456789", "0123456789");
String text = "";
LineWriter out = new LineWriter("An��t-1.0.txt", 7, "An��t-1.0.txt");
fixture2.writeHeader(db, table, text, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeHeader(Database,Table,String,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteHeader_fixture_6()
throws Exception {
HtmlFormatter fixture2 = getFixture();
Database db = new Database((Config) null, (Connection) null, (DatabaseMetaData) null, (String) null, (String) null, (String) null, new SchemaMeta("An��t-1.0.txt", "An��t-1.0.txt", "An��t-1.0.txt"));
Table table = new Table(new Database(new Config(), (Connection) null, (DatabaseMetaData) null, "0123456789", "0123456789", "0123456789", new SchemaMeta("", "", "")), "An��t-1.0.txt", "An��t-1.0.txt", "An��t-1.0.txt", "An��t-1.0.txt");
String text = "0123456789";
LineWriter out = new LineWriter(File.createTempFile("", ""), "");
fixture2.writeHeader(db, table, text, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeHeader(Database,Table,String,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteHeader_fixture_7()
throws Exception {
HtmlFormatter fixture2 = getFixture();
Database db = new Database(Config.getInstance(), (Connection) null, (DatabaseMetaData) null, "", "", "", new SchemaMeta("", "", ""));
Table table = new Table(new Database((Config) null, (Connection) null, (DatabaseMetaData) null, "0123456789", "0123456789", "0123456789", new SchemaMeta("0123456789", "0123456789", "0123456789")), "0123456789", "0123456789", "", (String) null);
String text = "";
LineWriter out = new LineWriter(File.createTempFile("", ""), 0, "");
fixture2.writeHeader(db, table, text, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeHeader(Database,Table,String,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteHeader_fixture_8()
throws Exception {
HtmlFormatter fixture2 = getFixture();
Database db = new Database(new Config(), (Connection) null, (DatabaseMetaData) null, "0123456789", "0123456789", "0123456789", new SchemaMeta("", "", ""));
Table table = new Table(new Database(Config.getInstance(), (Connection) null, (DatabaseMetaData) null, "", "", "", new SchemaMeta("", "", "")), "", "", "", "");
String text = "0123456789";
LineWriter out = new LineWriter(File.createTempFile("", "", (File) null), "0123456789");
fixture2.writeHeader(db, table, text, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeHeader(Database,Table,String,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteHeader_fixture_9()
throws Exception {
HtmlFormatter fixture2 = getFixture();
Database db = new Database(new Config(), (Connection) null, (DatabaseMetaData) null, (String) null, (String) null, (String) null, (SchemaMeta) null);
Table table = new Table(new Database(new Config(), (Connection) null, (DatabaseMetaData) null, "0123456789", "0123456789", "0123456789", new SchemaMeta("", "", "")), "An��t-1.0.txt", "An��t-1.0.txt", "An��t-1.0.txt", "An��t-1.0.txt");
String text = "";
LineWriter out = new LineWriter(File.createTempFile("", "", (File) null), 1, "0123456789");
fixture2.writeHeader(db, table, text, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeHeader(Database,Table,String,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteHeader_fixture_10()
throws Exception {
HtmlFormatter fixture2 = getFixture();
Database db = new Database(new Config(new String[] {"", "0123456789", "An��t-1.0.txt", null}), (Connection) null, (DatabaseMetaData) null, "An��t-1.0.txt", "An��t-1.0.txt", "An��t-1.0.txt", new SchemaMeta("An��t-1.0.txt", "An��t-1.0.txt", "An��t-1.0.txt"));
Table table = new Table(new Database(new Config(), (Connection) null, (DatabaseMetaData) null, (String) null, (String) null, (String) null, (SchemaMeta) null), (String) null, (String) null, (String) null, (String) null);
String text = "0123456789";
LineWriter out = new LineWriter(File.createTempFile("0123456789", "0123456789"), 7, "An��t-1.0.txt");
fixture2.writeHeader(db, table, text, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeHeader(Database,Table,String,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteHeader_fixture_11()
throws Exception {
HtmlFormatter fixture2 = getFixture();
Database db = new Database((Config) null, (Connection) null, (DatabaseMetaData) null, (String) null, (String) null, (String) null, new SchemaMeta("An��t-1.0.txt", "An��t-1.0.txt", "An��t-1.0.txt"));
Table table = new Table(new Database(Config.getInstance(), (Connection) null, (DatabaseMetaData) null, "", "", "", new SchemaMeta("", "", "")), "", "", "", "");
String text = "";
LineWriter out = new LineWriter(new ByteArrayOutputStream(), "");
fixture2.writeHeader(db, table, text, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeHeader(Database,Table,String,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteHeader_fixture_12()
throws Exception {
HtmlFormatter fixture2 = getFixture();
Database db = new Database(Config.getInstance(), (Connection) null, (DatabaseMetaData) null, "", "", "", new SchemaMeta("", "", ""));
Table table = new Table(new Database(Config.getInstance(), (Connection) null, (DatabaseMetaData) null, "An��t-1.0.txt", "An��t-1.0.txt", "An��t-1.0.txt", new SchemaMeta("0123456789", "0123456789", "0123456789")), "0123456789", "0123456789", "0123456789", "0123456789");
String text = "0123456789";
LineWriter out = new LineWriter(new ByteArrayOutputStream(), 0, "");
fixture2.writeHeader(db, table, text, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeHeader(Database,Table,String,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteHeader_fixture_13()
throws Exception {
HtmlFormatter fixture2 = getFixture();
Database db = new Database(Config.getInstance(), (Connection) null, (DatabaseMetaData) null, "An��t-1.0.txt", "An��t-1.0.txt", "An��t-1.0.txt", new SchemaMeta("0123456789", "0123456789", "0123456789"));
Table table = new Table(new Database(new Config(), (Connection) null, (DatabaseMetaData) null, (String) null, (String) null, (String) null, (SchemaMeta) null), (String) null, (String) null, (String) null, (String) null);
String text = "";
LineWriter out = new LineWriter(new ByteArrayOutputStream(), 7, "An��t-1.0.txt");
fixture2.writeHeader(db, table, text, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeHeader(Database,Table,String,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteHeader_fixture_14()
throws Exception {
HtmlFormatter fixture2 = getFixture();
Database db = new Database(new Config(), (Connection) null, (DatabaseMetaData) null, "0123456789", "0123456789", "0123456789", new SchemaMeta("", "", ""));
Table table = new Table(new Database((Config) null, (Connection) null, (DatabaseMetaData) null, "0123456789", "0123456789", "0123456789", new SchemaMeta("0123456789", "0123456789", "0123456789")), "0123456789", "0123456789", "", (String) null);
String text = "0123456789";
LineWriter out = new LineWriter((OutputStream) null, "0123456789");
fixture2.writeHeader(db, table, text, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeHeader(Database,Table,String,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteHeader_fixture_15()
throws Exception {
HtmlFormatter fixture2 = getFixture();
Database db = new Database(new Config(new String[] {"", "0123456789", "An��t-1.0.txt", null}), (Connection) null, (DatabaseMetaData) null, "An��t-1.0.txt", "An��t-1.0.txt", "An��t-1.0.txt", new SchemaMeta("An��t-1.0.txt", "An��t-1.0.txt", "An��t-1.0.txt"));
Table table = new Table(new Database(Config.getInstance(), (Connection) null, (DatabaseMetaData) null, "An��t-1.0.txt", "An��t-1.0.txt", "An��t-1.0.txt", new SchemaMeta("0123456789", "0123456789", "0123456789")), "0123456789", "0123456789", "0123456789", "0123456789");
String text = "";
LineWriter out = new LineWriter((OutputStream) null, 1, "0123456789");
fixture2.writeHeader(db, table, text, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeHeader(Database,Table,String,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteHeader_fixture_16()
throws Exception {
HtmlFormatter fixture2 = getFixture();
Database db = new Database((Config) null, (Connection) null, (DatabaseMetaData) null, "0123456789", "0123456789", "0123456789", new SchemaMeta("0123456789", "0123456789", "0123456789"));
Table table = new Table(new Database(new Config(), (Connection) null, (DatabaseMetaData) null, (String) null, (String) null, (String) null, (SchemaMeta) null), (String) null, (String) null, (String) null, (String) null);
String text = "";
LineWriter out = new LineWriter("", "");
fixture2.writeHeader(db, table, text, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeHeader(Database,Table,String,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteHeader_fixture_17()
throws Exception {
HtmlFormatter fixture2 = getFixture();
Database db = new Database((Config) null, (Connection) null, (DatabaseMetaData) null, (String) null, (String) null, (String) null, new SchemaMeta("An��t-1.0.txt", "An��t-1.0.txt", "An��t-1.0.txt"));
Table table = new Table(new Database((Config) null, (Connection) null, (DatabaseMetaData) null, "0123456789", "0123456789", "0123456789", new SchemaMeta("0123456789", "0123456789", "0123456789")), "0123456789", "0123456789", "", (String) null);
String text = "0123456789";
LineWriter out = new LineWriter("", 0, "");
fixture2.writeHeader(db, table, text, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeHeader(Database,Table,String,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteHeader_fixture_18()
throws Exception {
HtmlFormatter fixture2 = getFixture();
Database db = new Database(Config.getInstance(), (Connection) null, (DatabaseMetaData) null, "An��t-1.0.txt", "An��t-1.0.txt", "An��t-1.0.txt", new SchemaMeta("0123456789", "0123456789", "0123456789"));
Table table = new Table(new Database(Config.getInstance(), (Connection) null, (DatabaseMetaData) null, "An��t-1.0.txt", "An��t-1.0.txt", "An��t-1.0.txt", new SchemaMeta("0123456789", "0123456789", "0123456789")), "0123456789", "0123456789", "0123456789", "0123456789");
String text = "";
LineWriter out = new LineWriter("0123456789", "0123456789");
fixture2.writeHeader(db, table, text, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeHeader(Database,Table,String,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteHeader_fixture_19()
throws Exception {
HtmlFormatter fixture2 = getFixture();
Database db = new Database(new Config(), (Connection) null, (DatabaseMetaData) null, "0123456789", "0123456789", "0123456789", new SchemaMeta("", "", ""));
Table table = new Table(new Database(new Config(), (Connection) null, (DatabaseMetaData) null, "0123456789", "0123456789", "0123456789", new SchemaMeta("", "", "")), "An��t-1.0.txt", "An��t-1.0.txt", "An��t-1.0.txt", "An��t-1.0.txt");
String text = "0123456789";
LineWriter out = new LineWriter("0123456789", 1, "0123456789");
fixture2.writeHeader(db, table, text, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeHeader(Database,Table,String,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteHeader_fixture_20()
throws Exception {
HtmlFormatter fixture2 = getFixture();
Database db = new Database(new Config(), (Connection) null, (DatabaseMetaData) null, (String) null, (String) null, (String) null, (SchemaMeta) null);
Table table = new Table(new Database((Config) null, (Connection) null, (DatabaseMetaData) null, "0123456789", "0123456789", "0123456789", new SchemaMeta("0123456789", "0123456789", "0123456789")), "0123456789", "0123456789", "", (String) null);
String text = "";
LineWriter out = new LineWriter("An��t-1.0.txt", 7, "An��t-1.0.txt");
fixture2.writeHeader(db, table, text, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeHeader(Database,Table,String,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteHeader_fixture_21()
throws Exception {
HtmlFormatter fixture2 = getFixture();
Database db = new Database((Config) null, (Connection) null, (DatabaseMetaData) null, "0123456789", "0123456789", "0123456789", new SchemaMeta("0123456789", "0123456789", "0123456789"));
Table table = new Table(new Database(Config.getInstance(), (Connection) null, (DatabaseMetaData) null, "", "", "", new SchemaMeta("", "", "")), "", "", "", "");
String text = "0123456789";
LineWriter out = new LineWriter(File.createTempFile("", ""), "");
fixture2.writeHeader(db, table, text, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeHeader(Database,Table,String,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteHeader_fixture_22()
throws Exception {
HtmlFormatter fixture2 = getFixture();
Database db = new Database((Config) null, (Connection) null, (DatabaseMetaData) null, (String) null, (String) null, (String) null, new SchemaMeta("An��t-1.0.txt", "An��t-1.0.txt", "An��t-1.0.txt"));
Table table = new Table(new Database(new Config(), (Connection) null, (DatabaseMetaData) null, "0123456789", "0123456789", "0123456789", new SchemaMeta("", "", "")), "An��t-1.0.txt", "An��t-1.0.txt", "An��t-1.0.txt", "An��t-1.0.txt");
String text = "";
LineWriter out = new LineWriter(File.createTempFile("", ""), 0, "");
fixture2.writeHeader(db, table, text, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeHeader(Database,Table,String,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteHeader_fixture_23()
throws Exception {
HtmlFormatter fixture2 = getFixture();
Database db = new Database(Config.getInstance(), (Connection) null, (DatabaseMetaData) null, "", "", "", new SchemaMeta("", "", ""));
Table table = new Table(new Database(new Config(), (Connection) null, (DatabaseMetaData) null, (String) null, (String) null, (String) null, (SchemaMeta) null), (String) null, (String) null, (String) null, (String) null);
String text = "0123456789";
LineWriter out = new LineWriter(File.createTempFile("", "", (File) null), "0123456789");
fixture2.writeHeader(db, table, text, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeHeader(Database,Table,String,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteHeader_fixture_24()
throws Exception {
HtmlFormatter fixture2 = getFixture();
Database db = new Database(new Config(), (Connection) null, (DatabaseMetaData) null, "0123456789", "0123456789", "0123456789", new SchemaMeta("", "", ""));
Table table = new Table(new Database(Config.getInstance(), (Connection) null, (DatabaseMetaData) null, "", "", "", new SchemaMeta("", "", "")), "", "", "", "");
String text = "";
LineWriter out = new LineWriter(File.createTempFile("", "", (File) null), 1, "0123456789");
fixture2.writeHeader(db, table, text, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeHeader(Database,Table,String,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteHeader_fixture_25()
throws Exception {
HtmlFormatter fixture2 = getFixture();
Database db = new Database(new Config(), (Connection) null, (DatabaseMetaData) null, (String) null, (String) null, (String) null, (SchemaMeta) null);
Table table = new Table(new Database(Config.getInstance(), (Connection) null, (DatabaseMetaData) null, "An��t-1.0.txt", "An��t-1.0.txt", "An��t-1.0.txt", new SchemaMeta("0123456789", "0123456789", "0123456789")), "0123456789", "0123456789", "0123456789", "0123456789");
String text = "0123456789";
LineWriter out = new LineWriter(File.createTempFile("0123456789", "0123456789"), 7, "An��t-1.0.txt");
fixture2.writeHeader(db, table, text, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeHeader(Database,Table,String,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteHeader_fixture_26()
throws Exception {
HtmlFormatter fixture2 = getFixture();
Database db = new Database(new Config(new String[] {"", "0123456789", "An��t-1.0.txt", null}), (Connection) null, (DatabaseMetaData) null, "An��t-1.0.txt", "An��t-1.0.txt", "An��t-1.0.txt", new SchemaMeta("An��t-1.0.txt", "An��t-1.0.txt", "An��t-1.0.txt"));
Table table = new Table(new Database(new Config(), (Connection) null, (DatabaseMetaData) null, (String) null, (String) null, (String) null, (SchemaMeta) null), (String) null, (String) null, (String) null, (String) null);
String text = "";
LineWriter out = new LineWriter(new ByteArrayOutputStream(), "");
fixture2.writeHeader(db, table, text, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeHeader(Database,Table,String,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteHeader_fixture_27()
throws Exception {
HtmlFormatter fixture2 = getFixture();
Database db = new Database((Config) null, (Connection) null, (DatabaseMetaData) null, "0123456789", "0123456789", "0123456789", new SchemaMeta("0123456789", "0123456789", "0123456789"));
Table table = new Table(new Database((Config) null, (Connection) null, (DatabaseMetaData) null, "0123456789", "0123456789", "0123456789", new SchemaMeta("0123456789", "0123456789", "0123456789")), "0123456789", "0123456789", "", (String) null);
String text = "0123456789";
LineWriter out = new LineWriter(new ByteArrayOutputStream(), 0, "");
fixture2.writeHeader(db, table, text, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeHeader(Database,Table,String,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteHeader_fixture_28()
throws Exception {
HtmlFormatter fixture2 = getFixture();
Database db = new Database(Config.getInstance(), (Connection) null, (DatabaseMetaData) null, "", "", "", new SchemaMeta("", "", ""));
Table table = new Table(new Database(Config.getInstance(), (Connection) null, (DatabaseMetaData) null, "An��t-1.0.txt", "An��t-1.0.txt", "An��t-1.0.txt", new SchemaMeta("0123456789", "0123456789", "0123456789")), "0123456789", "0123456789", "0123456789", "0123456789");
String text = "";
LineWriter out = new LineWriter(new ByteArrayOutputStream(), 7, "An��t-1.0.txt");
fixture2.writeHeader(db, table, text, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeHeader(Database,Table,String,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteHeader_fixture_29()
throws Exception {
HtmlFormatter fixture2 = getFixture();
Database db = new Database(Config.getInstance(), (Connection) null, (DatabaseMetaData) null, "An��t-1.0.txt", "An��t-1.0.txt", "An��t-1.0.txt", new SchemaMeta("0123456789", "0123456789", "0123456789"));
Table table = new Table(new Database(new Config(), (Connection) null, (DatabaseMetaData) null, "0123456789", "0123456789", "0123456789", new SchemaMeta("", "", "")), "An��t-1.0.txt", "An��t-1.0.txt", "An��t-1.0.txt", "An��t-1.0.txt");
String text = "0123456789";
LineWriter out = new LineWriter((OutputStream) null, "0123456789");
fixture2.writeHeader(db, table, text, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeHeader(Database,Table,String,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteHeader_fixture_30()
throws Exception {
HtmlFormatter fixture2 = getFixture();
Database db = new Database(new Config(), (Connection) null, (DatabaseMetaData) null, "0123456789", "0123456789", "0123456789", new SchemaMeta("", "", ""));
Table table = new Table(new Database((Config) null, (Connection) null, (DatabaseMetaData) null, "0123456789", "0123456789", "0123456789", new SchemaMeta("0123456789", "0123456789", "0123456789")), "0123456789", "0123456789", "", (String) null);
String text = "";
LineWriter out = new LineWriter((OutputStream) null, 1, "0123456789");
fixture2.writeHeader(db, table, text, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeHeader(Database,Table,String,List<String>,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteHeader_fixture_31()
throws Exception {
HtmlFormatter fixture2 = getFixture();
Database db = new Database(Config.getInstance(), (Connection) null, (DatabaseMetaData) null, "", "", "", new SchemaMeta("", "", ""));
Table table = null;
String text = "";
List<String> javascript = null;
LineWriter out = new LineWriter("", "");
fixture2.writeHeader(db, table, text, javascript, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// net.sourceforge.schemaspy.model.InvalidConfigurationException: Specified meta file "" does not exist
// at net.sourceforge.schemaspy.model.xml.SchemaMeta.<init>(SchemaMeta.java:74)
}
/**
* Run the void writeHeader(Database,Table,String,List<String>,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteHeader_fixture_32()
throws Exception {
HtmlFormatter fixture2 = getFixture();
Database db = new Database(new Config(), (Connection) null, (DatabaseMetaData) null, (String) null, (String) null, (String) null, (SchemaMeta) null);
Table table = null;
String text = "";
List<String> javascript = null;
LineWriter out = new LineWriter("", 0, "");
fixture2.writeHeader(db, table, text, javascript, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// net.sourceforge.schemaspy.model.InvalidConfigurationException: Failed to load properties for ora: java.io.FileNotFoundException: ora (No such file or directory)
// at net.sourceforge.schemaspy.Config.getMaxDbThreads(Config.java:699)
// at net.sourceforge.schemaspy.model.Database.initTables(Database.java:238)
// at net.sourceforge.schemaspy.model.Database.<init>(Database.java:74)
}
/**
* Run the void writeHeader(Database,Table,String,List<String>,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteHeader_fixture_33()
throws Exception {
HtmlFormatter fixture2 = getFixture();
Database db = new Database((Config) null, (Connection) null, (DatabaseMetaData) null, (String) null, (String) null, (String) null, new SchemaMeta("An��t-1.0.txt", "An��t-1.0.txt", "An��t-1.0.txt"));
Table table = null;
String text = "";
List<String> javascript = null;
LineWriter out = new LineWriter("0123456789", "0123456789");
fixture2.writeHeader(db, table, text, javascript, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// net.sourceforge.schemaspy.model.InvalidConfigurationException: Specified meta file "An��t-1.0.txt" does not exist
// at net.sourceforge.schemaspy.model.xml.SchemaMeta.<init>(SchemaMeta.java:74)
}
/**
* Run the void writeHeader(Database,Table,String,List<String>,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteHeader_fixture_34()
throws Exception {
HtmlFormatter fixture2 = getFixture();
Database db = new Database(new Config(), (Connection) null, (DatabaseMetaData) null, "0123456789", "0123456789", "0123456789", new SchemaMeta("", "", ""));
Table table = null;
String text = "";
List<String> javascript = null;
LineWriter out = new LineWriter("0123456789", 1, "0123456789");
fixture2.writeHeader(db, table, text, javascript, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// net.sourceforge.schemaspy.model.InvalidConfigurationException: Specified meta file "" does not exist
// at net.sourceforge.schemaspy.model.xml.SchemaMeta.<init>(SchemaMeta.java:74)
}
/**
* Run the void writeHeader(Database,Table,String,List<String>,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteHeader_fixture_35()
throws Exception {
HtmlFormatter fixture2 = getFixture();
Database db = new Database((Config) null, (Connection) null, (DatabaseMetaData) null, "0123456789", "0123456789", "0123456789", new SchemaMeta("0123456789", "0123456789", "0123456789"));
Table table = null;
String text = "";
List<String> javascript = null;
LineWriter out = new LineWriter("An��t-1.0.txt", 7, "An��t-1.0.txt");
fixture2.writeHeader(db, table, text, javascript, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// net.sourceforge.schemaspy.model.InvalidConfigurationException: Specified meta file "0123456789" does not exist
// at net.sourceforge.schemaspy.model.xml.SchemaMeta.<init>(SchemaMeta.java:74)
}
/**
* Run the void writeHeader(Database,Table,String,List<String>,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteHeader_fixture_36()
throws Exception {
HtmlFormatter fixture2 = getFixture();
Database db = new Database(Config.getInstance(), (Connection) null, (DatabaseMetaData) null, "An��t-1.0.txt", "An��t-1.0.txt", "An��t-1.0.txt", new SchemaMeta("0123456789", "0123456789", "0123456789"));
Table table = null;
String text = "";
List<String> javascript = null;
LineWriter out = new LineWriter(File.createTempFile("", ""), "");
fixture2.writeHeader(db, table, text, javascript, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// net.sourceforge.schemaspy.model.InvalidConfigurationException: Specified meta file "0123456789" does not exist
// at net.sourceforge.schemaspy.model.xml.SchemaMeta.<init>(SchemaMeta.java:74)
}
/**
* Run the void writeHeader(Database,Table,String,List<String>,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteHeader_fixture_37()
throws Exception {
HtmlFormatter fixture2 = getFixture();
Database db = new Database(new Config(new String[] {"", "0123456789", "An��t-1.0.txt", null}), (Connection) null, (DatabaseMetaData) null, "An��t-1.0.txt", "An��t-1.0.txt", "An��t-1.0.txt", new SchemaMeta("An��t-1.0.txt", "An��t-1.0.txt", "An��t-1.0.txt"));
Table table = null;
String text = "";
List<String> javascript = null;
LineWriter out = new LineWriter(File.createTempFile("", ""), 0, "");
fixture2.writeHeader(db, table, text, javascript, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.fixupArgs(Config.java:1554)
// at net.sourceforge.schemaspy.Config.<init>(Config.java:149)
}
/**
* Run the void writeHeader(Database,Table,String,List<String>,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteHeader_fixture_38()
throws Exception {
HtmlFormatter fixture2 = getFixture();
Database db = new Database(Config.getInstance(), (Connection) null, (DatabaseMetaData) null, "", "", "", new SchemaMeta("", "", ""));
Table table = null;
String text = "";
List<String> javascript = null;
LineWriter out = new LineWriter(File.createTempFile("", "", (File) null), "0123456789");
fixture2.writeHeader(db, table, text, javascript, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeHeader(Database,Table,String,List<String>,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteHeader_fixture_39()
throws Exception {
HtmlFormatter fixture2 = getFixture();
Database db = new Database(new Config(), (Connection) null, (DatabaseMetaData) null, (String) null, (String) null, (String) null, (SchemaMeta) null);
Table table = null;
String text = "";
List<String> javascript = null;
LineWriter out = new LineWriter(File.createTempFile("", "", (File) null), 1, "0123456789");
fixture2.writeHeader(db, table, text, javascript, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeHeader(Database,Table,String,List<String>,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteHeader_fixture_40()
throws Exception {
HtmlFormatter fixture2 = getFixture();
Database db = new Database((Config) null, (Connection) null, (DatabaseMetaData) null, (String) null, (String) null, (String) null, new SchemaMeta("An��t-1.0.txt", "An��t-1.0.txt", "An��t-1.0.txt"));
Table table = null;
String text = "";
List<String> javascript = null;
LineWriter out = new LineWriter(File.createTempFile("0123456789", "0123456789"), 7, "An��t-1.0.txt");
fixture2.writeHeader(db, table, text, javascript, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeHeader(Database,Table,String,List<String>,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteHeader_fixture_41()
throws Exception {
HtmlFormatter fixture2 = getFixture();
Database db = new Database(new Config(), (Connection) null, (DatabaseMetaData) null, "0123456789", "0123456789", "0123456789", new SchemaMeta("", "", ""));
Table table = null;
String text = "";
List<String> javascript = null;
LineWriter out = new LineWriter(new ByteArrayOutputStream(), "");
fixture2.writeHeader(db, table, text, javascript, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeHeader(Database,Table,String,List<String>,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteHeader_fixture_42()
throws Exception {
HtmlFormatter fixture2 = getFixture();
Database db = new Database((Config) null, (Connection) null, (DatabaseMetaData) null, "0123456789", "0123456789", "0123456789", new SchemaMeta("0123456789", "0123456789", "0123456789"));
Table table = null;
String text = "";
List<String> javascript = null;
LineWriter out = new LineWriter(new ByteArrayOutputStream(), 0, "");
fixture2.writeHeader(db, table, text, javascript, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeHeader(Database,Table,String,List<String>,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteHeader_fixture_43()
throws Exception {
HtmlFormatter fixture2 = getFixture();
Database db = new Database(Config.getInstance(), (Connection) null, (DatabaseMetaData) null, "An��t-1.0.txt", "An��t-1.0.txt", "An��t-1.0.txt", new SchemaMeta("0123456789", "0123456789", "0123456789"));
Table table = null;
String text = "";
List<String> javascript = null;
LineWriter out = new LineWriter(new ByteArrayOutputStream(), 7, "An��t-1.0.txt");
fixture2.writeHeader(db, table, text, javascript, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeHeader(Database,Table,String,List<String>,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteHeader_fixture_44()
throws Exception {
HtmlFormatter fixture2 = getFixture();
Database db = new Database(new Config(new String[] {"", "0123456789", "An��t-1.0.txt", null}), (Connection) null, (DatabaseMetaData) null, "An��t-1.0.txt", "An��t-1.0.txt", "An��t-1.0.txt", new SchemaMeta("An��t-1.0.txt", "An��t-1.0.txt", "An��t-1.0.txt"));
Table table = null;
String text = "";
List<String> javascript = null;
LineWriter out = new LineWriter((OutputStream) null, "0123456789");
fixture2.writeHeader(db, table, text, javascript, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeHeader(Database,Table,String,List<String>,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteHeader_fixture_45()
throws Exception {
HtmlFormatter fixture2 = getFixture();
Database db = new Database(Config.getInstance(), (Connection) null, (DatabaseMetaData) null, "", "", "", new SchemaMeta("", "", ""));
Table table = null;
String text = "";
List<String> javascript = null;
LineWriter out = new LineWriter((OutputStream) null, 1, "0123456789");
fixture2.writeHeader(db, table, text, javascript, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeHeader(Database,Table,String,List<String>,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteHeader_fixture_46()
throws Exception {
HtmlFormatter fixture2 = getFixture();
Database db = new Database(new Config(), (Connection) null, (DatabaseMetaData) null, (String) null, (String) null, (String) null, (SchemaMeta) null);
Table table = null;
String text = "0123456789";
List<String> javascript = null;
LineWriter out = new LineWriter("", "");
fixture2.writeHeader(db, table, text, javascript, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeHeader(Database,Table,String,List<String>,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteHeader_fixture_47()
throws Exception {
HtmlFormatter fixture2 = getFixture();
Database db = new Database((Config) null, (Connection) null, (DatabaseMetaData) null, (String) null, (String) null, (String) null, new SchemaMeta("An��t-1.0.txt", "An��t-1.0.txt", "An��t-1.0.txt"));
Table table = null;
String text = "0123456789";
List<String> javascript = null;
LineWriter out = new LineWriter("", 0, "");
fixture2.writeHeader(db, table, text, javascript, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeHeader(Database,Table,String,List<String>,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteHeader_fixture_48()
throws Exception {
HtmlFormatter fixture2 = getFixture();
Database db = new Database(new Config(), (Connection) null, (DatabaseMetaData) null, "0123456789", "0123456789", "0123456789", new SchemaMeta("", "", ""));
Table table = null;
String text = "0123456789";
List<String> javascript = null;
LineWriter out = new LineWriter("0123456789", "0123456789");
fixture2.writeHeader(db, table, text, javascript, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeHeader(Database,Table,String,List<String>,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteHeader_fixture_49()
throws Exception {
HtmlFormatter fixture2 = getFixture();
Database db = new Database((Config) null, (Connection) null, (DatabaseMetaData) null, "0123456789", "0123456789", "0123456789", new SchemaMeta("0123456789", "0123456789", "0123456789"));
Table table = null;
String text = "0123456789";
List<String> javascript = null;
LineWriter out = new LineWriter("0123456789", 1, "0123456789");
fixture2.writeHeader(db, table, text, javascript, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeHeader(Database,Table,String,List<String>,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteHeader_fixture_50()
throws Exception {
HtmlFormatter fixture2 = getFixture();
Database db = new Database(Config.getInstance(), (Connection) null, (DatabaseMetaData) null, "An��t-1.0.txt", "An��t-1.0.txt", "An��t-1.0.txt", new SchemaMeta("0123456789", "0123456789", "0123456789"));
Table table = null;
String text = "0123456789";
List<String> javascript = null;
LineWriter out = new LineWriter("An��t-1.0.txt", 7, "An��t-1.0.txt");
fixture2.writeHeader(db, table, text, javascript, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeHeader(Database,Table,String,List<String>,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteHeader_fixture_51()
throws Exception {
HtmlFormatter fixture2 = getFixture();
Database db = new Database(new Config(new String[] {"", "0123456789", "An��t-1.0.txt", null}), (Connection) null, (DatabaseMetaData) null, "An��t-1.0.txt", "An��t-1.0.txt", "An��t-1.0.txt", new SchemaMeta("An��t-1.0.txt", "An��t-1.0.txt", "An��t-1.0.txt"));
Table table = null;
String text = "0123456789";
List<String> javascript = null;
LineWriter out = new LineWriter(File.createTempFile("", ""), "");
fixture2.writeHeader(db, table, text, javascript, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeHeader(Database,Table,String,List<String>,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteHeader_fixture_52()
throws Exception {
HtmlFormatter fixture2 = getFixture();
Database db = new Database(Config.getInstance(), (Connection) null, (DatabaseMetaData) null, "", "", "", new SchemaMeta("", "", ""));
Table table = null;
String text = "0123456789";
List<String> javascript = null;
LineWriter out = new LineWriter(File.createTempFile("", ""), 0, "");
fixture2.writeHeader(db, table, text, javascript, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeHeader(Database,Table,String,List<String>,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteHeader_fixture_53()
throws Exception {
HtmlFormatter fixture2 = getFixture();
Database db = new Database(new Config(), (Connection) null, (DatabaseMetaData) null, (String) null, (String) null, (String) null, (SchemaMeta) null);
Table table = null;
String text = "0123456789";
List<String> javascript = null;
LineWriter out = new LineWriter(File.createTempFile("", "", (File) null), "0123456789");
fixture2.writeHeader(db, table, text, javascript, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeHeader(Database,Table,String,List<String>,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteHeader_fixture_54()
throws Exception {
HtmlFormatter fixture2 = getFixture();
Database db = new Database((Config) null, (Connection) null, (DatabaseMetaData) null, (String) null, (String) null, (String) null, new SchemaMeta("An��t-1.0.txt", "An��t-1.0.txt", "An��t-1.0.txt"));
Table table = null;
String text = "0123456789";
List<String> javascript = null;
LineWriter out = new LineWriter(File.createTempFile("", "", (File) null), 1, "0123456789");
fixture2.writeHeader(db, table, text, javascript, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeHeader(Database,Table,String,List<String>,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteHeader_fixture_55()
throws Exception {
HtmlFormatter fixture2 = getFixture();
Database db = new Database(new Config(), (Connection) null, (DatabaseMetaData) null, "0123456789", "0123456789", "0123456789", new SchemaMeta("", "", ""));
Table table = null;
String text = "0123456789";
List<String> javascript = null;
LineWriter out = new LineWriter(File.createTempFile("0123456789", "0123456789"), 7, "An��t-1.0.txt");
fixture2.writeHeader(db, table, text, javascript, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeHeader(Database,Table,String,List<String>,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteHeader_fixture_56()
throws Exception {
HtmlFormatter fixture2 = getFixture();
Database db = new Database((Config) null, (Connection) null, (DatabaseMetaData) null, "0123456789", "0123456789", "0123456789", new SchemaMeta("0123456789", "0123456789", "0123456789"));
Table table = null;
String text = "0123456789";
List<String> javascript = null;
LineWriter out = new LineWriter(new ByteArrayOutputStream(), "");
fixture2.writeHeader(db, table, text, javascript, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeHeader(Database,Table,String,List<String>,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteHeader_fixture_57()
throws Exception {
HtmlFormatter fixture2 = getFixture();
Database db = new Database(Config.getInstance(), (Connection) null, (DatabaseMetaData) null, "An��t-1.0.txt", "An��t-1.0.txt", "An��t-1.0.txt", new SchemaMeta("0123456789", "0123456789", "0123456789"));
Table table = null;
String text = "0123456789";
List<String> javascript = null;
LineWriter out = new LineWriter(new ByteArrayOutputStream(), 0, "");
fixture2.writeHeader(db, table, text, javascript, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeHeader(Database,Table,String,List<String>,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteHeader_fixture_58()
throws Exception {
HtmlFormatter fixture2 = getFixture();
Database db = new Database(new Config(new String[] {"", "0123456789", "An��t-1.0.txt", null}), (Connection) null, (DatabaseMetaData) null, "An��t-1.0.txt", "An��t-1.0.txt", "An��t-1.0.txt", new SchemaMeta("An��t-1.0.txt", "An��t-1.0.txt", "An��t-1.0.txt"));
Table table = null;
String text = "0123456789";
List<String> javascript = null;
LineWriter out = new LineWriter(new ByteArrayOutputStream(), 7, "An��t-1.0.txt");
fixture2.writeHeader(db, table, text, javascript, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeHeader(Database,Table,String,List<String>,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteHeader_fixture_59()
throws Exception {
HtmlFormatter fixture2 = getFixture();
Database db = new Database(Config.getInstance(), (Connection) null, (DatabaseMetaData) null, "", "", "", new SchemaMeta("", "", ""));
Table table = null;
String text = "0123456789";
List<String> javascript = null;
LineWriter out = new LineWriter((OutputStream) null, "0123456789");
fixture2.writeHeader(db, table, text, javascript, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeHeader(Database,Table,String,List<String>,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteHeader_fixture_60()
throws Exception {
HtmlFormatter fixture2 = getFixture();
Database db = new Database(new Config(), (Connection) null, (DatabaseMetaData) null, (String) null, (String) null, (String) null, (SchemaMeta) null);
Table table = null;
String text = "0123456789";
List<String> javascript = null;
LineWriter out = new LineWriter((OutputStream) null, 1, "0123456789");
fixture2.writeHeader(db, table, text, javascript, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeInvalidGraphvizInstallation(LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteInvalidGraphvizInstallation_fixture_1()
throws Exception {
HtmlFormatter fixture2 = getFixture();
LineWriter html = new LineWriter("", "");
fixture2.writeInvalidGraphvizInstallation(html);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeInvalidGraphvizInstallation(LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteInvalidGraphvizInstallation_fixture_2()
throws Exception {
HtmlFormatter fixture2 = getFixture();
LineWriter html = new LineWriter("", 0, "");
fixture2.writeInvalidGraphvizInstallation(html);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeInvalidGraphvizInstallation(LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteInvalidGraphvizInstallation_fixture_3()
throws Exception {
HtmlFormatter fixture2 = getFixture();
LineWriter html = new LineWriter("0123456789", "0123456789");
fixture2.writeInvalidGraphvizInstallation(html);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeInvalidGraphvizInstallation(LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteInvalidGraphvizInstallation_fixture_4()
throws Exception {
HtmlFormatter fixture2 = getFixture();
LineWriter html = new LineWriter("0123456789", 1, "0123456789");
fixture2.writeInvalidGraphvizInstallation(html);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeInvalidGraphvizInstallation(LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteInvalidGraphvizInstallation_fixture_5()
throws Exception {
HtmlFormatter fixture2 = getFixture();
LineWriter html = new LineWriter("An��t-1.0.txt", 7, "An��t-1.0.txt");
fixture2.writeInvalidGraphvizInstallation(html);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeInvalidGraphvizInstallation(LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteInvalidGraphvizInstallation_fixture_6()
throws Exception {
HtmlFormatter fixture2 = getFixture();
LineWriter html = new LineWriter(File.createTempFile("", ""), "");
fixture2.writeInvalidGraphvizInstallation(html);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeInvalidGraphvizInstallation(LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteInvalidGraphvizInstallation_fixture_7()
throws Exception {
HtmlFormatter fixture2 = getFixture();
LineWriter html = new LineWriter(File.createTempFile("", ""), 0, "");
fixture2.writeInvalidGraphvizInstallation(html);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeInvalidGraphvizInstallation(LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteInvalidGraphvizInstallation_fixture_8()
throws Exception {
HtmlFormatter fixture2 = getFixture();
LineWriter html = new LineWriter(File.createTempFile("", "", (File) null), "0123456789");
fixture2.writeInvalidGraphvizInstallation(html);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeInvalidGraphvizInstallation(LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteInvalidGraphvizInstallation_fixture_9()
throws Exception {
HtmlFormatter fixture2 = getFixture();
LineWriter html = new LineWriter(File.createTempFile("", "", (File) null), 1, "0123456789");
fixture2.writeInvalidGraphvizInstallation(html);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeInvalidGraphvizInstallation(LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteInvalidGraphvizInstallation_fixture_10()
throws Exception {
HtmlFormatter fixture2 = getFixture();
LineWriter html = new LineWriter(File.createTempFile("0123456789", "0123456789"), 7, "An��t-1.0.txt");
fixture2.writeInvalidGraphvizInstallation(html);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeInvalidGraphvizInstallation(LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteInvalidGraphvizInstallation_fixture_11()
throws Exception {
HtmlFormatter fixture2 = getFixture();
LineWriter html = new LineWriter(new ByteArrayOutputStream(), "");
fixture2.writeInvalidGraphvizInstallation(html);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeInvalidGraphvizInstallation(LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteInvalidGraphvizInstallation_fixture_12()
throws Exception {
HtmlFormatter fixture2 = getFixture();
LineWriter html = new LineWriter(new ByteArrayOutputStream(), 0, "");
fixture2.writeInvalidGraphvizInstallation(html);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeInvalidGraphvizInstallation(LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteInvalidGraphvizInstallation_fixture_13()
throws Exception {
HtmlFormatter fixture2 = getFixture();
LineWriter html = new LineWriter(new ByteArrayOutputStream(), 7, "An��t-1.0.txt");
fixture2.writeInvalidGraphvizInstallation(html);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeInvalidGraphvizInstallation(LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteInvalidGraphvizInstallation_fixture_14()
throws Exception {
HtmlFormatter fixture2 = getFixture();
LineWriter html = new LineWriter((OutputStream) null, "0123456789");
fixture2.writeInvalidGraphvizInstallation(html);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeInvalidGraphvizInstallation(LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteInvalidGraphvizInstallation_fixture_15()
throws Exception {
HtmlFormatter fixture2 = getFixture();
LineWriter html = new LineWriter((OutputStream) null, 1, "0123456789");
fixture2.writeInvalidGraphvizInstallation(html);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeLegend(boolean,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteLegend_fixture_1()
throws Exception {
HtmlFormatter fixture2 = getFixture();
boolean tableDetails = false;
LineWriter out = new LineWriter("", "");
fixture2.writeLegend(tableDetails, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeLegend(boolean,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteLegend_fixture_2()
throws Exception {
HtmlFormatter fixture2 = getFixture();
boolean tableDetails = true;
LineWriter out = new LineWriter("", 0, "");
fixture2.writeLegend(tableDetails, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeLegend(boolean,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteLegend_fixture_3()
throws Exception {
HtmlFormatter fixture2 = getFixture();
boolean tableDetails = false;
LineWriter out = new LineWriter("0123456789", "0123456789");
fixture2.writeLegend(tableDetails, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeLegend(boolean,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteLegend_fixture_4()
throws Exception {
HtmlFormatter fixture2 = getFixture();
boolean tableDetails = true;
LineWriter out = new LineWriter("0123456789", 1, "0123456789");
fixture2.writeLegend(tableDetails, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeLegend(boolean,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteLegend_fixture_5()
throws Exception {
HtmlFormatter fixture2 = getFixture();
boolean tableDetails = false;
LineWriter out = new LineWriter("An��t-1.0.txt", 7, "An��t-1.0.txt");
fixture2.writeLegend(tableDetails, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeLegend(boolean,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteLegend_fixture_6()
throws Exception {
HtmlFormatter fixture2 = getFixture();
boolean tableDetails = true;
LineWriter out = new LineWriter(File.createTempFile("", ""), "");
fixture2.writeLegend(tableDetails, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeLegend(boolean,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteLegend_fixture_7()
throws Exception {
HtmlFormatter fixture2 = getFixture();
boolean tableDetails = false;
LineWriter out = new LineWriter(File.createTempFile("", ""), 0, "");
fixture2.writeLegend(tableDetails, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeLegend(boolean,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteLegend_fixture_8()
throws Exception {
HtmlFormatter fixture2 = getFixture();
boolean tableDetails = true;
LineWriter out = new LineWriter(File.createTempFile("", "", (File) null), "0123456789");
fixture2.writeLegend(tableDetails, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeLegend(boolean,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteLegend_fixture_9()
throws Exception {
HtmlFormatter fixture2 = getFixture();
boolean tableDetails = false;
LineWriter out = new LineWriter(File.createTempFile("", "", (File) null), 1, "0123456789");
fixture2.writeLegend(tableDetails, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeLegend(boolean,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteLegend_fixture_10()
throws Exception {
HtmlFormatter fixture2 = getFixture();
boolean tableDetails = true;
LineWriter out = new LineWriter(File.createTempFile("0123456789", "0123456789"), 7, "An��t-1.0.txt");
fixture2.writeLegend(tableDetails, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeLegend(boolean,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteLegend_fixture_11()
throws Exception {
HtmlFormatter fixture2 = getFixture();
boolean tableDetails = false;
LineWriter out = new LineWriter(new ByteArrayOutputStream(), "");
fixture2.writeLegend(tableDetails, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeLegend(boolean,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteLegend_fixture_12()
throws Exception {
HtmlFormatter fixture2 = getFixture();
boolean tableDetails = true;
LineWriter out = new LineWriter(new ByteArrayOutputStream(), 0, "");
fixture2.writeLegend(tableDetails, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeLegend(boolean,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteLegend_fixture_13()
throws Exception {
HtmlFormatter fixture2 = getFixture();
boolean tableDetails = false;
LineWriter out = new LineWriter(new ByteArrayOutputStream(), 7, "An��t-1.0.txt");
fixture2.writeLegend(tableDetails, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeLegend(boolean,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteLegend_fixture_14()
throws Exception {
HtmlFormatter fixture2 = getFixture();
boolean tableDetails = true;
LineWriter out = new LineWriter((OutputStream) null, "0123456789");
fixture2.writeLegend(tableDetails, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeLegend(boolean,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteLegend_fixture_15()
throws Exception {
HtmlFormatter fixture2 = getFixture();
boolean tableDetails = false;
LineWriter out = new LineWriter((OutputStream) null, 1, "0123456789");
fixture2.writeLegend(tableDetails, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeLegend(boolean,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteLegend_fixture_16()
throws Exception {
HtmlFormatter fixture2 = getFixture();
boolean tableDetails = false;
LineWriter out = new LineWriter("", 0, "");
fixture2.writeLegend(tableDetails, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeLegend(boolean,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteLegend_fixture_17()
throws Exception {
HtmlFormatter fixture2 = getFixture();
boolean tableDetails = true;
LineWriter out = new LineWriter("0123456789", "0123456789");
fixture2.writeLegend(tableDetails, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeLegend(boolean,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteLegend_fixture_18()
throws Exception {
HtmlFormatter fixture2 = getFixture();
boolean tableDetails = false;
LineWriter out = new LineWriter("0123456789", 1, "0123456789");
fixture2.writeLegend(tableDetails, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeLegend(boolean,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteLegend_fixture_19()
throws Exception {
HtmlFormatter fixture2 = getFixture();
boolean tableDetails = true;
LineWriter out = new LineWriter("An��t-1.0.txt", 7, "An��t-1.0.txt");
fixture2.writeLegend(tableDetails, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeLegend(boolean,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteLegend_fixture_20()
throws Exception {
HtmlFormatter fixture2 = getFixture();
boolean tableDetails = false;
LineWriter out = new LineWriter(File.createTempFile("", ""), "");
fixture2.writeLegend(tableDetails, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeLegend(boolean,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteLegend_fixture_21()
throws Exception {
HtmlFormatter fixture2 = getFixture();
boolean tableDetails = true;
LineWriter out = new LineWriter(File.createTempFile("", ""), 0, "");
fixture2.writeLegend(tableDetails, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeLegend(boolean,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteLegend_fixture_22()
throws Exception {
HtmlFormatter fixture2 = getFixture();
boolean tableDetails = false;
LineWriter out = new LineWriter(File.createTempFile("", "", (File) null), "0123456789");
fixture2.writeLegend(tableDetails, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeLegend(boolean,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteLegend_fixture_23()
throws Exception {
HtmlFormatter fixture2 = getFixture();
boolean tableDetails = true;
LineWriter out = new LineWriter(File.createTempFile("", "", (File) null), 1, "0123456789");
fixture2.writeLegend(tableDetails, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeLegend(boolean,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteLegend_fixture_24()
throws Exception {
HtmlFormatter fixture2 = getFixture();
boolean tableDetails = false;
LineWriter out = new LineWriter(File.createTempFile("0123456789", "0123456789"), 7, "An��t-1.0.txt");
fixture2.writeLegend(tableDetails, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeLegend(boolean,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteLegend_fixture_25()
throws Exception {
HtmlFormatter fixture2 = getFixture();
boolean tableDetails = true;
LineWriter out = new LineWriter(new ByteArrayOutputStream(), "");
fixture2.writeLegend(tableDetails, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeLegend(boolean,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteLegend_fixture_26()
throws Exception {
HtmlFormatter fixture2 = getFixture();
boolean tableDetails = false;
LineWriter out = new LineWriter(new ByteArrayOutputStream(), 0, "");
fixture2.writeLegend(tableDetails, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeLegend(boolean,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteLegend_fixture_27()
throws Exception {
HtmlFormatter fixture2 = getFixture();
boolean tableDetails = true;
LineWriter out = new LineWriter(new ByteArrayOutputStream(), 7, "An��t-1.0.txt");
fixture2.writeLegend(tableDetails, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeLegend(boolean,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteLegend_fixture_28()
throws Exception {
HtmlFormatter fixture2 = getFixture();
boolean tableDetails = false;
LineWriter out = new LineWriter((OutputStream) null, "0123456789");
fixture2.writeLegend(tableDetails, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeLegend(boolean,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteLegend_fixture_29()
throws Exception {
HtmlFormatter fixture2 = getFixture();
boolean tableDetails = true;
LineWriter out = new LineWriter((OutputStream) null, 1, "0123456789");
fixture2.writeLegend(tableDetails, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeLegend(boolean,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteLegend_fixture_30()
throws Exception {
HtmlFormatter fixture2 = getFixture();
boolean tableDetails = true;
LineWriter out = new LineWriter("", "");
fixture2.writeLegend(tableDetails, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeLegend(boolean,boolean,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteLegend_fixture_31()
throws Exception {
HtmlFormatter fixture2 = getFixture();
boolean tableDetails = false;
boolean diagramDetails = false;
LineWriter out = new LineWriter("", "");
fixture2.writeLegend(tableDetails, diagramDetails, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeLegend(boolean,boolean,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteLegend_fixture_32()
throws Exception {
HtmlFormatter fixture2 = getFixture();
boolean tableDetails = true;
boolean diagramDetails = true;
LineWriter out = new LineWriter("", 0, "");
fixture2.writeLegend(tableDetails, diagramDetails, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeLegend(boolean,boolean,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteLegend_fixture_33()
throws Exception {
HtmlFormatter fixture2 = getFixture();
boolean tableDetails = true;
boolean diagramDetails = false;
LineWriter out = new LineWriter("0123456789", "0123456789");
fixture2.writeLegend(tableDetails, diagramDetails, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeLegend(boolean,boolean,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteLegend_fixture_34()
throws Exception {
HtmlFormatter fixture2 = getFixture();
boolean tableDetails = false;
boolean diagramDetails = true;
LineWriter out = new LineWriter("0123456789", 1, "0123456789");
fixture2.writeLegend(tableDetails, diagramDetails, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeLegend(boolean,boolean,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteLegend_fixture_35()
throws Exception {
HtmlFormatter fixture2 = getFixture();
boolean tableDetails = false;
boolean diagramDetails = false;
LineWriter out = new LineWriter("An��t-1.0.txt", 7, "An��t-1.0.txt");
fixture2.writeLegend(tableDetails, diagramDetails, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeLegend(boolean,boolean,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteLegend_fixture_36()
throws Exception {
HtmlFormatter fixture2 = getFixture();
boolean tableDetails = true;
boolean diagramDetails = true;
LineWriter out = new LineWriter(File.createTempFile("", ""), "");
fixture2.writeLegend(tableDetails, diagramDetails, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeLegend(boolean,boolean,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteLegend_fixture_37()
throws Exception {
HtmlFormatter fixture2 = getFixture();
boolean tableDetails = true;
boolean diagramDetails = false;
LineWriter out = new LineWriter(File.createTempFile("", ""), 0, "");
fixture2.writeLegend(tableDetails, diagramDetails, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeLegend(boolean,boolean,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteLegend_fixture_38()
throws Exception {
HtmlFormatter fixture2 = getFixture();
boolean tableDetails = false;
boolean diagramDetails = true;
LineWriter out = new LineWriter(File.createTempFile("", "", (File) null), "0123456789");
fixture2.writeLegend(tableDetails, diagramDetails, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeLegend(boolean,boolean,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteLegend_fixture_39()
throws Exception {
HtmlFormatter fixture2 = getFixture();
boolean tableDetails = false;
boolean diagramDetails = false;
LineWriter out = new LineWriter(File.createTempFile("", "", (File) null), 1, "0123456789");
fixture2.writeLegend(tableDetails, diagramDetails, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeLegend(boolean,boolean,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteLegend_fixture_40()
throws Exception {
HtmlFormatter fixture2 = getFixture();
boolean tableDetails = true;
boolean diagramDetails = true;
LineWriter out = new LineWriter(File.createTempFile("0123456789", "0123456789"), 7, "An��t-1.0.txt");
fixture2.writeLegend(tableDetails, diagramDetails, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeLegend(boolean,boolean,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteLegend_fixture_41()
throws Exception {
HtmlFormatter fixture2 = getFixture();
boolean tableDetails = true;
boolean diagramDetails = false;
LineWriter out = new LineWriter(new ByteArrayOutputStream(), "");
fixture2.writeLegend(tableDetails, diagramDetails, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeLegend(boolean,boolean,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteLegend_fixture_42()
throws Exception {
HtmlFormatter fixture2 = getFixture();
boolean tableDetails = false;
boolean diagramDetails = true;
LineWriter out = new LineWriter(new ByteArrayOutputStream(), 0, "");
fixture2.writeLegend(tableDetails, diagramDetails, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeLegend(boolean,boolean,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteLegend_fixture_43()
throws Exception {
HtmlFormatter fixture2 = getFixture();
boolean tableDetails = false;
boolean diagramDetails = false;
LineWriter out = new LineWriter(new ByteArrayOutputStream(), 7, "An��t-1.0.txt");
fixture2.writeLegend(tableDetails, diagramDetails, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeLegend(boolean,boolean,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteLegend_fixture_44()
throws Exception {
HtmlFormatter fixture2 = getFixture();
boolean tableDetails = true;
boolean diagramDetails = true;
LineWriter out = new LineWriter((OutputStream) null, "0123456789");
fixture2.writeLegend(tableDetails, diagramDetails, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeLegend(boolean,boolean,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteLegend_fixture_45()
throws Exception {
HtmlFormatter fixture2 = getFixture();
boolean tableDetails = true;
boolean diagramDetails = false;
LineWriter out = new LineWriter((OutputStream) null, 1, "0123456789");
fixture2.writeLegend(tableDetails, diagramDetails, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeLegend(boolean,boolean,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteLegend_fixture_46()
throws Exception {
HtmlFormatter fixture2 = getFixture();
boolean tableDetails = true;
boolean diagramDetails = false;
LineWriter out = new LineWriter("", "");
fixture2.writeLegend(tableDetails, diagramDetails, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeLegend(boolean,boolean,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteLegend_fixture_47()
throws Exception {
HtmlFormatter fixture2 = getFixture();
boolean tableDetails = false;
boolean diagramDetails = true;
LineWriter out = new LineWriter("", 0, "");
fixture2.writeLegend(tableDetails, diagramDetails, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeLegend(boolean,boolean,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteLegend_fixture_48()
throws Exception {
HtmlFormatter fixture2 = getFixture();
boolean tableDetails = false;
boolean diagramDetails = false;
LineWriter out = new LineWriter("0123456789", "0123456789");
fixture2.writeLegend(tableDetails, diagramDetails, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeLegend(boolean,boolean,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteLegend_fixture_49()
throws Exception {
HtmlFormatter fixture2 = getFixture();
boolean tableDetails = true;
boolean diagramDetails = true;
LineWriter out = new LineWriter("0123456789", 1, "0123456789");
fixture2.writeLegend(tableDetails, diagramDetails, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeLegend(boolean,boolean,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteLegend_fixture_50()
throws Exception {
HtmlFormatter fixture2 = getFixture();
boolean tableDetails = true;
boolean diagramDetails = false;
LineWriter out = new LineWriter("An��t-1.0.txt", 7, "An��t-1.0.txt");
fixture2.writeLegend(tableDetails, diagramDetails, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeLegend(boolean,boolean,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteLegend_fixture_51()
throws Exception {
HtmlFormatter fixture2 = getFixture();
boolean tableDetails = false;
boolean diagramDetails = true;
LineWriter out = new LineWriter(File.createTempFile("", ""), "");
fixture2.writeLegend(tableDetails, diagramDetails, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeLegend(boolean,boolean,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteLegend_fixture_52()
throws Exception {
HtmlFormatter fixture2 = getFixture();
boolean tableDetails = false;
boolean diagramDetails = false;
LineWriter out = new LineWriter(File.createTempFile("", ""), 0, "");
fixture2.writeLegend(tableDetails, diagramDetails, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeLegend(boolean,boolean,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteLegend_fixture_53()
throws Exception {
HtmlFormatter fixture2 = getFixture();
boolean tableDetails = true;
boolean diagramDetails = true;
LineWriter out = new LineWriter(File.createTempFile("", "", (File) null), "0123456789");
fixture2.writeLegend(tableDetails, diagramDetails, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeLegend(boolean,boolean,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteLegend_fixture_54()
throws Exception {
HtmlFormatter fixture2 = getFixture();
boolean tableDetails = true;
boolean diagramDetails = false;
LineWriter out = new LineWriter(File.createTempFile("", "", (File) null), 1, "0123456789");
fixture2.writeLegend(tableDetails, diagramDetails, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeLegend(boolean,boolean,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteLegend_fixture_55()
throws Exception {
HtmlFormatter fixture2 = getFixture();
boolean tableDetails = false;
boolean diagramDetails = true;
LineWriter out = new LineWriter(File.createTempFile("0123456789", "0123456789"), 7, "An��t-1.0.txt");
fixture2.writeLegend(tableDetails, diagramDetails, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeLegend(boolean,boolean,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteLegend_fixture_56()
throws Exception {
HtmlFormatter fixture2 = getFixture();
boolean tableDetails = false;
boolean diagramDetails = false;
LineWriter out = new LineWriter(new ByteArrayOutputStream(), "");
fixture2.writeLegend(tableDetails, diagramDetails, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeLegend(boolean,boolean,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteLegend_fixture_57()
throws Exception {
HtmlFormatter fixture2 = getFixture();
boolean tableDetails = true;
boolean diagramDetails = true;
LineWriter out = new LineWriter(new ByteArrayOutputStream(), 0, "");
fixture2.writeLegend(tableDetails, diagramDetails, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeLegend(boolean,boolean,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteLegend_fixture_58()
throws Exception {
HtmlFormatter fixture2 = getFixture();
boolean tableDetails = true;
boolean diagramDetails = false;
LineWriter out = new LineWriter(new ByteArrayOutputStream(), 7, "An��t-1.0.txt");
fixture2.writeLegend(tableDetails, diagramDetails, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeLegend(boolean,boolean,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteLegend_fixture_59()
throws Exception {
HtmlFormatter fixture2 = getFixture();
boolean tableDetails = false;
boolean diagramDetails = true;
LineWriter out = new LineWriter((OutputStream) null, "0123456789");
fixture2.writeLegend(tableDetails, diagramDetails, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeLegend(boolean,boolean,LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteLegend_fixture_60()
throws Exception {
HtmlFormatter fixture2 = getFixture();
boolean tableDetails = false;
boolean diagramDetails = false;
LineWriter out = new LineWriter((OutputStream) null, 1, "0123456789");
fixture2.writeLegend(tableDetails, diagramDetails, out);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeTableOfContents(LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteTableOfContents_fixture_1()
throws Exception {
HtmlFormatter fixture2 = getFixture();
LineWriter html = new LineWriter("", "");
fixture2.writeTableOfContents(html);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeTableOfContents(LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteTableOfContents_fixture_2()
throws Exception {
HtmlFormatter fixture2 = getFixture();
LineWriter html = new LineWriter("", 0, "");
fixture2.writeTableOfContents(html);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeTableOfContents(LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteTableOfContents_fixture_3()
throws Exception {
HtmlFormatter fixture2 = getFixture();
LineWriter html = new LineWriter("0123456789", "0123456789");
fixture2.writeTableOfContents(html);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeTableOfContents(LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteTableOfContents_fixture_4()
throws Exception {
HtmlFormatter fixture2 = getFixture();
LineWriter html = new LineWriter("0123456789", 1, "0123456789");
fixture2.writeTableOfContents(html);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeTableOfContents(LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteTableOfContents_fixture_5()
throws Exception {
HtmlFormatter fixture2 = getFixture();
LineWriter html = new LineWriter("An��t-1.0.txt", 7, "An��t-1.0.txt");
fixture2.writeTableOfContents(html);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeTableOfContents(LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteTableOfContents_fixture_6()
throws Exception {
HtmlFormatter fixture2 = getFixture();
LineWriter html = new LineWriter(File.createTempFile("", ""), "");
fixture2.writeTableOfContents(html);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeTableOfContents(LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteTableOfContents_fixture_7()
throws Exception {
HtmlFormatter fixture2 = getFixture();
LineWriter html = new LineWriter(File.createTempFile("", ""), 0, "");
fixture2.writeTableOfContents(html);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeTableOfContents(LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteTableOfContents_fixture_8()
throws Exception {
HtmlFormatter fixture2 = getFixture();
LineWriter html = new LineWriter(File.createTempFile("", "", (File) null), "0123456789");
fixture2.writeTableOfContents(html);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeTableOfContents(LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteTableOfContents_fixture_9()
throws Exception {
HtmlFormatter fixture2 = getFixture();
LineWriter html = new LineWriter(File.createTempFile("", "", (File) null), 1, "0123456789");
fixture2.writeTableOfContents(html);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeTableOfContents(LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteTableOfContents_fixture_10()
throws Exception {
HtmlFormatter fixture2 = getFixture();
LineWriter html = new LineWriter(File.createTempFile("0123456789", "0123456789"), 7, "An��t-1.0.txt");
fixture2.writeTableOfContents(html);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeTableOfContents(LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteTableOfContents_fixture_11()
throws Exception {
HtmlFormatter fixture2 = getFixture();
LineWriter html = new LineWriter(new ByteArrayOutputStream(), "");
fixture2.writeTableOfContents(html);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeTableOfContents(LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteTableOfContents_fixture_12()
throws Exception {
HtmlFormatter fixture2 = getFixture();
LineWriter html = new LineWriter(new ByteArrayOutputStream(), 0, "");
fixture2.writeTableOfContents(html);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeTableOfContents(LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteTableOfContents_fixture_13()
throws Exception {
HtmlFormatter fixture2 = getFixture();
LineWriter html = new LineWriter(new ByteArrayOutputStream(), 7, "An��t-1.0.txt");
fixture2.writeTableOfContents(html);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeTableOfContents(LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteTableOfContents_fixture_14()
throws Exception {
HtmlFormatter fixture2 = getFixture();
LineWriter html = new LineWriter((OutputStream) null, "0123456789");
fixture2.writeTableOfContents(html);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Run the void writeTableOfContents(LineWriter) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Test
public void testWriteTableOfContents_fixture_15()
throws Exception {
HtmlFormatter fixture2 = getFixture();
LineWriter html = new LineWriter((OutputStream) null, 1, "0123456789");
fixture2.writeTableOfContents(html);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NullPointerException
// at net.sourceforge.schemaspy.Config.isEncodeCommentsEnabled(Config.java:791)
// at net.sourceforge.schemaspy.view.HtmlFormatter.<init>(HtmlFormatter.java:38)
}
/**
* Perform pre-test initialization.
*
* @throws Exception
* if the initialization fails for some reason
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@Before
public void setUp()
throws Exception {
// add additional set up code here
}
/**
* Perform post-test clean-up.
*
* @throws Exception
* if the clean-up fails for some reason
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
@After
public void tearDown()
throws Exception {
// Add additional tear down code here
}
/**
* Launch the test.
*
* @param args the command line arguments
*
* @generatedBy CodePro at 6/7/15 4:19 PM
*/
public static void main(String[] args) {
new org.junit.runner.JUnitCore().run(HtmlFormatterTest.class);
}
} | [
"jskracht@gmail.com"
] | jskracht@gmail.com |
119ff6c923a4e8cc10bd9b08542216fedcccfd86 | d79d3003bdfbc178c42cb1a10551cce766f7f1a6 | /java/nio/src/main/java/cn/hunk/nio/TestPipe.java | d34b285683f9054df56a0ac3e2af72808d46a3a9 | [] | no_license | hunkier/LearnNote | 2f01ec05dc35221296d8cdba94e42a344f963204 | c751f06e7f41dd64750ab14e7c1dd0ef40739777 | refs/heads/master | 2023-05-05T10:57:22.899569 | 2022-06-05T03:14:21 | 2022-06-05T03:14:21 | 39,883,162 | 1 | 0 | null | 2023-05-01T20:17:07 | 2015-07-29T08:46:24 | Jupyter Notebook | UTF-8 | Java | false | false | 804 | java | package cn.hunk.nio;
import org.junit.Test;
import java.nio.ByteBuffer;
import java.nio.channels.Pipe;
public class TestPipe {
@Test
public void test()throws Exception{
// 1.获取管道
Pipe pipe = Pipe.open();
// 2.将缓冲区的数据写入管道
ByteBuffer buf = ByteBuffer.allocate(1024);
Pipe.SinkChannel sinkChannel = pipe.sink();
buf.put("通过单向管道发送数据".getBytes());
buf.flip();
sinkChannel.write(buf);
// 3.读取缓冲区中的数据
Pipe.SourceChannel sourceChannel = pipe.source();
buf.flip();
int len = sourceChannel.read(buf);
System.out.println(new String(buf.array(), 0, len));
sourceChannel.close();
sinkChannel.close();
}
}
| [
"huangkuier@gmail.com"
] | huangkuier@gmail.com |
d79f945babe3dc029591a47cd4687dd47d87c69b | 0c5e810976f85d9898c665b0a4b6dc2e80c6e487 | /javax/api/src/main/java/org/rookit/auto/javax/repetition/TypeMirrorKeyedRepetitionTypeConfig.java | f11e2bd04f2214e6c48163f158d96ecd1e4c3a62 | [
"MIT"
] | permissive | JPDSousa/rookit-auto | 2032f0cc90d0501b5b7f2821c4bae96f325b0164 | 6fc12860537aa1732acf7dda32d03c9c7c98073f | refs/heads/master | 2021-06-16T00:03:39.284091 | 2019-09-12T08:19:46 | 2019-09-12T08:20:05 | 144,623,364 | 0 | 0 | MIT | 2021-04-29T19:19:29 | 2018-08-13T19:16:25 | Java | UTF-8 | Java | false | false | 1,690 | java | /*******************************************************************************
* Copyright (C) 2018 Joao Sousa
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
******************************************************************************/
package org.rookit.auto.javax.repetition;
import org.immutables.value.Value;
import javax.lang.model.type.TypeMirror;
import java.util.List;
@Value.Immutable
public interface TypeMirrorKeyedRepetitionTypeConfig extends TypeMirrorKeyedRepetitionConfig {
TypeMirror key();
@Value.Derived
@Override
default TypeMirror extractKey(final List<? extends TypeMirror> params) {
return key();
}
}
| [
"jpd.sousa@campus.fct.unl.pt"
] | jpd.sousa@campus.fct.unl.pt |
f1569b9782d95dc19509c0d04c57a590ff4f3180 | fa91450deb625cda070e82d5c31770be5ca1dec6 | /Diff-Raw-Data/28/28_66af2faf4732b788c0f57ab5582a96d757cfc8ad/SystemBolt/28_66af2faf4732b788c0f57ab5582a96d757cfc8ad_SystemBolt_s.java | f96f0b8c51b0d34af879943d96aad654a7db441a | [] | 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 | 5,239 | java | package backtype.storm.metric;
import backtype.storm.Config;
import backtype.storm.metric.api.AssignableMetric;
import backtype.storm.metric.api.IMetric;
import backtype.storm.task.IBolt;
import backtype.storm.task.OutputCollector;
import backtype.storm.task.TopologyContext;
import backtype.storm.tuple.Tuple;
import clojure.lang.AFn;
import clojure.lang.IFn;
import clojure.lang.RT;
import com.google.common.collect.ImmutableMap;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.lang.management.*;
import java.util.List;
import java.util.Map;
// There is one task inside one executor for each worker of the topology.
// TaskID is always -1, therefore you can only send-unanchored tuples to co-located SystemBolt.
// This bolt was conceived to export worker stats via metrics api.
public class SystemBolt implements IBolt {
private static Logger LOG = LoggerFactory.getLogger(SystemBolt.class);
private static boolean _prepareWasCalled = false;
private static class MemoryUsageMetric implements IMetric {
IFn _getUsage;
public MemoryUsageMetric(IFn getUsage) {
_getUsage = getUsage;
}
@Override
public Object getValueAndReset() {
MemoryUsage memUsage = (MemoryUsage)_getUsage.invoke();
return ImmutableMap.builder()
.put("maxBytes", memUsage.getMax())
.put("committedBytes", memUsage.getCommitted())
.put("initBytes", memUsage.getInit())
.put("usedBytes", memUsage.getUsed())
.put("virtualFreeBytes", memUsage.getMax() - memUsage.getUsed())
.put("unusedBytes", memUsage.getCommitted() - memUsage.getUsed())
.build();
}
}
// canonically the metrics data exported is time bucketed when doing counts.
// convert the absolute values here into time buckets.
private static class GarbageCollectorMetric implements IMetric {
GarbageCollectorMXBean _gcBean;
Long _collectionCount;
Long _collectionTime;
public GarbageCollectorMetric(GarbageCollectorMXBean gcBean) {
_gcBean = gcBean;
}
@Override
public Object getValueAndReset() {
Long collectionCountP = _gcBean.getCollectionCount();
Long collectionTimeP = _gcBean.getCollectionCount();
Map ret = null;
if(_collectionCount!=null && _collectionTime!=null) {
ret = ImmutableMap.builder()
.put("count", collectionCountP - _collectionCount)
.put("timeMs", collectionTimeP - _collectionTime)
.build();
}
_collectionCount = collectionCountP;
_collectionTime = collectionTimeP;
return ret;
}
}
@Override
public void prepare(final Map stormConf, TopologyContext context, OutputCollector collector) {
if(_prepareWasCalled && stormConf.get(Config.STORM_CLUSTER_MODE) != "local") {
throw new RuntimeException("A single worker should have 1 SystemBolt instance.");
}
_prepareWasCalled = true;
int bucketSize = RT.intCast(stormConf.get(Config.TOPOLOGY_BUILTIN_METRICS_BUCKET_SIZE_SECS));
final RuntimeMXBean jvmRT = ManagementFactory.getRuntimeMXBean();
context.registerMetric("uptimeSecs", new IMetric() {
@Override
public Object getValueAndReset() {
return jvmRT.getUptime()/1000.0;
}
}, bucketSize);
context.registerMetric("startTimeSecs", new IMetric() {
@Override
public Object getValueAndReset() {
return jvmRT.getStartTime()/1000.0;
}
}, bucketSize);
context.registerMetric("newWorkerEvent", new IMetric() {
boolean doEvent = true;
@Override
public Object getValueAndReset() {
if (doEvent) {
doEvent = false;
return 1;
} else return 0;
}
}, bucketSize);
final MemoryMXBean jvmMemRT = ManagementFactory.getMemoryMXBean();
context.registerMetric("memory/heap", new MemoryUsageMetric(new AFn() {
public Object invoke() {
return jvmMemRT.getHeapMemoryUsage();
}
}), bucketSize);
context.registerMetric("memory/nonHeap", new MemoryUsageMetric(new AFn() {
public Object invoke() {
return jvmMemRT.getNonHeapMemoryUsage();
}
}), bucketSize);
for(GarbageCollectorMXBean b : ManagementFactory.getGarbageCollectorMXBeans()) {
context.registerMetric("GC/" + b.getName().replaceAll("\\W", ""), new GarbageCollectorMetric(b), bucketSize);
}
}
@Override
public void execute(Tuple input) {
throw new RuntimeException("Non-system tuples should never be sent to __system bolt.");
}
@Override
public void cleanup() {
}
}
| [
"yuzhongxing88@gmail.com"
] | yuzhongxing88@gmail.com |
b18ec79b15a2a6a469755f0247b4d3ec77069ef0 | 614bc20cd4636bfc6838fd2f1995dcdcdbbcfde4 | /ProjetJ2EE/src/main/java/com/example/ProjetFilRougeGarage/service/ServiceTache.java | 1bc58b157c560109f37b77e6947a0836bad6f68d | [] | no_license | LeYaz/FilRouge | 53149d96c72485882baf9b558f96a9ba33cd6d02 | 03ac553ee0180644a772484154a814a835d8d867 | refs/heads/master | 2023-01-13T22:08:22.449294 | 2020-10-01T17:40:55 | 2020-10-01T17:40:55 | 232,323,911 | 5 | 0 | null | 2023-01-07T14:34:29 | 2020-01-07T12:51:32 | JavaScript | UTF-8 | Java | false | false | 1,256 | java | package com.example.ProjetFilRougeGarage.service;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.example.ProjetFilRougeGarage.beans.Tache;
import com.example.ProjetFilRougeGarage.dao.DaoTache;
@Service
public class ServiceTache implements iServiceTache {
@Autowired
DaoTache daotache;
@Transactional
@Override
public List<Tache> rechercheTacheActive() {
// TODO Auto-generated method stub
return daotache.listActive();
}
@Transactional
@Override
public List<Tache> rechercherTache() {
// TODO Auto-generated method stub
return daotache.findAll();
}
@Transactional
@Override
public Tache rechercherTacheId(int id) {
// TODO Auto-generated method stub
return daotache.findById(id).get();
}
@Transactional
@Override
public void creerTache(Tache ptache) {
// TODO Auto-generated method stub
daotache.save(ptache);
}
@Transactional
@Override
public void modifierTache(Tache ptache) {
// TODO Auto-generated method stub
daotache.save(ptache);
}
@Transactional
@Override
public void desactiverTache(Tache tache) {
daotache.save(tache);
}
}
| [
"47197954+HocineHAM@users.noreply.github.com"
] | 47197954+HocineHAM@users.noreply.github.com |
e66c737329132be3d4a14cc4e576a262b5b3b4d2 | 40868956397ae170dadd446c9fb1bd24d72e28b9 | /android/app/src/main/java/com/attendancesystem/MainActivity.java | 13735f8ce20bb555be5d3d30d572514aaac00f62 | [] | no_license | rmrudro/Attendance-System-React-Native | a94cf565138a0ebd6e4e25565a910dd84bdb183d | e254814330fbbe68d353636f083d43e6e21cd56a | refs/heads/master | 2020-04-07T06:58:40.194915 | 2018-11-19T03:58:57 | 2018-11-19T03:58:57 | 158,158,339 | 0 | 2 | null | null | null | null | UTF-8 | Java | false | false | 377 | java | package com.attendancesystem;
import com.facebook.react.ReactActivity;
public class MainActivity extends ReactActivity {
/**
* Returns the name of the main component registered from JavaScript.
* This is used to schedule rendering of the component.
*/
@Override
protected String getMainComponentName() {
return "AttendanceSystem";
}
}
| [
"rm.rudro@gmail.com"
] | rm.rudro@gmail.com |
af149294276772d872e3243808a5cb3736e6f3b8 | 37d5a70712a75a6829f78398a33d125ffde8a740 | /src/main/java/com/graduation/domain/Letter.java | 060e9739615481e913919c8882455b177371f378 | [] | no_license | QQlei/graduation-project | 0d8e2eabd1f8c86475cf90c9bd03d7366a58e12a | 82f519d4d3bbc81b754c2c8444b478e267af01d3 | refs/heads/master | 2021-04-26T21:53:08.383530 | 2018-09-18T08:02:46 | 2018-09-18T08:02:46 | 124,171,248 | 2 | 1 | null | null | null | null | UTF-8 | Java | false | false | 828 | java | package com.graduation.domain;
import com.graduation.domain.enums.LetterType;
import lombok.Data;
import javax.persistence.*;
import java.io.Serializable;
/**
* 私信
*
* @author JiangL
*
*/
@Entity
@Data
public class Letter extends Entitys implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@GeneratedValue
private Long id;
@Column(nullable = false)
private Long sendUserId;
@Column(nullable = false, length = 65535, columnDefinition = "Text")
private String content;
@Column(nullable = false)
private Long receiveUserId;
@Column(nullable = true)
private Long pid;
@Enumerated(EnumType.STRING)
@Column(nullable = true)
private LetterType type;
@Column(nullable = false)
private Long createTime;
@Transient
private String sendType;
public Letter() {
super();
}
} | [
"2474247144@qq.com"
] | 2474247144@qq.com |
735b1580b1b4dd443258cb6ccd9a5ee648ccb322 | bd86df34b3362729fb53ca4453d6c0c0a5e80607 | /src/main/java/com/example/demo/controller/WikiController.java | ed2d9c564c3109d2ef2b3f9b763b41d7d565375c | [] | no_license | Msrikrishna/java-spring-webserver | b946b41f86e316afaacdda49c5abd153dec751ee | c74f1a8e2eb7e624158f605153bf17f13705c726 | refs/heads/master | 2021-02-06T20:15:04.853144 | 2020-03-16T23:15:06 | 2020-03-16T23:15:06 | 243,945,219 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,485 | java | package com.example.demo.controller;
import org.slf4j.LoggerFactory;
import org.slf4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
import com.example.demo.service.*;
/**
* ConsumeRESTcontroller
*/
@Controller
@RestController
@RequestMapping("/wiki")
//Uses Wiki service to get wiki related data
public class WikiController {
final static Logger logger = LoggerFactory.getLogger(WikiController.class);
@Autowired
retrieveWikiService my_wiki_service;
@GetMapping("/withhelper")
public String getContentsController(@RequestParam(name = "page", defaultValue = "Java") String query ){
return my_wiki_service.getContentsFromHelper(query);
}
@GetMapping("/direct")
public String getContentsDirectController(@RequestParam(name = "page", defaultValue = "Java") String query ){
return my_wiki_service.getContentDirectlyFromWiki(query);
}
} | [
"srikrishnamannem@Sris-MBP.fritz.box"
] | srikrishnamannem@Sris-MBP.fritz.box |
694f729c1ac6b5b0375ecfd6d2e4081ae1b9ada7 | e0844be4251162dffdd141ac2cdb78afcb0304f2 | /src/com/demo/enums/MONTH.java | 2d7f954bd0995c5eeaa47596dfe0647482c8226b | [] | no_license | argmishra/CoreJava | 8c3639fae9a39314c604b9da65006b35e5f30751 | e9af3223e48d11ac1ddec6fbe7941d23ad3c7690 | refs/heads/main | 2023-06-12T05:04:17.979369 | 2021-07-03T13:55:16 | 2021-07-03T13:55:16 | 374,201,974 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 478 | java | package com.demo.enums;
import java.util.HashMap;
import java.util.Map;
public enum MONTH {
JAN(1), FEB(2), MAR(3), APR(4);
int month;
private MONTH(int month) {
this.month = month;
}
int showMonth() {
return month;
}
private static final Map<Integer, MONTH> lookup = new HashMap<>();
static {
for (MONTH month : MONTH.values()) {
lookup.put(month.showMonth(), month);
}
}
public static MONTH getMonth(int month) {
return lookup.get(month);
}
}
| [
"argmishra.ece@gmail.com"
] | argmishra.ece@gmail.com |
9ac16eb1d3163fcd656995d444704da176f79283 | c16d45aeeec5e780e3c4fe6668d6e6f63f30b303 | /src/modul2/lesson11/figurs/IFigur.java | fe34bab6cbc1570da93ea92d1e83954387df4eb5 | [] | no_license | alexandrFrolov2093/myFirstProgect | f28ee3d6d8a266ab582e0e4465550c8c6b1df968 | 4e6f3380d6f2b9b93562982ad86eae02e6c7750e | refs/heads/master | 2020-04-17T01:12:34.011999 | 2019-02-14T10:26:21 | 2019-02-14T10:26:21 | 166,081,638 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 125 | java | package modul2.lesson11.figurs;
public interface IFigur {
double ploshad();
double perimetr();
void print();
}
| [
"sany122334@gmail.com"
] | sany122334@gmail.com |
31be13978cc4da51789f8fe82f187caa483f61f1 | b5813ac5ffa3fc4ed59eb8a168aa5f43c38de3a2 | /app/src/main/java/com/example/newbiechen/ireader/ui/adapter/DiscHelpsAdapter.java | 7ede3a0ece33cb4b06e6f83704c7d1b481119b1c | [
"MIT"
] | permissive | zylsdut/NovelReader | 086c686e4ac58db75417d9d87ae6be5ad2bb46a3 | 9bbafede93ce412c015e7180ef1fdacfc0246f8c | refs/heads/master | 2022-11-30T16:47:39.193413 | 2020-08-06T09:14:21 | 2020-08-06T09:14:21 | 285,195,283 | 0 | 0 | MIT | 2020-08-05T06:01:37 | 2020-08-05T06:01:36 | null | UTF-8 | Java | false | false | 707 | java | package com.example.newbiechen.ireader.ui.adapter;
import android.content.Context;
import com.example.newbiechen.ireader.model.bean.BookHelpsBean;
import com.example.newbiechen.ireader.ui.adapter.view.DiscHelpsHolder;
import com.example.newbiechen.ireader.ui.base.adapter.IViewHolder;
import com.example.newbiechen.ireader.widget.adapter.WholeAdapter;
/**
* Created by newbiechen on 17-4-21.
*/
public class DiscHelpsAdapter extends WholeAdapter<BookHelpsBean>{
public DiscHelpsAdapter(Context context, Options options) {
super(context, options);
}
@Override
protected IViewHolder<BookHelpsBean> createViewHolder(int viewType) {
return new DiscHelpsHolder();
}
}
| [
"newbiechen@gmail.com"
] | newbiechen@gmail.com |
ad8f67131bea9ab37595a801c39fb30b5323fbd5 | 0a56efdc5ca127d96c405681c5e971a383fb9a98 | /src/main/java/com/epam/hujj/tamasknizner/springhomework/domain/Role.java | c6dbe0ea53e2a5ff411ede4bfb5bd14446595a0a | [] | no_license | TamasKnizner/springhomework | d57aa940a43c5d455a1f57ceccb8ded17bb2ea23 | 7abb9cc386e7903a9908732819f0104aeae26f4a | refs/heads/master | 2020-04-17T16:27:01.015298 | 2016-10-07T16:08:07 | 2016-10-07T16:08:07 | 66,364,603 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 109 | java | package com.epam.hujj.tamasknizner.springhomework.domain;
public enum Role {
PLAYER,
COACH,
MANAGEMENT
}
| [
"tamas_knizner@epam.com"
] | tamas_knizner@epam.com |
5598f87405b1c83097adb4c91b72682752dfc5f3 | 1e99140ad1eac2d1b864504de16188f9aa941ad9 | /app/usercenter/src/androidTest/java/com/hs/user/ExampleInstrumentedTest.java | 70024b4181bf42ceba600bbad9e4f01872c8a43f | [] | no_license | ArdWang/HappyShopJava_Master | 6d9eef999987075c4c9907733ba634691282dab2 | 2506b76905461d261526c2ca463b4e8042d2daaa | refs/heads/master | 2020-03-14T15:12:19.117910 | 2018-06-27T10:59:11 | 2018-06-27T10:59:11 | 131,670,845 | 2 | 2 | null | null | null | null | UTF-8 | Java | false | false | 728 | java | package com.hs.user;
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() throws Exception {
// Context of the app under test.
Context appContext = InstrumentationRegistry.getTargetContext();
assertEquals("com.hs.user.test", appContext.getPackageName());
}
}
| [
"you@example.com"
] | you@example.com |
bc821fda7979dffebd21d2fb4b2c59ed3747b274 | d00b7b74766e272312cfc9366d367f29183e6608 | /src/main/java/info/okello/intervw/data_search/App.java | 25af0f73fc9c6db5de3ed7606b957e73706feb34 | [] | no_license | cnokello/btree | 01f74c40ae56885ea20060590c1eb8a851af7c4a | 9efeb11d34fb95a25272f4ca52f810529cb7a5e0 | refs/heads/master | 2016-09-05T21:20:04.363763 | 2014-12-17T20:55:22 | 2014-12-17T20:55:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 4,105 | java | package info.okello.intervw.data_search;
import java.util.InputMismatchException;
import java.util.List;
import java.util.Random;
import java.util.Scanner;
import java.util.UUID;
/**
*
* @author nelson.okello
* @version 1.0.0
* @created 17-Dec-2014
*
* Tester
*
* INDEXING OR CREATING THE BINARY TREE: An indexing service is called.
* The indexing service creates 1000000 random products. On my PC,
* building a binary tree with the 1000000 products take just over 3
* seconds
*
* SAMPLE PRODUCTS TO TEST HOW LONG SEARCH TAKES: It then prints out a
* few sample products that you can use to test how fast the search is.
*
* SEARCH CONSOLE: The program presents you with a console for
* searching products
*
* SEARCH RESULT: The result of each search include the matched product
* and time (in microseconds) that it took to perform the search. The
* worst case time complexity of the search is O(logN).
*
*/
public class App {
public static void main(String[] args) {
// Index products
BTree<Integer, Product> bTree = indexProducts();
// Interactive search console
Scanner scanner = new Scanner(System.in);
boolean more = true;
while (more) {
System.out
.print("\nEnter ID of the product you wish to search (0 to terminate): ");
String idStr = scanner.next();
int id = 0;
try {
id = Integer.parseInt(idStr);
} catch (Exception e) {
System.out.println("ERROR: Product ID must be an integer value");
continue;
}
// int id = scanner.nextInt();
if (id <= 0)
more = false;
else {
long searchStart = System.nanoTime();
List<Product> products = bTree.lookup(id);
long searchStop = System.nanoTime();
System.out.println("SEARCH RESULT:");
if (products == null || products.size() == 0)
System.out.println("No matching products found");
else {
for (Product product : products) {
System.out.println(product.toString());
}
}
System.out.println(String.format("TIME TAKEN: %s microseconds",
(searchStop - searchStart) / 1000));
}
}
System.out.println("Program terminated.");
}
/**
* @author nelson.okello
* @version 1.0.0
* @created 17-Dec-2014
*
* Creates 1000000 sample products randomly and indexes them by
* building a binary tree
*
* @return Returns the built binary tree
*
*/
private static BTree<Integer, Product> indexProducts() {
long start = new java.util.Date().getTime();
System.out.println("\nIndexing 1,000,000 products...");
// Instantiate the binary tree with Integer type key and Product type
// value.
BTree<Integer, Product> bTree = new BTree<Integer, Product>();
Random generator = new Random();
double priceLowerLimit = 100d;
double priceUpperLimit = 500d;
System.out
.println("\nPRODUCTS SELECTED AT RANDOM FOR YOUR LOOKUP TEST:");
System.out
.println("NOTE: Use Product ID = 5 to test that multiple products with the same Product ID can be indexed and retrieved.");
// Sample data to test products multiple products with the same Product
// ID
Product product1 = new Product(5, "Sample product 1", 2.30d);
Product product2 = new Product(5, "Sample product 2", 4.50d);
bTree.insert(5, product1);
bTree.insert(5, product2);
for (int i = 0; i < 1000000; i++) {
int productId = generator.nextInt(1000000);
double price = priceLowerLimit
+ (generator.nextDouble() * (priceUpperLimit - priceLowerLimit));
String productName = UUID.randomUUID().toString();
// Create a random products and insert into the binary tree
Product product = new Product(productId, productName, price);
bTree.insert(productId, product);
// Output sample products for lookup tests.
if (i % 50000 == 0)
System.out.println(product.toString());
}
long stop = new java.util.Date().getTime();
System.out.println(String.format(
"\nIndexing 1,000,000 products completed in %s ms.\n",
(stop - start)));
return bTree;
}
}
| [
"Administrator@CRB155.crbafrica.com"
] | Administrator@CRB155.crbafrica.com |
e72660a7d075bb410d45379582763f655a7b28da | 8700337ce9762715f6c1b2778111e8cb35bcb077 | /src/com/ubhave/datahandler/store/FileStoreCleaner.java | d38a96c8927154b0d05a5d39f73a36b806bde1a7 | [
"ISC"
] | permissive | sspecial/SensorDataManager | b4d82f93bad9538c7ee7af6f6adc7825b4cecd12 | 828e7302a0b6fc8900ed8a19015413f961360157 | refs/heads/master | 2021-01-15T12:32:15.009442 | 2014-09-03T16:03:52 | 2014-09-03T16:03:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 5,330 | java | package com.ubhave.datahandler.store;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.zip.GZIPOutputStream;
import android.util.Log;
import com.ubhave.datahandler.config.DataHandlerConfig;
import com.ubhave.datahandler.config.DataStorageConfig;
import com.ubhave.datahandler.config.DataStorageConstants;
import com.ubhave.datahandler.except.DataHandlerException;
public class FileStoreCleaner
{
private static final String TAG = "LogFileDataStorage";
private final Object fileTransferLock;
private final DataHandlerConfig config;
public FileStoreCleaner(final Object fileTransferLock)
{
this.config = DataHandlerConfig.getInstance();
this.fileTransferLock = fileTransferLock;
}
public void moveDirectoryContentsForUpload(String directoryFullPath) throws DataHandlerException, IOException
{
if (DataHandlerConfig.shouldLog())
{
Log.d(TAG, "moveDirectoryContentsForUpload() " + directoryFullPath);
}
File directory = new File(directoryFullPath);
if (directory != null && directory.exists())
{
File[] fileList = directory.listFiles();
if (fileList != null)
{
for (File file : fileList)
{
if (isMediaFile(file.getName()) || isLogFileDueForUpload(file))
{
if (file.length() <= 0)
{
file.delete();
}
else
{
moveFileToUploadDir(file);
}
}
}
}
}
}
private File getUploadDirectory() throws DataHandlerException
{
String uploadDir = (String) config.get(DataStorageConfig.LOCAL_STORAGE_UPLOAD_DIRECTORY_PATH);
File directory = new File(uploadDir);
if (!directory.exists())
{
directory.mkdirs();
}
return directory;
}
private void moveFileToUploadDir(final File file)
{
new Thread()
{
private void removeDirectoryIfEmpty(final File directory)
{
if (directory != null)
{
File[] fileList = directory.listFiles();
if (fileList != null && fileList.length == 0)
{
boolean deleted = directory.delete();
if (DataHandlerConfig.shouldLog())
{
Log.d(TAG, "removeDirectoryIfEmpty() " + directory.getAbsolutePath()+" = "+deleted);
}
}
}
}
public void run()
{
try
{
if (DataHandlerConfig.shouldLog())
{
Log.d(TAG, "gzip file " + file);
}
final File uploadDirectory = getUploadDirectory();
synchronized (fileTransferLock)
{
gzipFile(file, uploadDirectory);
if (DataHandlerConfig.shouldLog())
{
String abs = file.getAbsolutePath();
Log.d(TAG, "moved file " + abs + " to server upload dir");
Log.d(TAG, "deleting file: " + abs);
}
File parentDirectory = file.getParentFile();
file.delete();
removeDirectoryIfEmpty(parentDirectory);
}
}
catch (Exception e)
{
e.printStackTrace();
}
}
}.start();
}
private boolean isMediaFile(final String fileName)
{
return fileName.contains(DataStorageConstants.ZIP_FILE_SUFFIX) || fileName.contains(DataStorageConstants.AUDIO_FILE_SUFFIX)
|| fileName.contains(DataStorageConstants.IMAGE_FILE_SUFFIX);
}
private long getDurationLimit()
{
try
{
return (Long) config.get(DataStorageConfig.FILE_LIFE_MILLIS);
}
catch (Exception e)
{
e.printStackTrace();
return DataStorageConfig.DEFAULT_FILE_LIFE_MILLIS;
}
}
private boolean isLogFileDueForUpload(File file)
{
try
{
long durationLimit = getDurationLimit();
if (file != null)
{
String fileName = file.getName();
if (fileName.contains(DataStorageConstants.LOG_FILE_SUFFIX))
{
String timeStr = fileName.substring(0, fileName.indexOf(DataStorageConstants.LOG_FILE_SUFFIX));
long fileTimestamp = Long.parseLong(timeStr);
long currTime = System.currentTimeMillis();
if ((currTime - fileTimestamp) > durationLimit)
{
return true;
}
}
}
return false;
}
catch (Exception e)
{
e.printStackTrace();
return false;
}
}
private void gzipFile(final File inputFile, final File uploadDirectory) throws IOException, DataHandlerException
{
byte[] buffer = new byte[1024];
File sourceDirectory = new File(inputFile.getParent());
String gzipFileName =
getIdentifier() + "_"
+ sourceDirectory.getName() + "_"
+ inputFile.getName()
+ DataStorageConstants.ZIP_FILE_SUFFIX;
FileInputStream in = new FileInputStream(inputFile);
int len;
File outputFile = new File(uploadDirectory, gzipFileName);
GZIPOutputStream gzipOS = new GZIPOutputStream(new FileOutputStream(outputFile));
while ((len = in.read(buffer)) > 0)
{
gzipOS.write(buffer, 0, len);
}
in.close();
gzipOS.finish();
gzipOS.close();
}
private String getIdentifier() throws DataHandlerException
{
String device_id = (String) config.get(DataStorageConfig.UNIQUE_DEVICE_ID);
if (device_id == null)
{
String user_id = (String) config.get(DataStorageConfig.UNIQUE_USER_ID);
if (user_id == null)
{
if (DataHandlerConfig.shouldLog())
{
Log.d(TAG, "Error: user identifier is: "+user_id+", device identifier is: "+device_id);
}
throw new DataHandlerException(DataHandlerException.CONFIG_CONFLICT);
}
return user_id;
}
return device_id;
}
}
| [
"neal.lathia@cl.cam.ac.uk"
] | neal.lathia@cl.cam.ac.uk |
954b97b39cae4a5b6f19f8c3ea5deeb0dd55a728 | 5b70f4c9efb79ccd888eb9f65ad51efbf4eaa579 | /springboot-servicio-oauth/src/test/java/com/formacionbdi/springboot/app/oauth/SpringbootServicioOauthApplicationTests.java | 4d52e8e578649bb151dd00d9649888c636c4c97f | [] | no_license | emibelmar/MicroservicesProjects | 71cc74dafd5e84e9350fb8f81f015d01e4487ace | d88a55ed048462d0dce488a735819b3981b81de3 | refs/heads/main | 2023-06-23T13:58:01.292317 | 2021-07-29T14:39:06 | 2021-07-29T14:39:06 | 390,718,704 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 371 | java | package com.formacionbdi.springboot.app.oauth;
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 SpringbootServicioOauthApplicationTests {
@Test
public void contextLoads() {
}
}
| [
"emiliobeltran94@gmail.com"
] | emiliobeltran94@gmail.com |
903255b1f36b33ca09ab1bb6a125b2e4c919b7d8 | 5a12ec2aac74e4e3288026ebe2beebb52be23c03 | /momo-run/src/test/java/com/momohelp/calculate/service/test3/Match.java | 6d4f62e43163321d5ee5687316b4f8b972b61cba | [
"MIT"
] | permissive | momo3210/gold | 394bdcec6fd0b2764288b7981afb45874b3fbe77 | ef7aa0fdd81cc30beae19c797939458af40d261b | refs/heads/master | 2021-01-21T15:19:47.092412 | 2016-06-26T10:33:32 | 2016-06-26T10:33:32 | 57,430,266 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 8,359 | java | package com.momohelp.calculate.service.test3;
import java.io.Serializable;
import java.util.Calendar;
import java.util.Date;
import java.util.List;
import javax.annotation.Resource;
import org.apache.log4j.Logger;
import com.momohelp.calculate.service.IMatch;
import com.momohelp.model.Buy;
import com.momohelp.model.BuySell;
import com.momohelp.model.Sell;
import com.momohelp.service.BuySellService;
import com.momohelp.service.BuyService;
import com.momohelp.service.SellService;
//@Service
public class Match implements Serializable, IMatch {
private static final long serialVersionUID = -7591547109810957383L;
private static Logger log = Logger.getLogger(Match.class);
@Resource
private BuyService buyService;
@Resource
private SellService sellService;
@Resource
private BuySellService buySellService;
// 买卖盘自动匹配
/**
* 业务:获取当天 买卖盘中的数据 以及 交易记录中 卖盘id为空或者卖盘id为空且状态为0数据
*
* SQL:
*
* 1.SELECT * FROM p_buy_sell as p WHERE (p.'p_buy_id' ='null' or
* p.'p_sell_id'='null') and p.`status`='0'
*
* 2.SELECT * FROM p_buy as p WHERE p.create_time between #{0} and #{1};
*
* 3.SELECT * FROM p_sell as p WHERE p.create_time time between #{0} and
* #{1}
*
* 原则:优先匹配交易记录表中的数据 其次 卖家为主
*******************************/
@Override
public boolean automatch() {
log.info("-----------买卖盘自动匹配---------------");
boolean bool = false;
// 获取买卖盘中未匹配的单据
List<BuySell> buySells = buySellService.selectBySellAndBuyId();
Calendar cr = Calendar.getInstance();
cr.add(Calendar.DATE, -1);
// 卖盘数据
List<Sell> sells = sellService.selectByCycles(cr.getTime(), Calendar
.getInstance().getTime());
//买盘数据
List<Buy> buys = buyService.selectByCycles(cr.getTime(), Calendar
.getInstance().getTime());
for (BuySell buySell : buySells) {
if (!buySell.getP_buy_id().equals("null")) {// 说明是买盘剩余数据
buyDataHandle(buySell, sells);
} else {// 说明是卖盘剩余数据
sellDataHandle(buySell, buys);
}
}
buyAndSellHandle(sells, buys);
bool = true;
return bool;
}
private void buyAndSellHandle(List<Sell> sells, List<Buy> buys) {
if (sells == null || sells.size() == 0) {
return;
}
if (buys == null || buys.size() == 0) {
return;
}
// 以卖家为主
for (Sell sell : sells) {
int sellMatchNum = sell.getNum_sell();//
if (sellMatchNum <= 0) {
continue;
}
BuySell entity = null;
for (Buy buy : buys) {
int buyMatchNum = buy.getNum_buy();
if (buyMatchNum <= 0) {
continue;
}
entity = new BuySell();
entity.setId(genId());
entity.setCreate_time(new Date());
entity.setP_sell_id(sell.getId());
entity.setP_buy_id(buy.getId());
entity.setStatus(0);
entity.setP_buy_user_id(buy.getUser_id());
entity.setP_sell_user_id(sell.getUser_id());
if (sellMatchNum > buyMatchNum) {// 卖家大于买家
entity.setNum_matching(buyMatchNum);
sell.setNum_sell(sellMatchNum - buyMatchNum);
buy.setNum_buy(0);
} else if (sellMatchNum < buyMatchNum) {// 卖家小于买家
entity.setNum_matching(sellMatchNum);
sell.setNum_sell(0);
buy.setNum_buy(buyMatchNum - sellMatchNum);
break;
} else {// 卖家等于买家
entity.setNum_matching(buyMatchNum);
sell.setNum_sell(0);
buy.setNum_buy(0);
break;
}
buySellService.save(entity);
}
}
// 自动匹配结束后 未处理的数据转入买卖交易中
// 卖盘清理
sells.parallelStream()
.filter(sell -> sell.getNum_sell() > 0)
.forEach(
sell -> {
BuySell entity = new BuySell();
entity.setId(genId());
entity.setCreate_time(new Date());
entity.setP_sell_id(sell.getId());
entity.setP_buy_id("null");
entity.setStatus(0);
entity.setP_sell_user_id(sell.getUser_id());
entity.setNum_matching(sell.getNum_sell());
});
// 买盘清理
buys.parallelStream()
.filter(buy -> buy.getNum_buy() > 0)
.forEach(
buy -> {
BuySell entity = new BuySell();
entity.setId(genId());
entity.setCreate_time(new Date());
entity.setP_sell_id("null");
entity.setP_buy_id(buy.getId());
entity.setStatus(0);
entity.setP_buy_user_id(buy.getUser_id());
entity.setNum_matching(buy.getNum_buy());
});
}
private void sellDataHandle(BuySell buySell, List<Buy> buys) {
if (null == buySell || buySell.getNum_matching() <= 0) {
return;
}
BuySell entity = null;
for (Buy buy : buys) {
if (buy.getNum_buy() <= 0) {
continue;
}
entity = new BuySell();
entity.setId(genId());
entity.setCreate_time(new Date());
entity.setP_sell_id(buySell.getP_sell_id());
entity.setP_buy_id(buy.getId());
entity.setStatus(0);
entity.setP_buy_user_id(buy.getUser_id());
entity.setP_sell_user_id(buySell.getP_sell_user_id());
int buyMatcheNum = buy.getNum_buy();
int sellMatcheNum = buySell.getNum_matching();
if (sellMatcheNum > buyMatcheNum) {// 卖家数据大于买家数据
entity.setNum_matching(buyMatcheNum);
buySell.setNum_matching(sellMatcheNum - buyMatcheNum);
buy.setNum_buy(0);
} else if (sellMatcheNum < buyMatcheNum) {// 卖家数据小于买家数据
entity.setNum_matching(sellMatcheNum);
buySell.setNum_matching(0);
buy.setNum_buy(buyMatcheNum - sellMatcheNum);
break;
} else {// 卖家数据等于买家数据
entity.setNum_matching(sellMatcheNum);
buySell.setNum_matching(0);
buy.setNum_buy(0);
break;
}
buySellService.save(entity);
}
if (null != buys && buys.size() > 0) {
if (buySell.getNum_matching() > 0) {
// buySellService.delete(buySell.getId());
buySell.setCreate_time(new Date());
// buySellService.save(buySell);
buySellService.updateNotNull(buySell);
} else {
buySellService.delete(buySell.getId());
}
}
buySell = null;
}
private void buyDataHandle(BuySell buySell, List<Sell> sells) {
if (null == buySell || buySell.getNum_matching() <= 0) {
return;
}
BuySell entity = null;
for (Sell sell : sells) {
if (sell.getNum_sell() <= 0) {
continue;
}
entity = new BuySell();
entity.setId(genId());
entity.setCreate_time(new Date());
entity.setP_sell_id(sell.getId());
entity.setP_buy_id(buySell.getP_buy_id());
entity.setStatus(0);
entity.setP_buy_user_id(buySell.getP_buy_user_id());
entity.setP_sell_user_id(sell.getUser_id());
int sellMatcheNum = sell.getNum_sell();// 买家数据
int buySellMatcheNum = buySell.getNum_matching();// 卖家数据
if (buySellMatcheNum > sellMatcheNum) {// 买家数据大于卖家数据
entity.setNum_matching(sellMatcheNum);
buySell.setNum_matching(buySellMatcheNum - sellMatcheNum);
sell.setNum_sell(0);
} else if (buySellMatcheNum < sellMatcheNum) {// 买家数据小于卖家数据
entity.setNum_matching(buySellMatcheNum);
buySell.setNum_matching(0);
sell.setNum_sell(sellMatcheNum - buySellMatcheNum);
break;
} else {// 卖家数据等于买家数据
entity.setNum_matching(sellMatcheNum);
buySell.setNum_matching(0);
sell.setNum_sell(0);
break;
}
buySellService.save(entity);
}
if (null != sells && sells.size() > 0) {
if (buySell.getNum_matching() > 0) {
// buySellService.delete(buySell.getId());
buySell.setCreate_time(new Date());
// buySellService.save(buySell);
buySellService.updateNotNull(buySell);
} else {
buySellService.delete(buySell.getId());
}
}
buySell = null;
}
/**
* 生成主键
*
* @return
*/
private String genId() {
String id = null;
BuySell buySell = null;
do {
// 算法
int i = (int) ((Math.random() * 9 + 1) * 10000000);
id = String.valueOf(i);
if (9 < id.length()) {
id.substring(0, 9);
}
// END
buySell = buySellService.selectByKey(id);
} while (null != buySell);
return id;
}
}
| [
"zhangjunfang0505@163.com"
] | zhangjunfang0505@163.com |
d19d6cefabdfdd6dc9602f6bd3fcb1e723b010f1 | 6c581f6164eebe845a848e8c2d9f8315f7e264fd | /org.abchip.mimo.biz.model/src/org/abchip/mimo/biz/model/humanres/ability/PartyQual.java | 3624205d9d1d0c6bc2bddec027534e5be51da595 | [] | no_license | abchip/mimo-biz20 | 7a0b110fd40733a7f3049d1871ef9559bc08db5c | a3cffeccb98d200ff2ecd629942b4279364d3373 | refs/heads/master | 2023-03-22T22:54:03.865399 | 2021-03-18T20:35:52 | 2021-03-18T20:35:52 | 245,134,382 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 8,699 | java | /**
* Copyright (c) 2017, 2021 ABChip and others.
* 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
*/
package org.abchip.mimo.biz.model.humanres.ability;
import java.util.Date;
import org.abchip.mimo.biz.model.common.status.StatusItem;
import org.abchip.mimo.biz.model.party.party.Party;
import org.abchip.mimo.entity.EntityInfo;
import org.abchip.mimo.entity.EntityTyped;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Party Qual</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* </p>
* <ul>
* <li>{@link org.abchip.mimo.biz.model.humanres.ability.PartyQual#getParty <em>Party</em>}</li>
* <li>{@link org.abchip.mimo.biz.model.humanres.ability.PartyQual#getPartyQualType <em>Party Qual Type</em>}</li>
* <li>{@link org.abchip.mimo.biz.model.humanres.ability.PartyQual#getFromDate <em>From Date</em>}</li>
* <li>{@link org.abchip.mimo.biz.model.humanres.ability.PartyQual#getQualificationDesc <em>Qualification Desc</em>}</li>
* <li>{@link org.abchip.mimo.biz.model.humanres.ability.PartyQual#getStatus <em>Status</em>}</li>
* <li>{@link org.abchip.mimo.biz.model.humanres.ability.PartyQual#getThruDate <em>Thru Date</em>}</li>
* <li>{@link org.abchip.mimo.biz.model.humanres.ability.PartyQual#getTitle <em>Title</em>}</li>
* <li>{@link org.abchip.mimo.biz.model.humanres.ability.PartyQual#getVerifStatus <em>Verif Status</em>}</li>
* </ul>
*
* @see org.abchip.mimo.biz.model.humanres.ability.AbilityPackage#getPartyQual()
* @model annotation="mimo-ent-frame title='Party Qualification'"
* @generated
*/
public interface PartyQual extends EntityTyped<PartyQualType>, EntityInfo {
/**
* Returns the value of the '<em><b>Party</b></em>' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Party</em>' reference.
* @see #setParty(Party)
* @see org.abchip.mimo.biz.model.humanres.ability.AbilityPackage#getPartyQual_Party()
* @model required="true"
* annotation="mimo-ent-slot key='true'"
* @generated
*/
Party getParty();
/**
* Sets the value of the '{@link org.abchip.mimo.biz.model.humanres.ability.PartyQual#getParty <em>Party</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Party</em>' reference.
* @see #getParty()
* @generated
*/
void setParty(Party value);
/**
* Returns the value of the '<em><b>Party Qual Type</b></em>' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Party Qual Type</em>' reference.
* @see #setPartyQualType(PartyQualType)
* @see org.abchip.mimo.biz.model.humanres.ability.AbilityPackage#getPartyQual_PartyQualType()
* @model required="true"
* annotation="mimo-ent-slot key='true'"
* @generated
*/
PartyQualType getPartyQualType();
/**
* Sets the value of the '{@link org.abchip.mimo.biz.model.humanres.ability.PartyQual#getPartyQualType <em>Party Qual Type</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Party Qual Type</em>' reference.
* @see #getPartyQualType()
* @generated
*/
void setPartyQualType(PartyQualType value);
/**
* Returns the value of the '<em><b>From Date</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>From Date</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>From Date</em>' attribute.
* @see #setFromDate(Date)
* @see org.abchip.mimo.biz.model.humanres.ability.AbilityPackage#getPartyQual_FromDate()
* @model required="true"
* annotation="mimo-ent-slot key='true'"
* @generated
*/
Date getFromDate();
/**
* Sets the value of the '{@link org.abchip.mimo.biz.model.humanres.ability.PartyQual#getFromDate <em>From Date</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>From Date</em>' attribute.
* @see #getFromDate()
* @generated
*/
void setFromDate(Date value);
/**
* Returns the value of the '<em><b>Qualification Desc</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Qualification Desc</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Qualification Desc</em>' attribute.
* @see #setQualificationDesc(String)
* @see org.abchip.mimo.biz.model.humanres.ability.AbilityPackage#getPartyQual_QualificationDesc()
* @model annotation="mimo-ent-format length='60'"
* @generated
*/
String getQualificationDesc();
/**
* Sets the value of the '{@link org.abchip.mimo.biz.model.humanres.ability.PartyQual#getQualificationDesc <em>Qualification Desc</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Qualification Desc</em>' attribute.
* @see #getQualificationDesc()
* @generated
*/
void setQualificationDesc(String value);
/**
* Returns the value of the '<em><b>Status</b></em>' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Status</em>' reference.
* @see #setStatus(StatusItem)
* @see org.abchip.mimo.biz.model.humanres.ability.AbilityPackage#getPartyQual_Status()
* @model annotation="mimo-ent-slot help='Status e.g. completed, part-time etc.'"
* @generated
*/
StatusItem getStatus();
/**
* Sets the value of the '{@link org.abchip.mimo.biz.model.humanres.ability.PartyQual#getStatus <em>Status</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Status</em>' reference.
* @see #getStatus()
* @generated
*/
void setStatus(StatusItem value);
/**
* Returns the value of the '<em><b>Thru Date</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Thru Date</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Thru Date</em>' attribute.
* @see #setThruDate(Date)
* @see org.abchip.mimo.biz.model.humanres.ability.AbilityPackage#getPartyQual_ThruDate()
* @model
* @generated
*/
Date getThruDate();
/**
* Sets the value of the '{@link org.abchip.mimo.biz.model.humanres.ability.PartyQual#getThruDate <em>Thru Date</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Thru Date</em>' attribute.
* @see #getThruDate()
* @generated
*/
void setThruDate(Date value);
/**
* Returns the value of the '<em><b>Title</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Title</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Title</em>' attribute.
* @see #setTitle(String)
* @see org.abchip.mimo.biz.model.humanres.ability.AbilityPackage#getPartyQual_Title()
* @model annotation="mimo-ent-slot help='Title of degree or job'"
* annotation="mimo-ent-format length='60'"
* @generated
*/
String getTitle();
/**
* Sets the value of the '{@link org.abchip.mimo.biz.model.humanres.ability.PartyQual#getTitle <em>Title</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Title</em>' attribute.
* @see #getTitle()
* @generated
*/
void setTitle(String value);
/**
* Returns the value of the '<em><b>Verif Status</b></em>' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Verif Status</em>' reference.
* @see #setVerifStatus(StatusItem)
* @see org.abchip.mimo.biz.model.humanres.ability.AbilityPackage#getPartyQual_VerifStatus()
* @model annotation="mimo-ent-slot help='Verification done for this entry if any'"
* @generated
*/
StatusItem getVerifStatus();
/**
* Sets the value of the '{@link org.abchip.mimo.biz.model.humanres.ability.PartyQual#getVerifStatus <em>Verif Status</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Verif Status</em>' reference.
* @see #getVerifStatus()
* @generated
*/
void setVerifStatus(StatusItem value);
} // PartyQual
| [
"dev@abchip.it"
] | dev@abchip.it |
9929aa3793afa3f39e5908f7e487699624d9e08f | 8decdadc016c32cfd18b0903f45b6e85a8a8aee0 | /src/test/java/com/OX/app/LanguageTest.java | 2a0031de2ccfc6994c6554f95e120a05b27a4471 | [] | no_license | Kapaika/OX | c14ef7af962446f270f81db250343a6248abf7ea | aed5a596390cfb4acf74f14e97be1c1f12d56854 | refs/heads/master | 2020-04-28T21:23:47.284757 | 2019-04-08T15:51:55 | 2019-04-08T15:51:55 | 175,580,336 | 0 | 0 | null | 2019-04-08T15:51:56 | 2019-03-14T08:32:13 | Java | UTF-8 | Java | false | false | 857 | java | package com.OX.app;
import org.testng.Assert;
import org.testng.annotations.Test;
/**
* @author Bartosz Kupajski
*/
@Test
public class LanguageTest {
@Test
public void testLanguageChange(){
//Default language is Polish
Language language = Language.getInstance();
String wonPl = language.getString("won");
language.changeLangugae();
String wonEn = language.getString("won");
Assert.assertNotEquals(wonEn,wonPl);
}
@Test
public void testLanguageChangeTwice(){
//Default language is Polish
Language language = Language.getInstance();
String wonPl = language.getString("won");
language.changeLangugae();
language.changeLangugae();
String wonSecondPL = language.getString("won");
Assert.assertEquals(wonSecondPL,wonPl);
}
}
| [
"bartosz_kupajski@epam.com"
] | bartosz_kupajski@epam.com |
4a713d6d50da806ebeaf8c02dd5be51db089a952 | dc54d4160d83c8a29a995ece74bf65dd22ef35a9 | /Roteiros Especiais/2o estagio/RE5-01-RE-Linked-list-iterativa-ordenada-environment/src/main/java/adt/linkedList/DoubleLinkedListImpl.java | 2023605bd4d99f17f51a8a8f4288a6d2bd7d91b3 | [] | no_license | EmanuelSal/LEDA-UFCG | 33195771e82243c94e06049b820bde5ef0f4654b | 57828adc94f05eb0df87ceac86ea281cfc127325 | refs/heads/master | 2023-03-20T06:33:44.949345 | 2019-07-04T14:18:38 | 2019-07-04T14:18:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,309 | java | package adt.linkedList;
public class DoubleLinkedListImpl<T> extends SingleLinkedListImpl<T> implements
DoubleLinkedList<T> {
protected DoubleLinkedListNode<T> last;
@Override
public void insertFirst(T element) {
if(element != null){
DoubleLinkedListNode<T> newHead = new DoubleLinkedListNode<>();
newHead.setData(element);
newHead.setNext(this.getHead());
newHead.setPrevious(new DoubleLinkedListNode<>());
((DoubleLinkedListNode<T>)this.getHead()).setPrevious(newHead);
if(this.getLast().isNIL()){
this.setLast(newHead);
}
this.setHead(newHead);
}
}
@Override
public void removeFirst() {
if (!this.getHead().isNIL()) {
this.setHead(this.getHead().getNext());
if (this.getHead().isNIL()) {
this.setLast((DoubleLinkedListNode<T>) this.getHead());
}
((DoubleLinkedListNode<T>) this.getHead()).setPrevious(new DoubleLinkedListNode<>());
}
}
@Override
public void removeLast() {
if (!this.getLast().isNIL()) {
this.setLast(this.getLast().getPrevious());
if (this.getLast().isNIL()) {
this.setHead(this.getLast());
}
this.getLast().setNext(new SingleLinkedListNode<>());
}
}
public DoubleLinkedListNode<T> getLast() {
return last;
}
public void setLast(DoubleLinkedListNode<T> last) {
this.last = last;
}
}
| [
"raiany.paz@ccc.ufcg.edu.br"
] | raiany.paz@ccc.ufcg.edu.br |
763af86b39539f276743f45dfac1f8ee91d6481f | 066179ece1effe057806de90a2749817843dce1c | /Zivug/app/src/main/java/com/example/zivug/fragments/ReceivedFavFragment.java | 7a563c2a3bde2cc0ab4083d4ac0b634748ada220 | [] | no_license | TonyElkharrat/Zivug-Android | caca048a538f32f90218d228b2b54a2847cca4b6 | 0eb59682e92d8228679008c93d9ca0e79cee101f | refs/heads/master | 2020-07-29T01:16:10.233130 | 2019-11-03T12:31:13 | 2019-11-03T12:31:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 4,377 | java | package com.example.zivug.fragments;
import android.os.Bundle;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import com.example.zivug.Adapter.ContactAdapter;
import com.example.zivug.R;
import com.example.zivug.models.Favorites;
import com.example.zivug.models.User;
import com.example.zivug.notifier.loadDataNotifier;
import com.google.firebase.auth.FirebaseAuth;
import com.google.firebase.database.DataSnapshot;
import com.google.firebase.database.DatabaseError;
import com.google.firebase.database.DatabaseReference;
import com.google.firebase.database.FirebaseDatabase;
import com.google.firebase.database.ValueEventListener;
import java.util.ArrayList;
public class ReceivedFavFragment extends Fragment implements loadDataNotifier
{
RecyclerView recyclerView= null;
private View RequestFragmentView;
private RecyclerView myRequestList;
private DatabaseReference ChatreqRed;
private FirebaseAuth mAuth;
private String currentUserID;
private static String SenderUserID,ReciverUserID;
public ReceivedFavFragment(){
}
@Nullable
@Override
public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState)
{
View view = LayoutInflater.from(getContext()).inflate(R.layout.fragment_request, container, false);
mAuth = FirebaseAuth.getInstance();
currentUserID = mAuth.getCurrentUser().getUid();
ChatreqRed= FirebaseDatabase.getInstance().getReference().child("Favorites");
SenderUserID = mAuth.getCurrentUser().getUid();
Initialize(view);
loadData();
return view;
}
private void Initialize(View view)
{
recyclerView = view.findViewById(R.id.chat_request_list);
recyclerView.setLayoutManager(new LinearLayoutManager(getContext()));
recyclerView.setHasFixedSize(true);
}
public void loadData() {
final DatabaseReference databaseReference = FirebaseDatabase.getInstance().getReference();
final ArrayList<User> ReceiveArr = new ArrayList<>();
final ArrayList<String> list2 = new ArrayList<>();
databaseReference.child("Favorites").addValueEventListener(new ValueEventListener(){
@Override
public void onDataChange(@NonNull DataSnapshot dataSnapshot)
{
ReceiveArr.clear();
for (DataSnapshot snapshot: dataSnapshot.getChildren() )
{
list2.add(snapshot.getValue(Favorites.class).getSenderUserID());
}
Log.d("MyApp", list2+"");
databaseReference.child("Users").addValueEventListener(new ValueEventListener()
{
@Override
public void onDataChange(@NonNull DataSnapshot dataSnapshot)
{
ReceiveArr.clear();
for (DataSnapshot snapshot: dataSnapshot.getChildren() )
{
User user = snapshot.getValue(User.class);
ReciverUserID = user.getuId();
list2.add(snapshot.getValue(Favorites.class).toString());
if (list2.contains(ReciverUserID)&& (!ReciverUserID.equals(FirebaseAuth.getInstance().getCurrentUser().getUid()))){
ReceiveArr.add(user);
}
}
ContactAdapter contactAdapter = new ContactAdapter(ReceiveArr, getContext());
recyclerView.setAdapter(contactAdapter);
}
@Override
public void onCancelled(@NonNull DatabaseError databaseError) {
}
});
}
@Override
public void onCancelled(@NonNull DatabaseError databaseError)
{
}
});
}
// public static class RequestViewHolder extends RecyclerView.ViewHolder {
//
//
// public RequestViewHolder(@NonNull View itemView) {
// super(itemView);
// }
// }
}
| [
"tonyel432@gmail.com"
] | tonyel432@gmail.com |
88377f7d6d266f0c8f119901ba4560ea7f32f8e0 | ded6d4cd6a7e2a7658e81fca2e55e0f354ef122e | /src/main/java/com/sagiller/main/service/impl/AnalysisServiceImpl.java | 8f76cf166443e06a24d5df77e42d9cc1a431951f | [] | no_license | sagiller/sagiller_main | de0ef6d24f7c3026455ce42a69e8325e4185af85 | fd5e13004cc5258d74e056ab0d5ebff0ac85b1ce | refs/heads/master | 2021-04-29T06:41:19.549446 | 2017-02-21T10:14:20 | 2017-02-21T10:14:20 | 77,992,658 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,898 | java | package com.sagiller.main.service.impl;
import com.sagiller.main.cache.RedisCache;
import com.sagiller.main.dao.ImageLoadingDao;
import com.sagiller.main.dao.LaunchDao;
import com.sagiller.main.entity.ImageLoadingAverage;
import com.sagiller.main.entity.Launch;
import com.sagiller.main.entity.UploadData;
import com.sagiller.main.service.AnalysisService;
import com.sagiller.main.entity.ImageLoading;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.*;
@Service
public class AnalysisServiceImpl implements AnalysisService {
private final Logger LOG = LoggerFactory.getLogger(this.getClass());
@Autowired
private ImageLoadingDao imageLoadingDao;
@Autowired
private LaunchDao launchDao;
@Autowired
private RedisCache cache;
@Override
public int uploadData(UploadData uploadData) {
Launch launch = new Launch();
List<Launch> launches = new ArrayList<>();
launch.setSerialNumber(uploadData.getSerialNumber());
for (Long time:uploadData.getTimes()) {
launch.setLaunchTime(new Date(time));
launches.add(launch);
}
// launchDao.createAll(launches);
ImageLoading imageLoading = uploadData.getImageLoading();
if (imageLoading == null) {
return 0;
}
ImageLoading existImageLoading = imageLoadingDao.queryBySerialNumber(uploadData.getImageLoading().getSerialNumber());
if (existImageLoading != null) {
existImageLoading.setLoadingMax(existImageLoading.getLoadingMax() > imageLoading.getLoadingMax() ? existImageLoading.getLoadingMax() : imageLoading.getLoadingMax());
existImageLoading.setLoadingMin(existImageLoading.getLoadingMin() > imageLoading.getLoadingMin() ? existImageLoading.getLoadingMin() : imageLoading.getLoadingMin());
int existLoadingTimes = existImageLoading.getLoadingTimes();
int loadingTimes = imageLoading.getLoadingTimes();
float newLoadingAverage;
if (existLoadingTimes == 0 && loadingTimes == 0) {
newLoadingAverage = 0;
} else {
newLoadingAverage = (existImageLoading.getLoadingAverage() * existLoadingTimes + imageLoading.getLoadingAverage() * loadingTimes) / (existLoadingTimes + loadingTimes);
}
existImageLoading.setLoadingAverage(newLoadingAverage);
existImageLoading.setLoadingTimes(existLoadingTimes + loadingTimes);
existImageLoading.setDrawMax(existImageLoading.getDrawMax() > imageLoading.getDrawMax() ? existImageLoading.getDrawMax() : imageLoading.getDrawMax());
existImageLoading.setDrawMin(existImageLoading.getDrawMin() > imageLoading.getDrawMin() ? existImageLoading.getDrawMin() : imageLoading.getDrawMin());
int existDrawTimes = existImageLoading.getDrawTimes();
int drawTimes = imageLoading.getDrawTimes();
float newDrawAverage;
if (existDrawTimes == 0 && drawTimes == 0) {
newDrawAverage = 0;
} else {
newDrawAverage = (existImageLoading.getDrawAverage() * existDrawTimes + imageLoading.getDrawAverage() * drawTimes) / (existDrawTimes + drawTimes);
}
existImageLoading.setDrawAverage(newDrawAverage);
existImageLoading.setDrawTimes(existDrawTimes + drawTimes);
imageLoadingDao.update(existImageLoading);
} else {
imageLoadingDao.create(imageLoading);
}
return 0;
}
@Override
public List<ImageLoadingAverage> getImageLoading(int osType, String start, String end) {
return null;
}
public ImageLoadingAverage getImageLoadingAverage(int osType
) {
return imageLoadingDao.averageOnPlatform(osType);
}
}
| [
"sagiller@163.com"
] | sagiller@163.com |
3184810b48c70f3229c98060cac0f40122a72768 | d5fa22150ad644036aa63bb3ac167136f30ce4fe | /src/main/java/com/airwire/hms/entity/Employee.java | 86e7a338cb20bd1585effab7a827a3301f6f64b9 | [] | no_license | PMSShivRitesh/HMS | 723607a9af8028ae0ab9356cdb3daca9e10a8374 | b9496bc89687102e8223bb40ba10bff468cae48e | refs/heads/master | 2021-01-19T02:51:34.128055 | 2016-11-14T18:42:18 | 2016-11-14T18:42:18 | 73,539,338 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 4,389 | java | package com.airwire.hms.entity;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import org.hibernate.annotations.GenericGenerator;
import com.airwire.hms.util.EmploymentType;
import com.airwire.hms.util.SEX;
import com.airwire.hms.util.UserStatus;
@Entity(name="EMPLOYEE")
public class Employee implements Serializable {
/**
*
*/
private static final long serialVersionUID = 1354743845492515784L;
@Column(name="EMPLOYEE_ID", columnDefinition = "CHAR(36)")
@GeneratedValue(generator="uuid")
@GenericGenerator(name="uuid", strategy="uuid2")
@Id
private String employeeId;
@Column(name = "LOGIN_NAME", nullable=false, unique=true)
private String loginName;
@Column(name = "PASSWORD", nullable=false, unique=true)
private String password;
@Column(name="NAME")
private String name;
@Column(name="AGE")
private int age;
@JoinColumn(name="ROLE_ID")
@ManyToOne()
private Role role;
@Column(name="SEX")
@Enumerated(EnumType.STRING)
private SEX sex;
@Column(name="UID")
private String uid;
@Column(name="EMAIL_ID")
private String emailId;
@Column(name="STREET_ADDRESS")
private String streetAddress;
@Column(name="CITY")
private String city;
@Column(name="STATE")
private String state;
@Column(name="COUNTRY")
private String country;
@Column(name="CONTACT_NO")
private String contactNo;
@Column(name="CREATED_ON")
private Date createdOn;
@Column(name="MODIFIED_ON")
private Date modifiedOn;
@Column(name="DOJ")
private Date doj;
@Column(name="EMPLOYEE_STATUS")
@Enumerated(EnumType.STRING)
private UserStatus employeeStatus;
@Column(name="EMPLOYMENT_TYPE")
@Enumerated(EnumType.STRING)
private EmploymentType employmentType;
public String getEmployeeId() {
return employeeId;
}
public void setEmployeeId(String employeeId) {
this.employeeId = employeeId;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public int getAge() {
return age;
}
public void setAge(int age) {
this.age = age;
}
public SEX getSex() {
return sex;
}
public void setSex(SEX sex) {
this.sex = sex;
}
public String getUid() {
return uid;
}
public void setUid(String uid) {
this.uid = uid;
}
public String getEmailId() {
return emailId;
}
public void setEmailId(String emailId) {
this.emailId = emailId;
}
public String getStreetAddress() {
return streetAddress;
}
public void setStreetAddress(String streetAddress) {
this.streetAddress = streetAddress;
}
public String getCity() {
return city;
}
public void setCity(String city) {
this.city = city;
}
public String getState() {
return state;
}
public void setState(String state) {
this.state = state;
}
public String getCountry() {
return country;
}
public void setCountry(String country) {
this.country = country;
}
public String getContactNo() {
return contactNo;
}
public void setContactNo(String contactNo) {
this.contactNo = contactNo;
}
public Date getCreatedOn() {
return createdOn;
}
public void setCreatedOn(Date createdOn) {
this.createdOn = createdOn;
}
public Date getModifiedOn() {
return modifiedOn;
}
public void setModifiedOn(Date modifiedOn) {
this.modifiedOn = modifiedOn;
}
public Date getDoj() {
return doj;
}
public void setDoj(Date doj) {
this.doj = doj;
}
public EmploymentType getEmploymentType() {
return employmentType;
}
public void setEmploymentType(EmploymentType employmentType) {
this.employmentType = employmentType;
}
public UserStatus getEmployeeStatus() {
return employeeStatus;
}
public void setEmployeeStatus(UserStatus employeeStatus) {
this.employeeStatus = employeeStatus;
}
public String getLoginName() {
return loginName;
}
public void setLoginName(String loginName) {
this.loginName = loginName;
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
public Role getRole() {
return role;
}
public void setRole(Role role) {
this.role = role;
}
} | [
"s.mhadiwale@gmail.com"
] | s.mhadiwale@gmail.com |
2dffe7ca25020d8645f874878420cef5d00a4cee | 6cfd50297df13838c6494d37e84f9f0c1249da3e | /app/src/main/java/com/designurway/idlidosa/model/PaymentSucessfulModel.java | c1dfc45ae7ab68f10d85c2e16dc3dc7d4cf6b7a2 | [] | no_license | designurway/IdlyDosey | f782da2fc31981a85275f43676fc456100697292 | 0eea234cb163794be5ecb625768258864909b452 | refs/heads/master | 2023-03-17T14:07:58.816143 | 2021-03-15T06:43:53 | 2021-03-15T06:43:53 | 333,318,056 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 561 | java | package com.designurway.idlidosa.model;
public class PaymentSucessfulModel {
private String status;
private String message;
public PaymentSucessfulModel(String status, String message) {
this.status = status;
this.message = message;
}
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status;
}
public String getMessage() {
return message;
}
public void setMessage(String message) {
this.message = message;
}
}
| [
"designurwaycmn@gmail.com"
] | designurwaycmn@gmail.com |
3c1a83d4e36f608e7c5a7e38660bed3d44286ef6 | 36a3cafecdbc3652699efb54150e4c761e51569f | /app/src/main/java/com/bingyan/bytable/query/Callback.java | 85c01e308a5a2f4f63b4eca6551a2b6bb3f3f54d | [] | no_license | badcyc/BYTable | b5ade40029a30cc970541942e029bfe9598441b5 | 8d2ee6853f3b8bb447a538d53249601a6f41a368 | refs/heads/master | 2020-03-08T11:23:55.812636 | 2018-04-28T10:25:37 | 2018-04-28T10:25:37 | 128,096,249 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 511 | java | package com.bingyan.bytable.query;
import android.support.annotation.NonNull;
import retrofit.RetrofitError;
import retrofit.client.Response;
/**
* @author 王博煜
* @time 2015/8/2 0002
* @email bijiaoshenqi@qq.com
*/
public interface Callback {
void begin(@NonNull Who who);
void hubCourseNoError(@NonNull Who who, @NonNull HubBean bean, @NonNull Response response);
void canNotConnectToServer(@NonNull Who who, @NonNull RetrofitError error);
void finish(@NonNull Who who);
}
| [
"badcyc@bingyan.net"
] | badcyc@bingyan.net |
addeb7dc8474f4731cc24deead7320983cd488c1 | e1ff418774cc1dc0881afc228524a97f2b39392d | /src/main/java/com/johnny/bankworker/dto/BankDTO.java | 296f435ae52c76c948487390ed898d14b774876e | [] | no_license | bankworker/BankWorkerService | 36ddcbff4720958505f125f15345e1c407c0f803 | a3dd637b7ffa1c4f77dba89bf4f02fce986be5ba | refs/heads/master | 2020-06-23T20:59:45.061336 | 2019-10-26T14:48:24 | 2019-10-26T14:48:24 | 193,473,797 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 219 | java | package com.johnny.bankworker.dto;
import lombok.Data;
@Data
public class BankDTO extends BaseDTO {
private Integer bankID;
private String bankName;
private String bankCode;
private String bankLogo;
}
| [
"johnny.q.zhang@outlook.com"
] | johnny.q.zhang@outlook.com |
8862494c4c8dab528a2149af94a8ede961fd769f | 51d4b5d73c4b4329325a05b1f54ea7d068355852 | /src/test/java/com/epam/university/dao/unittest/CounterDaoImplTest.java | ffad2dbce023758775c97369b129210d886a24c1 | [] | no_license | ruslantkachuk/U_Theater | c3d275445bd3deb172e67c8a580dd527e6c31364 | 7e400f04d8e7b1aa0106bc9028a8201a18b8fb18 | refs/heads/master | 2021-01-20T02:29:19.950904 | 2017-03-03T19:56:01 | 2017-03-03T19:56:01 | 83,817,792 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,701 | java | package com.epam.university.dao.unittest;
import static org.hamcrest.CoreMatchers.*;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.mockito.BDDMockito.given;
import static org.mockito.Matchers.*;
import static org.mockito.Matchers.any;
import static org.mockito.Mockito.verify;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.InjectMocks;
import org.mockito.Mock;
import org.mockito.runners.MockitoJUnitRunner;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.jdbc.core.RowMapper;
import com.epam.university.dao.CounterDao;
import com.epam.university.dao.impl.CounterDaoImpl;
import com.epam.university.entity.Counter;
@RunWith(MockitoJUnitRunner.class)
public class CounterDaoImplTest {
private static final String COUNTER_MESSAGE = "Counters are not equals";
private static final String COUNTER_ID = "counterId";
private static final String COUNTER_EVENT_ID = "eventId";
private static final String COUNTER_EVENT_TYPE = "eventType";
private static final String COUNTER_EVENT_BY_NAME_ID = "eventByNameId";
private static final Integer COUNTER_EVENT_COUNT = 1;
@Mock
private JdbcTemplate jdbcTemplate;
@InjectMocks
private final CounterDao counterDao = new CounterDaoImpl();
@Test
public void shouldCreateCounter() {
// given
Counter counter = new Counter();
counter.setCounterId(COUNTER_ID);
counter.setEntityId(COUNTER_EVENT_ID);
counter.setEntityType(COUNTER_EVENT_TYPE);
counter.setEntityCount(COUNTER_EVENT_COUNT);
// when
counterDao.create(counter);
// then
verify(jdbcTemplate).update(anyString(), eq(COUNTER_ID), eq(COUNTER_EVENT_ID), eq(COUNTER_EVENT_TYPE),
eq(COUNTER_EVENT_COUNT));
}
@Test
public void shouldReturnCounterByIdAndEntityIdAndEntityType() {
// given
Counter counter = new Counter();
given(jdbcTemplate.queryForObject(anyString(), any(Object[].class), any(RowMapper.class))).willReturn(counter);
// when
Counter resultCounter = counterDao.getCounterByIdAndEntityIdAndEntityType(COUNTER_EVENT_BY_NAME_ID,
COUNTER_EVENT_ID, COUNTER_EVENT_TYPE);
// then
assertThat(COUNTER_MESSAGE, resultCounter, is(equalTo(counter)));
}
@Test
public void shouldNotReturnCounterByIdAndTypeEntity() {
// when
Counter resultCounter = counterDao.getCounterByIdAndEntityIdAndEntityType(COUNTER_EVENT_BY_NAME_ID,
COUNTER_EVENT_ID, COUNTER_EVENT_TYPE);
// then
assertThat(COUNTER_MESSAGE, resultCounter, nullValue());
}
} | [
"Ruslan_Tkachuk@epam.com"
] | Ruslan_Tkachuk@epam.com |
dd89c49c2539d6555d101bf4f75e8da7744a8704 | 9446c251205ea9df849785f7cba48ff21d7e1dcd | /iEat_test/app/build/generated/source/r/debug/android/support/constraint/R.java | fccfc875947e4ea67c621ac31ea99cb788056c0a | [] | no_license | Ather1995/ieat2017_background | a1cb4ca2fb5b115e74ba49d4175486c5a1e8d71e | 7a6059765ee47711349f44020d27181eedf9e03e | refs/heads/master | 2020-03-10T07:02:47.018717 | 2018-04-23T14:10:27 | 2018-04-23T14:10:27 | 129,253,593 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 15,252 | 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.constraint;
public final class R {
public static final class attr {
public static final int constraintSet = 0x7f020055;
public static final int layout_constraintBaseline_creator = 0x7f02008b;
public static final int layout_constraintBaseline_toBaselineOf = 0x7f02008c;
public static final int layout_constraintBottom_creator = 0x7f02008d;
public static final int layout_constraintBottom_toBottomOf = 0x7f02008e;
public static final int layout_constraintBottom_toTopOf = 0x7f02008f;
public static final int layout_constraintDimensionRatio = 0x7f020090;
public static final int layout_constraintEnd_toEndOf = 0x7f020091;
public static final int layout_constraintEnd_toStartOf = 0x7f020092;
public static final int layout_constraintGuide_begin = 0x7f020093;
public static final int layout_constraintGuide_end = 0x7f020094;
public static final int layout_constraintGuide_percent = 0x7f020095;
public static final int layout_constraintHeight_default = 0x7f020096;
public static final int layout_constraintHeight_max = 0x7f020097;
public static final int layout_constraintHeight_min = 0x7f020098;
public static final int layout_constraintHorizontal_bias = 0x7f020099;
public static final int layout_constraintHorizontal_chainStyle = 0x7f02009a;
public static final int layout_constraintHorizontal_weight = 0x7f02009b;
public static final int layout_constraintLeft_creator = 0x7f02009c;
public static final int layout_constraintLeft_toLeftOf = 0x7f02009d;
public static final int layout_constraintLeft_toRightOf = 0x7f02009e;
public static final int layout_constraintRight_creator = 0x7f02009f;
public static final int layout_constraintRight_toLeftOf = 0x7f0200a0;
public static final int layout_constraintRight_toRightOf = 0x7f0200a1;
public static final int layout_constraintStart_toEndOf = 0x7f0200a2;
public static final int layout_constraintStart_toStartOf = 0x7f0200a3;
public static final int layout_constraintTop_creator = 0x7f0200a4;
public static final int layout_constraintTop_toBottomOf = 0x7f0200a5;
public static final int layout_constraintTop_toTopOf = 0x7f0200a6;
public static final int layout_constraintVertical_bias = 0x7f0200a7;
public static final int layout_constraintVertical_chainStyle = 0x7f0200a8;
public static final int layout_constraintVertical_weight = 0x7f0200a9;
public static final int layout_constraintWidth_default = 0x7f0200aa;
public static final int layout_constraintWidth_max = 0x7f0200ab;
public static final int layout_constraintWidth_min = 0x7f0200ac;
public static final int layout_editor_absoluteX = 0x7f0200ad;
public static final int layout_editor_absoluteY = 0x7f0200ae;
public static final int layout_goneMarginBottom = 0x7f0200af;
public static final int layout_goneMarginEnd = 0x7f0200b0;
public static final int layout_goneMarginLeft = 0x7f0200b1;
public static final int layout_goneMarginRight = 0x7f0200b2;
public static final int layout_goneMarginStart = 0x7f0200b3;
public static final int layout_goneMarginTop = 0x7f0200b4;
public static final int layout_optimizationLevel = 0x7f0200b5;
}
public static final class id {
public static final int all = 0x7f07001c;
public static final int basic = 0x7f07001f;
public static final int chains = 0x7f070027;
public static final int none = 0x7f07004e;
public static final int packed = 0x7f070055;
public static final int parent = 0x7f070056;
public static final int spread = 0x7f070074;
public static final int spread_inside = 0x7f070075;
public static final int wrap = 0x7f070090;
}
public static final class styleable {
public static final int[] ConstraintLayout_Layout = { 0x010100c4, 0x0101011f, 0x01010120, 0x0101013f, 0x01010140, 0x7f020055, 0x7f02008b, 0x7f02008c, 0x7f02008d, 0x7f02008e, 0x7f02008f, 0x7f020090, 0x7f020091, 0x7f020092, 0x7f020093, 0x7f020094, 0x7f020095, 0x7f020096, 0x7f020097, 0x7f020098, 0x7f020099, 0x7f02009a, 0x7f02009b, 0x7f02009c, 0x7f02009d, 0x7f02009e, 0x7f02009f, 0x7f0200a0, 0x7f0200a1, 0x7f0200a2, 0x7f0200a3, 0x7f0200a4, 0x7f0200a5, 0x7f0200a6, 0x7f0200a7, 0x7f0200a8, 0x7f0200a9, 0x7f0200aa, 0x7f0200ab, 0x7f0200ac, 0x7f0200ad, 0x7f0200ae, 0x7f0200af, 0x7f0200b0, 0x7f0200b1, 0x7f0200b2, 0x7f0200b3, 0x7f0200b4, 0x7f0200b5 };
public static final int ConstraintLayout_Layout_android_orientation = 0;
public static final int ConstraintLayout_Layout_android_maxWidth = 1;
public static final int ConstraintLayout_Layout_android_maxHeight = 2;
public static final int ConstraintLayout_Layout_android_minWidth = 3;
public static final int ConstraintLayout_Layout_android_minHeight = 4;
public static final int ConstraintLayout_Layout_constraintSet = 5;
public static final int ConstraintLayout_Layout_layout_constraintBaseline_creator = 6;
public static final int ConstraintLayout_Layout_layout_constraintBaseline_toBaselineOf = 7;
public static final int ConstraintLayout_Layout_layout_constraintBottom_creator = 8;
public static final int ConstraintLayout_Layout_layout_constraintBottom_toBottomOf = 9;
public static final int ConstraintLayout_Layout_layout_constraintBottom_toTopOf = 10;
public static final int ConstraintLayout_Layout_layout_constraintDimensionRatio = 11;
public static final int ConstraintLayout_Layout_layout_constraintEnd_toEndOf = 12;
public static final int ConstraintLayout_Layout_layout_constraintEnd_toStartOf = 13;
public static final int ConstraintLayout_Layout_layout_constraintGuide_begin = 14;
public static final int ConstraintLayout_Layout_layout_constraintGuide_end = 15;
public static final int ConstraintLayout_Layout_layout_constraintGuide_percent = 16;
public static final int ConstraintLayout_Layout_layout_constraintHeight_default = 17;
public static final int ConstraintLayout_Layout_layout_constraintHeight_max = 18;
public static final int ConstraintLayout_Layout_layout_constraintHeight_min = 19;
public static final int ConstraintLayout_Layout_layout_constraintHorizontal_bias = 20;
public static final int ConstraintLayout_Layout_layout_constraintHorizontal_chainStyle = 21;
public static final int ConstraintLayout_Layout_layout_constraintHorizontal_weight = 22;
public static final int ConstraintLayout_Layout_layout_constraintLeft_creator = 23;
public static final int ConstraintLayout_Layout_layout_constraintLeft_toLeftOf = 24;
public static final int ConstraintLayout_Layout_layout_constraintLeft_toRightOf = 25;
public static final int ConstraintLayout_Layout_layout_constraintRight_creator = 26;
public static final int ConstraintLayout_Layout_layout_constraintRight_toLeftOf = 27;
public static final int ConstraintLayout_Layout_layout_constraintRight_toRightOf = 28;
public static final int ConstraintLayout_Layout_layout_constraintStart_toEndOf = 29;
public static final int ConstraintLayout_Layout_layout_constraintStart_toStartOf = 30;
public static final int ConstraintLayout_Layout_layout_constraintTop_creator = 31;
public static final int ConstraintLayout_Layout_layout_constraintTop_toBottomOf = 32;
public static final int ConstraintLayout_Layout_layout_constraintTop_toTopOf = 33;
public static final int ConstraintLayout_Layout_layout_constraintVertical_bias = 34;
public static final int ConstraintLayout_Layout_layout_constraintVertical_chainStyle = 35;
public static final int ConstraintLayout_Layout_layout_constraintVertical_weight = 36;
public static final int ConstraintLayout_Layout_layout_constraintWidth_default = 37;
public static final int ConstraintLayout_Layout_layout_constraintWidth_max = 38;
public static final int ConstraintLayout_Layout_layout_constraintWidth_min = 39;
public static final int ConstraintLayout_Layout_layout_editor_absoluteX = 40;
public static final int ConstraintLayout_Layout_layout_editor_absoluteY = 41;
public static final int ConstraintLayout_Layout_layout_goneMarginBottom = 42;
public static final int ConstraintLayout_Layout_layout_goneMarginEnd = 43;
public static final int ConstraintLayout_Layout_layout_goneMarginLeft = 44;
public static final int ConstraintLayout_Layout_layout_goneMarginRight = 45;
public static final int ConstraintLayout_Layout_layout_goneMarginStart = 46;
public static final int ConstraintLayout_Layout_layout_goneMarginTop = 47;
public static final int ConstraintLayout_Layout_layout_optimizationLevel = 48;
public static final int[] ConstraintSet = { 0x010100c4, 0x010100d0, 0x010100dc, 0x010100f4, 0x010100f5, 0x010100f7, 0x010100f8, 0x010100f9, 0x010100fa, 0x0101031f, 0x01010320, 0x01010321, 0x01010322, 0x01010323, 0x01010324, 0x01010325, 0x01010327, 0x01010328, 0x010103b5, 0x010103b6, 0x010103fa, 0x01010440, 0x7f02008b, 0x7f02008c, 0x7f02008d, 0x7f02008e, 0x7f02008f, 0x7f020090, 0x7f020091, 0x7f020092, 0x7f020093, 0x7f020094, 0x7f020095, 0x7f020096, 0x7f020097, 0x7f020098, 0x7f020099, 0x7f02009a, 0x7f02009b, 0x7f02009c, 0x7f02009d, 0x7f02009e, 0x7f02009f, 0x7f0200a0, 0x7f0200a1, 0x7f0200a2, 0x7f0200a3, 0x7f0200a4, 0x7f0200a5, 0x7f0200a6, 0x7f0200a7, 0x7f0200a8, 0x7f0200a9, 0x7f0200aa, 0x7f0200ab, 0x7f0200ac, 0x7f0200ad, 0x7f0200ae, 0x7f0200af, 0x7f0200b0, 0x7f0200b1, 0x7f0200b2, 0x7f0200b3, 0x7f0200b4 };
public static final int ConstraintSet_android_orientation = 0;
public static final int ConstraintSet_android_id = 1;
public static final int ConstraintSet_android_visibility = 2;
public static final int ConstraintSet_android_layout_width = 3;
public static final int ConstraintSet_android_layout_height = 4;
public static final int ConstraintSet_android_layout_marginLeft = 5;
public static final int ConstraintSet_android_layout_marginTop = 6;
public static final int ConstraintSet_android_layout_marginRight = 7;
public static final int ConstraintSet_android_layout_marginBottom = 8;
public static final int ConstraintSet_android_alpha = 9;
public static final int ConstraintSet_android_transformPivotX = 10;
public static final int ConstraintSet_android_transformPivotY = 11;
public static final int ConstraintSet_android_translationX = 12;
public static final int ConstraintSet_android_translationY = 13;
public static final int ConstraintSet_android_scaleX = 14;
public static final int ConstraintSet_android_scaleY = 15;
public static final int ConstraintSet_android_rotationX = 16;
public static final int ConstraintSet_android_rotationY = 17;
public static final int ConstraintSet_android_layout_marginStart = 18;
public static final int ConstraintSet_android_layout_marginEnd = 19;
public static final int ConstraintSet_android_translationZ = 20;
public static final int ConstraintSet_android_elevation = 21;
public static final int ConstraintSet_layout_constraintBaseline_creator = 22;
public static final int ConstraintSet_layout_constraintBaseline_toBaselineOf = 23;
public static final int ConstraintSet_layout_constraintBottom_creator = 24;
public static final int ConstraintSet_layout_constraintBottom_toBottomOf = 25;
public static final int ConstraintSet_layout_constraintBottom_toTopOf = 26;
public static final int ConstraintSet_layout_constraintDimensionRatio = 27;
public static final int ConstraintSet_layout_constraintEnd_toEndOf = 28;
public static final int ConstraintSet_layout_constraintEnd_toStartOf = 29;
public static final int ConstraintSet_layout_constraintGuide_begin = 30;
public static final int ConstraintSet_layout_constraintGuide_end = 31;
public static final int ConstraintSet_layout_constraintGuide_percent = 32;
public static final int ConstraintSet_layout_constraintHeight_default = 33;
public static final int ConstraintSet_layout_constraintHeight_max = 34;
public static final int ConstraintSet_layout_constraintHeight_min = 35;
public static final int ConstraintSet_layout_constraintHorizontal_bias = 36;
public static final int ConstraintSet_layout_constraintHorizontal_chainStyle = 37;
public static final int ConstraintSet_layout_constraintHorizontal_weight = 38;
public static final int ConstraintSet_layout_constraintLeft_creator = 39;
public static final int ConstraintSet_layout_constraintLeft_toLeftOf = 40;
public static final int ConstraintSet_layout_constraintLeft_toRightOf = 41;
public static final int ConstraintSet_layout_constraintRight_creator = 42;
public static final int ConstraintSet_layout_constraintRight_toLeftOf = 43;
public static final int ConstraintSet_layout_constraintRight_toRightOf = 44;
public static final int ConstraintSet_layout_constraintStart_toEndOf = 45;
public static final int ConstraintSet_layout_constraintStart_toStartOf = 46;
public static final int ConstraintSet_layout_constraintTop_creator = 47;
public static final int ConstraintSet_layout_constraintTop_toBottomOf = 48;
public static final int ConstraintSet_layout_constraintTop_toTopOf = 49;
public static final int ConstraintSet_layout_constraintVertical_bias = 50;
public static final int ConstraintSet_layout_constraintVertical_chainStyle = 51;
public static final int ConstraintSet_layout_constraintVertical_weight = 52;
public static final int ConstraintSet_layout_constraintWidth_default = 53;
public static final int ConstraintSet_layout_constraintWidth_max = 54;
public static final int ConstraintSet_layout_constraintWidth_min = 55;
public static final int ConstraintSet_layout_editor_absoluteX = 56;
public static final int ConstraintSet_layout_editor_absoluteY = 57;
public static final int ConstraintSet_layout_goneMarginBottom = 58;
public static final int ConstraintSet_layout_goneMarginEnd = 59;
public static final int ConstraintSet_layout_goneMarginLeft = 60;
public static final int ConstraintSet_layout_goneMarginRight = 61;
public static final int ConstraintSet_layout_goneMarginStart = 62;
public static final int ConstraintSet_layout_goneMarginTop = 63;
public static final int[] LinearConstraintLayout = { 0x010100c4 };
public static final int LinearConstraintLayout_android_orientation = 0;
}
}
| [
"hualiping@hualipingdeMacBook-Pro.local"
] | hualiping@hualipingdeMacBook-Pro.local |
c53a26b393adcfafc6cfee0d84d409f868fb9624 | 9b139114056961da8011a089fadbd1b35710db52 | /src/java/simuladorpeatonal/simulacion/dispersores/DispersorRastroDestino.java | 3bde1490d36ce880b73b7e05275e4ad87b1668fc | [] | no_license | JulioV/pedestrianSimulator | 4da5bdc4173f8d7d9fac0c40768ecbc0a669e882 | 5ec7396ac03ccc7191a78259e6d0ec95affafd49 | refs/heads/master | 2021-01-21T11:18:36.698222 | 2017-03-01T12:02:49 | 2017-03-01T12:02:49 | 83,549,761 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,612 | java | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package simuladorpeatonal.simulacion.dispersores;
import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;
import simuladorpeatonal.simulacion.Simulador;
import simuladorpeatonal.simulacion.celulas.Celula;
import simuladorpeatonal.simulacion.celulas.Portal;
/**
*
* @author Julio
*/
public class DispersorRastroDestino extends DispersorRastro implements Serializable {
private Map<Integer, Double> rastroDestino;
public DispersorRastroDestino() {
this.rastroDestino = new HashMap<>();
}
public void modificarRastroDesdeCelula(Celula celula, Portal destino, int rastroNuevo) {
Double rastroDireccionDestino = this.rastroDestino.get(destino.getIndice());
if (rastroDireccionDestino == null || rastroNuevo < rastroDireccionDestino) {
this.setRastroDeCelula(celula, destino, rastroNuevo);
for (int i = 0; i < Simulador.TOTAL_VECINOS; i++) {
if (celula.existeCelulaVecina(i)) {
celula.getCelulaVecina(i).dispersarRastroDestino(destino, rastroNuevo + (celula.getCelulaVecina(i).esPuerta() ? 2 : 1));
}
}
}
}
@Override
public double getRastroParaDestino(Portal destino) {
Double rastro = this.rastroDestino.get(destino.getIndice());
if (rastro == null) {
return 0;
}
return rastro.doubleValue();
}
@Override
public void setRastroDeCelula(Celula celula, Portal destino, double valorRastro) {
this.rastroDestino.put(destino.getIndice(), valorRastro);
}
@Override
public void dispersarRastroDesdeCelula(Celula celulaDispersion, Portal destino, int offsetDireccion) {
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
}
@Override
public void reunirRastroDesdeCelula(Celula celulaDispersion, Portal destino, int offsetDireccion) {
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
}
@Override
public void setRastro(Portal destino, double valorRastro) {
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
}
@Override
public void reiniciar() {
this.rastroDestino = new HashMap<>();
}
}
| [
"juliovhz@gmail.com"
] | juliovhz@gmail.com |
12a3b4734f8d9b2d80153f70df64a787f21f669e | 4428414f56fa8557ce9a008f744c7fb543d4684a | /Modul-6/Tugas/android/app/src/main/java/com/modul_6/MainApplication.java | be212638f71acabcc1a870d49db7940fb1259f9b | [] | no_license | codex191/Praktikumpemweb-mobileI | 7a7908b44e2ec9057359f8a94814c156ecba312c | 357a842dda6cf605e3add4f6b4be285a06ae4452 | refs/heads/main | 2023-05-06T21:45:07.561045 | 2021-05-25T13:19:25 | 2021-05-25T13:19:25 | 351,430,095 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,597 | java | package com.modul_6;
import android.app.Application;
import android.content.Context;
import com.facebook.react.PackageList;
import com.facebook.react.ReactApplication;
import com.facebook.react.ReactInstanceManager;
import com.facebook.react.ReactNativeHost;
import com.facebook.react.ReactPackage;
import com.facebook.soloader.SoLoader;
import java.lang.reflect.InvocationTargetException;
import java.util.List;
public class MainApplication extends Application implements ReactApplication {
private final ReactNativeHost mReactNativeHost =
new ReactNativeHost(this) {
@Override
public boolean getUseDeveloperSupport() {
return BuildConfig.DEBUG;
}
@Override
protected List<ReactPackage> getPackages() {
@SuppressWarnings("UnnecessaryLocalVariable")
List<ReactPackage> packages = new PackageList(this).getPackages();
// Packages that cannot be autolinked yet can be added manually here, for example:
// packages.add(new MyReactNativePackage());
return packages;
}
@Override
protected String getJSMainModuleName() {
return "index";
}
};
@Override
public ReactNativeHost getReactNativeHost() {
return mReactNativeHost;
}
@Override
public void onCreate() {
super.onCreate();
SoLoader.init(this, /* native exopackage */ false);
initializeFlipper(this, getReactNativeHost().getReactInstanceManager());
}
/**
* Loads Flipper in React Native templates. Call this in the onCreate method with something like
* initializeFlipper(this, getReactNativeHost().getReactInstanceManager());
*
* @param context
* @param reactInstanceManager
*/
private static void initializeFlipper(
Context context, ReactInstanceManager reactInstanceManager) {
if (BuildConfig.DEBUG) {
try {
/*
We use reflection here to pick up the class that initializes Flipper,
since Flipper library is not available in release mode
*/
Class<?> aClass = Class.forName("com.modul_6.ReactNativeFlipper");
aClass
.getMethod("initializeFlipper", Context.class, ReactInstanceManager.class)
.invoke(null, context, reactInstanceManager);
} catch (ClassNotFoundException e) {
e.printStackTrace();
} catch (NoSuchMethodException e) {
e.printStackTrace();
} catch (IllegalAccessException e) {
e.printStackTrace();
} catch (InvocationTargetException e) {
e.printStackTrace();
}
}
}
}
| [
"agustianbrian25@gmail.com"
] | agustianbrian25@gmail.com |
882776a0d425f236959ab5b0cf7a9320eac4f607 | 14d5808bf7a36a316d014af9497594fa42ca93c1 | /patient/src/main/java/com/shkjs/patient/data/em/RolesEm.java | 4294ecf414bd4964ec565a2e8adc0500a220a022 | [] | no_license | Soon-gz/MySecondDemo | 3baa004b58043034d64c817bf49c071f17cb7687 | 36546731f4aef99ae29a26611277f4ce11361e2c | refs/heads/master | 2023-02-21T11:28:32.261133 | 2017-01-24T02:28:30 | 2017-01-24T02:28:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 248 | java | package com.shkjs.patient.data.em;
public enum RolesEm {
USER(1L), DOCTOR(2L), ADMIN(99L), UNKNOW(0L);
private Long mark;
RolesEm(Long mark) {
this.mark = mark;
}
public Long getMark() {
return mark;
}
}
| [
"sw201202@126.com"
] | sw201202@126.com |
8f429bbb88b8e2bdcf2cc319d0848b6941436108 | c2e651218b380ecddf858dd9f2fec46f6f1d38e1 | /demo/src/main/java/com/example/demo/repository/ProductRepository.java | 7394716e5b66ff1995aa6adb0e0eaaab2ce91dfa | [] | no_license | JoacimStahl96/inlupp2 | 029751b4689f138510ea5a494fc7d5e3b4483b65 | 9c05bcafd5ba78eddab286f5723b70691e4d6b04 | refs/heads/master | 2023-04-10T04:37:12.148029 | 2021-04-09T13:58:55 | 2021-04-09T13:58:55 | 354,883,738 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 389 | java | package com.example.demo.repository;
import com.example.demo.repository.entity.ProductEntity;
import org.springframework.data.repository.CrudRepository;
import java.util.List;
import java.util.Optional;
public interface ProductRepository extends CrudRepository<ProductEntity, Long> {
Optional<ProductEntity> findByProductId(String productId);
List<ProductEntity> findAll();
}
| [
"69908677+JoacimStahl96@users.noreply.github.com"
] | 69908677+JoacimStahl96@users.noreply.github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.