Java 类org.apache.commons.collections4.queue.CircularFifoQueue 实例源码

项目:BittrexGatherer    文件:BittrexPriceVerticle.java   
public BittrexPriceVerticle(OrderFillService service){
    super();
    service = service;
    indicators = new IndicatorDTO();
    cachedTicks = new CircularFifoQueue<MarketTick>(20);
    SimpleMovingAverage ma_1 = new SimpleMovingAverage(20, "ma_1");
    BollingerBands bb_1 = new BollingerBands(ma_1, 2);
    VolumeWeightedMovingAverage vwma_1 = new VolumeWeightedMovingAverage(20, "vwma_1");
    RSI rsi_1 = new RSI(14, "rsi_1");
    currentTick = new MarketTick();

    indicators.setBb(bb_1);
    indicators.setRsi(rsi_1);
    indicators.setSma(ma_1);
    indicators.setVwma(vwma_1);
    timerInterval = 5*60*1000;

}
项目:stallion-core    文件:HealthTracker.java   
public void incrementQueue(CircularFifoQueue<MinuteInfo> queue) {
    ZonedDateTime now = MinuteInfo.getCurrentMinute();
    MinuteInfo minuteInfo = null;
    if (!queue.isEmpty()) {
        minuteInfo = queue.get(queue.size()-1);
        //minuteInfo = queue.get(0);
        //Log.info("first: {0}", queue.get(0).getMinute());
        //Log.info("last:  {0}", queue.get(queue.size() -1).getMinute());
        //Log.info("now:   {0}", now);
        if (!minuteInfo.getMinute().equals(now)) {
            //Log.info("Minutes do not matched, prepare for new minute");
            minuteInfo = null;
        }
    }
    if (minuteInfo == null) {
        minuteInfo = new MinuteInfo();
        minuteInfo.setMinute(now);
        queue.add(minuteInfo);
    }
    //Log.info("Increment minute {0} {1}", minuteInfo.getMinute().toString(), minuteInfo.getCount().get());
    minuteInfo.getCount().incrementAndGet();
}
项目:panopticon    文件:SuccessrateSensor.java   
@Override
public List<Measurement> measure() {
    return eventQueues.entrySet().stream()
            .map((Map.Entry<String, CircularFifoQueue<Event>> e) -> {
                List<Event> events = e.getValue().stream().collect(toList());
                int all = events.size();
                long success = events.stream().filter(a -> a == Event.SUCCESS).count();
                long failure = events.stream().filter(a -> a == Event.FAILURE).count();
                double percentFailureDouble = all > 0 ? (double) failure / (double) all : 0;
                boolean enoughDataToAlert = all == numberToKeep;
                String display = String.format("Last %s calls: %s success, %s failure (%.2f%% failure)%s",
                        Integer.min(all, numberToKeep),
                        success,
                        all-success,
                        percentFailureDouble * 100,
                        enoughDataToAlert ? "" : " - not enough calls to report status yet"
                );
                return new Measurement(e.getKey(), getStatusFromPercentage(enoughDataToAlert, percentFailureDouble), display, new Measurement.CloudwatchValue(percentFailureDouble * 100, StandardUnit.Percent));
            })
            .collect(toList());
}
项目:jfastnet    文件:AbstractTest.java   
public Message getLastReceivedMessageFromLog(CircularFifoQueue<Message> received, boolean ignoreSystemMessages, Class type) {
    if (received.size() == 0) {
        return null;
    }
    for (int i = received.size() - 1; i >= 0; i--) {
        Message message = received.get(i);
        if (type != null) {
            if (!type.isAssignableFrom(message.getClass())) {
                continue;
            }
        } else if (ignoreSystemMessages) {
            if (message instanceof SequenceKeepAlive) continue;
            if (message instanceof AckMessage) continue;
            if (message instanceof ConnectResponse) continue;
            if (message instanceof RequestSeqIdsMessage) continue;
            if (message instanceof StackedMessage) continue;
        }
        return message;
    }
    // If all are system messages, return the last
    return received.get(received.size() - 1);
}
项目:jfastnet    文件:AbstractTest.java   
public List<Message> getLastReceivedMessagesFromLog(Class type) {
    List<Message> messages = new ArrayList<>();
    CircularFifoQueue<Message> received = server.getState().getProcessorOf(MessageLogProcessor.class).getMessageLog().getReceived();
    if (received.size() == 0) {
        return null;
    }
    for (int i = received.size() - 1; i >= 0; i--) {
        Message message = received.get(i);
        if (type != null) {
            if (type.isAssignableFrom(message.getClass())) {
                messages.add(message);
            }
        }
    }
    return messages;
}
项目:Blaubot    文件:BeaconView.java   
private void initView(Context context, AttributeSet attrs) {
    this.mContext = context;
    if (attrs != null) {
        TypedArray a = context.getTheme().obtainStyledAttributes(
                attrs,
                R.styleable.LifeCycleView,
                0, 0);
        try {
            mMaxEvents = a.getInt(R.styleable.BeaconView_maxEvents, mMaxEvents);
        } finally {
            a.recycle();
        }
    }
    this.lastEvents = new CircularFifoQueue<>();
    mUiHandler = new Handler(Looper.getMainLooper());
}
项目:sosiefier    文件:CollectionUtilsTest.java   
@Test(timeout = 1000)
public void isFull_add2266() {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "isFull_add2266");
    final Set<java.lang.String> set = new HashSet<java.lang.String>();
    set.add("1");
    set.add("1");
    set.add("2");
    set.add("3");
    try {
        org.apache.commons.collections4.CollectionUtils.isFull(null);
    } catch (final NullPointerException ex) {
    }
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6924,null,6923,org.apache.commons.collections4.CollectionUtils.isFull(set));
    final CircularFifoQueue<java.lang.String> buf = new CircularFifoQueue<java.lang.String>(set);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6926,null,6925,org.apache.commons.collections4.CollectionUtils.isFull(buf));
    buf.remove("2");
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6928,null,6927,org.apache.commons.collections4.CollectionUtils.isFull(buf));
    buf.add("2");
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6930,null,6929,org.apache.commons.collections4.CollectionUtils.isFull(buf));
    fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
项目:sosiefier    文件:CollectionUtilsTest.java   
@Test(timeout = 1000)
public void isFull_add2267() {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "isFull_add2267");
    final Set<java.lang.String> set = new HashSet<java.lang.String>();
    set.add("1");
    set.add("2");
    set.add("2");
    set.add("3");
    try {
        org.apache.commons.collections4.CollectionUtils.isFull(null);
    } catch (final NullPointerException ex) {
    }
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6924,null,6923,org.apache.commons.collections4.CollectionUtils.isFull(set));
    final CircularFifoQueue<java.lang.String> buf = new CircularFifoQueue<java.lang.String>(set);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6926,null,6925,org.apache.commons.collections4.CollectionUtils.isFull(buf));
    buf.remove("2");
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6928,null,6927,org.apache.commons.collections4.CollectionUtils.isFull(buf));
    buf.add("2");
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6930,null,6929,org.apache.commons.collections4.CollectionUtils.isFull(buf));
    fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
项目:sosiefier    文件:CollectionUtilsTest.java   
@Test(timeout = 1000)
public void isFull_add2268() {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "isFull_add2268");
    final Set<java.lang.String> set = new HashSet<java.lang.String>();
    set.add("1");
    set.add("2");
    set.add("3");
    set.add("3");
    try {
        org.apache.commons.collections4.CollectionUtils.isFull(null);
    } catch (final NullPointerException ex) {
    }
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6924,null,6923,org.apache.commons.collections4.CollectionUtils.isFull(set));
    final CircularFifoQueue<java.lang.String> buf = new CircularFifoQueue<java.lang.String>(set);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6926,null,6925,org.apache.commons.collections4.CollectionUtils.isFull(buf));
    buf.remove("2");
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6928,null,6927,org.apache.commons.collections4.CollectionUtils.isFull(buf));
    buf.add("2");
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6930,null,6929,org.apache.commons.collections4.CollectionUtils.isFull(buf));
    fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
项目:sosiefier    文件:CollectionUtilsTest.java   
@Test(timeout = 1000)
public void isFull_add2269() {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "isFull_add2269");
    final Set<java.lang.String> set = new HashSet<java.lang.String>();
    set.add("1");
    set.add("2");
    set.add("3");
    try {
        org.apache.commons.collections4.CollectionUtils.isFull(null);
        org.apache.commons.collections4.CollectionUtils.isFull(null);
    } catch (final NullPointerException ex) {
    }
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6924,null,6923,org.apache.commons.collections4.CollectionUtils.isFull(set));
    final CircularFifoQueue<java.lang.String> buf = new CircularFifoQueue<java.lang.String>(set);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6926,null,6925,org.apache.commons.collections4.CollectionUtils.isFull(buf));
    buf.remove("2");
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6928,null,6927,org.apache.commons.collections4.CollectionUtils.isFull(buf));
    buf.add("2");
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6930,null,6929,org.apache.commons.collections4.CollectionUtils.isFull(buf));
    fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
项目:sosiefier    文件:CollectionUtilsTest.java   
@Test(timeout = 1000)
public void isFull_add2270() {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "isFull_add2270");
    final Set<java.lang.String> set = new HashSet<java.lang.String>();
    set.add("1");
    set.add("2");
    set.add("3");
    try {
        org.apache.commons.collections4.CollectionUtils.isFull(null);
    } catch (final NullPointerException ex) {
    }
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6924,null,6923,org.apache.commons.collections4.CollectionUtils.isFull(set));
    final CircularFifoQueue<java.lang.String> buf = new CircularFifoQueue<java.lang.String>(set);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6926,null,6925,org.apache.commons.collections4.CollectionUtils.isFull(buf));
    buf.remove("2");
    buf.remove("2");
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6928,null,6927,org.apache.commons.collections4.CollectionUtils.isFull(buf));
    buf.add("2");
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6930,null,6929,org.apache.commons.collections4.CollectionUtils.isFull(buf));
    fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
项目:sosiefier    文件:CollectionUtilsTest.java   
@Test(timeout = 1000)
public void isFull_add2271() {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "isFull_add2271");
    final Set<java.lang.String> set = new HashSet<java.lang.String>();
    set.add("1");
    set.add("2");
    set.add("3");
    try {
        org.apache.commons.collections4.CollectionUtils.isFull(null);
    } catch (final NullPointerException ex) {
    }
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6924,null,6923,org.apache.commons.collections4.CollectionUtils.isFull(set));
    final CircularFifoQueue<java.lang.String> buf = new CircularFifoQueue<java.lang.String>(set);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6926,null,6925,org.apache.commons.collections4.CollectionUtils.isFull(buf));
    buf.remove("2");
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6928,null,6927,org.apache.commons.collections4.CollectionUtils.isFull(buf));
    buf.add("2");
    buf.add("2");
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6930,null,6929,org.apache.commons.collections4.CollectionUtils.isFull(buf));
    fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
项目:sosiefier    文件:CollectionUtilsTest.java   
@Test
public void isFull() {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "isFull");
    final Set<java.lang.String> set = new HashSet<java.lang.String>();
    set.add("foo");
    set.add("2");
    set.add("3");
    try {
        org.apache.commons.collections4.CollectionUtils.isFull(null);
    } catch (final NullPointerException ex) {
    }
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6924,null,6923,org.apache.commons.collections4.CollectionUtils.isFull(set));
    final CircularFifoQueue<java.lang.String> buf = new CircularFifoQueue<java.lang.String>(set);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6926,null,6925,org.apache.commons.collections4.CollectionUtils.isFull(buf));
    buf.remove("2");
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6928,null,6927,org.apache.commons.collections4.CollectionUtils.isFull(buf));
    buf.add("2");
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6930,null,6929,org.apache.commons.collections4.CollectionUtils.isFull(buf));
    fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
项目:sosiefier    文件:CollectionUtilsTest.java   
@Test
public void isFull_literalMutation2214() {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "isFull_literalMutation2214");
    final Set<java.lang.String> set = new HashSet<java.lang.String>();
    set.add("1");
    set.add("foo");
    set.add("3");
    try {
        org.apache.commons.collections4.CollectionUtils.isFull(null);
    } catch (final NullPointerException ex) {
    }
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6924,null,6923,org.apache.commons.collections4.CollectionUtils.isFull(set));
    final CircularFifoQueue<java.lang.String> buf = new CircularFifoQueue<java.lang.String>(set);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6926,null,6925,org.apache.commons.collections4.CollectionUtils.isFull(buf));
    buf.remove("2");
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6928,null,6927,org.apache.commons.collections4.CollectionUtils.isFull(buf));
    buf.add("2");
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6930,null,6929,org.apache.commons.collections4.CollectionUtils.isFull(buf));
    fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
项目:sosiefier    文件:CollectionUtilsTest.java   
@Test
public void isFull_literalMutation2215() {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "isFull_literalMutation2215");
    final Set<java.lang.String> set = new HashSet<java.lang.String>();
    set.add("1");
    set.add("2");
    set.add("foo");
    try {
        org.apache.commons.collections4.CollectionUtils.isFull(null);
    } catch (final NullPointerException ex) {
    }
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6924,null,6923,org.apache.commons.collections4.CollectionUtils.isFull(set));
    final CircularFifoQueue<java.lang.String> buf = new CircularFifoQueue<java.lang.String>(set);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6926,null,6925,org.apache.commons.collections4.CollectionUtils.isFull(buf));
    buf.remove("2");
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6928,null,6927,org.apache.commons.collections4.CollectionUtils.isFull(buf));
    buf.add("2");
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6930,null,6929,org.apache.commons.collections4.CollectionUtils.isFull(buf));
    fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
项目:sosiefier    文件:CollectionUtilsTest.java   
@Test
public void isFull_literalMutation2217() {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "isFull_literalMutation2217");
    final Set<java.lang.String> set = new HashSet<java.lang.String>();
    set.add("1");
    set.add("2");
    set.add("3");
    try {
        org.apache.commons.collections4.CollectionUtils.isFull(null);
    } catch (final NullPointerException ex) {
    }
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6924,null,6923,org.apache.commons.collections4.CollectionUtils.isFull(set));
    final CircularFifoQueue<java.lang.String> buf = new CircularFifoQueue<java.lang.String>(set);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6926,null,6925,org.apache.commons.collections4.CollectionUtils.isFull(buf));
    buf.remove("foo");
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6928,null,6927,org.apache.commons.collections4.CollectionUtils.isFull(buf));
    buf.add("2");
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6930,null,6929,org.apache.commons.collections4.CollectionUtils.isFull(buf));
    fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
项目:sosiefier    文件:CollectionUtilsTest.java   
@Test
public void isFull_literalMutation2218() {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "isFull_literalMutation2218");
    final Set<java.lang.String> set = new HashSet<java.lang.String>();
    set.add("1");
    set.add("2");
    set.add("3");
    try {
        org.apache.commons.collections4.CollectionUtils.isFull(null);
    } catch (final NullPointerException ex) {
    }
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6924,null,6923,org.apache.commons.collections4.CollectionUtils.isFull(set));
    final CircularFifoQueue<java.lang.String> buf = new CircularFifoQueue<java.lang.String>(set);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6926,null,6925,org.apache.commons.collections4.CollectionUtils.isFull(buf));
    buf.remove("2");
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6928,null,6927,org.apache.commons.collections4.CollectionUtils.isFull(buf));
    buf.add("foo");
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6930,null,6929,org.apache.commons.collections4.CollectionUtils.isFull(buf));
    fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
项目:sosiefier    文件:CollectionUtilsTest.java   
@Test(timeout = 1000)
public void isFull_remove1780() {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "isFull_remove1780");
    final Set<java.lang.String> set = new HashSet<java.lang.String>();
    set.add("2");
    set.add("3");
    try {
        org.apache.commons.collections4.CollectionUtils.isFull(null);
    } catch (final NullPointerException ex) {
    }
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6924,null,6923,org.apache.commons.collections4.CollectionUtils.isFull(set));
    final CircularFifoQueue<java.lang.String> buf = new CircularFifoQueue<java.lang.String>(set);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6926,null,6925,org.apache.commons.collections4.CollectionUtils.isFull(buf));
    buf.remove("2");
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6928,null,6927,org.apache.commons.collections4.CollectionUtils.isFull(buf));
    buf.add("2");
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6930,null,6929,org.apache.commons.collections4.CollectionUtils.isFull(buf));
    fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
项目:sosiefier    文件:CollectionUtilsTest.java   
@Test(timeout = 1000)
public void isFull_remove1781() {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "isFull_remove1781");
    final Set<java.lang.String> set = new HashSet<java.lang.String>();
    set.add("2");
    set.add("3");
    try {
        org.apache.commons.collections4.CollectionUtils.isFull(null);
    } catch (final NullPointerException ex) {
    }
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6924,null,6923,org.apache.commons.collections4.CollectionUtils.isFull(set));
    final CircularFifoQueue<java.lang.String> buf = new CircularFifoQueue<java.lang.String>(set);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6926,null,6925,org.apache.commons.collections4.CollectionUtils.isFull(buf));
    buf.remove("2");
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6928,null,6927,org.apache.commons.collections4.CollectionUtils.isFull(buf));
    buf.add("2");
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6930,null,6929,org.apache.commons.collections4.CollectionUtils.isFull(buf));
    fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
项目:sosiefier    文件:CollectionUtilsTest.java   
@Test(timeout = 1000)
public void isFull_remove1782() {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "isFull_remove1782");
    final Set<java.lang.String> set = new HashSet<java.lang.String>();
    set.add("2");
    set.add("3");
    try {
        org.apache.commons.collections4.CollectionUtils.isFull(null);
    } catch (final NullPointerException ex) {
    }
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6924,null,6923,org.apache.commons.collections4.CollectionUtils.isFull(set));
    final CircularFifoQueue<java.lang.String> buf = new CircularFifoQueue<java.lang.String>(set);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6926,null,6925,org.apache.commons.collections4.CollectionUtils.isFull(buf));
    buf.remove("2");
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6928,null,6927,org.apache.commons.collections4.CollectionUtils.isFull(buf));
    buf.add("2");
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6930,null,6929,org.apache.commons.collections4.CollectionUtils.isFull(buf));
    fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
项目:sosiefier    文件:CollectionUtilsTest.java   
@Test(timeout = 1000)
public void isFull_remove1783() {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "isFull_remove1783");
    final Set<java.lang.String> set = new HashSet<java.lang.String>();
    set.add("1");
    set.add("2");
    set.add("3");
    try {
        org.apache.commons.collections4.CollectionUtils.isFull(null);
    } catch (final NullPointerException ex) {
    }
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6924,null,6923,org.apache.commons.collections4.CollectionUtils.isFull(set));
    final CircularFifoQueue<java.lang.String> buf = new CircularFifoQueue<java.lang.String>(set);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6926,null,6925,org.apache.commons.collections4.CollectionUtils.isFull(buf));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6928,null,6927,org.apache.commons.collections4.CollectionUtils.isFull(buf));
    buf.add("2");
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6930,null,6929,org.apache.commons.collections4.CollectionUtils.isFull(buf));
    fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
项目:sosiefier    文件:CollectionUtilsTest.java   
@Test(timeout = 1000)
public void isFull_remove1784() {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "isFull_remove1784");
    final Set<java.lang.String> set = new HashSet<java.lang.String>();
    set.add("1");
    set.add("2");
    set.add("3");
    try {
        org.apache.commons.collections4.CollectionUtils.isFull(null);
    } catch (final NullPointerException ex) {
    }
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6924,null,6923,org.apache.commons.collections4.CollectionUtils.isFull(set));
    final CircularFifoQueue<java.lang.String> buf = new CircularFifoQueue<java.lang.String>(set);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6926,null,6925,org.apache.commons.collections4.CollectionUtils.isFull(buf));
    buf.remove("2");
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6928,null,6927,org.apache.commons.collections4.CollectionUtils.isFull(buf));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6930,null,6929,org.apache.commons.collections4.CollectionUtils.isFull(buf));
    fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
项目:sosiefier    文件:CollectionUtilsTest.java   
@Test(timeout = 1000)
public void maxSize_add2272() {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "maxSize_add2272");
    final Set<java.lang.String> set = new HashSet<java.lang.String>();
    set.add("1");
    set.add("1");
    set.add("2");
    set.add("3");
    try {
        org.apache.commons.collections4.CollectionUtils.maxSize(null);
    } catch (final NullPointerException ex) {
    }
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6931,-1);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6933,null,6932,org.apache.commons.collections4.CollectionUtils.maxSize(set));
    final Queue<java.lang.String> buf = new CircularFifoQueue<java.lang.String>(set);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6935,null,6934,org.apache.commons.collections4.CollectionUtils.maxSize(buf));
    buf.remove("2");
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6937,null,6936,org.apache.commons.collections4.CollectionUtils.maxSize(buf));
    buf.add("2");
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6939,null,6938,org.apache.commons.collections4.CollectionUtils.maxSize(buf));
    fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
项目:sosiefier    文件:CollectionUtilsTest.java   
@Test(timeout = 1000)
public void maxSize_add2273() {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "maxSize_add2273");
    final Set<java.lang.String> set = new HashSet<java.lang.String>();
    set.add("1");
    set.add("2");
    set.add("2");
    set.add("3");
    try {
        org.apache.commons.collections4.CollectionUtils.maxSize(null);
    } catch (final NullPointerException ex) {
    }
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6931,-1);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6933,null,6932,org.apache.commons.collections4.CollectionUtils.maxSize(set));
    final Queue<java.lang.String> buf = new CircularFifoQueue<java.lang.String>(set);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6935,null,6934,org.apache.commons.collections4.CollectionUtils.maxSize(buf));
    buf.remove("2");
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6937,null,6936,org.apache.commons.collections4.CollectionUtils.maxSize(buf));
    buf.add("2");
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6939,null,6938,org.apache.commons.collections4.CollectionUtils.maxSize(buf));
    fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
项目:sosiefier    文件:CollectionUtilsTest.java   
@Test(timeout = 1000)
public void maxSize_add2274() {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "maxSize_add2274");
    final Set<java.lang.String> set = new HashSet<java.lang.String>();
    set.add("1");
    set.add("2");
    set.add("3");
    set.add("3");
    try {
        org.apache.commons.collections4.CollectionUtils.maxSize(null);
    } catch (final NullPointerException ex) {
    }
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6931,-1);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6933,null,6932,org.apache.commons.collections4.CollectionUtils.maxSize(set));
    final Queue<java.lang.String> buf = new CircularFifoQueue<java.lang.String>(set);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6935,null,6934,org.apache.commons.collections4.CollectionUtils.maxSize(buf));
    buf.remove("2");
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6937,null,6936,org.apache.commons.collections4.CollectionUtils.maxSize(buf));
    buf.add("2");
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6939,null,6938,org.apache.commons.collections4.CollectionUtils.maxSize(buf));
    fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
项目:sosiefier    文件:CollectionUtilsTest.java   
@Test(timeout = 1000)
public void maxSize_add2275() {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "maxSize_add2275");
    final Set<java.lang.String> set = new HashSet<java.lang.String>();
    set.add("1");
    set.add("2");
    set.add("3");
    try {
        org.apache.commons.collections4.CollectionUtils.maxSize(null);
        org.apache.commons.collections4.CollectionUtils.maxSize(null);
    } catch (final NullPointerException ex) {
    }
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6931,-1);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6933,null,6932,org.apache.commons.collections4.CollectionUtils.maxSize(set));
    final Queue<java.lang.String> buf = new CircularFifoQueue<java.lang.String>(set);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6935,null,6934,org.apache.commons.collections4.CollectionUtils.maxSize(buf));
    buf.remove("2");
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6937,null,6936,org.apache.commons.collections4.CollectionUtils.maxSize(buf));
    buf.add("2");
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6939,null,6938,org.apache.commons.collections4.CollectionUtils.maxSize(buf));
    fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
项目:sosiefier    文件:CollectionUtilsTest.java   
@Test(timeout = 1000)
public void maxSize_add2276() {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "maxSize_add2276");
    final Set<java.lang.String> set = new HashSet<java.lang.String>();
    set.add("1");
    set.add("2");
    set.add("3");
    try {
        org.apache.commons.collections4.CollectionUtils.maxSize(null);
    } catch (final NullPointerException ex) {
    }
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6931,-1);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6933,null,6932,org.apache.commons.collections4.CollectionUtils.maxSize(set));
    final Queue<java.lang.String> buf = new CircularFifoQueue<java.lang.String>(set);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6935,null,6934,org.apache.commons.collections4.CollectionUtils.maxSize(buf));
    buf.remove("2");
    buf.remove("2");
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6937,null,6936,org.apache.commons.collections4.CollectionUtils.maxSize(buf));
    buf.add("2");
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6939,null,6938,org.apache.commons.collections4.CollectionUtils.maxSize(buf));
    fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
项目:sosiefier    文件:CollectionUtilsTest.java   
@Test(timeout = 1000)
public void maxSize_add2277() {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "maxSize_add2277");
    final Set<java.lang.String> set = new HashSet<java.lang.String>();
    set.add("1");
    set.add("2");
    set.add("3");
    try {
        org.apache.commons.collections4.CollectionUtils.maxSize(null);
    } catch (final NullPointerException ex) {
    }
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6931,-1);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6933,null,6932,org.apache.commons.collections4.CollectionUtils.maxSize(set));
    final Queue<java.lang.String> buf = new CircularFifoQueue<java.lang.String>(set);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6935,null,6934,org.apache.commons.collections4.CollectionUtils.maxSize(buf));
    buf.remove("2");
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6937,null,6936,org.apache.commons.collections4.CollectionUtils.maxSize(buf));
    buf.add("2");
    buf.add("2");
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6939,null,6938,org.apache.commons.collections4.CollectionUtils.maxSize(buf));
    fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
项目:sosiefier    文件:CollectionUtilsTest.java   
@Test
public void maxSize() {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "maxSize");
    final Set<java.lang.String> set = new HashSet<java.lang.String>();
    set.add("foo");
    set.add("2");
    set.add("3");
    try {
        org.apache.commons.collections4.CollectionUtils.maxSize(null);
    } catch (final NullPointerException ex) {
    }
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6931,-1);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6933,null,6932,org.apache.commons.collections4.CollectionUtils.maxSize(set));
    final Queue<java.lang.String> buf = new CircularFifoQueue<java.lang.String>(set);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6935,null,6934,org.apache.commons.collections4.CollectionUtils.maxSize(buf));
    buf.remove("2");
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6937,null,6936,org.apache.commons.collections4.CollectionUtils.maxSize(buf));
    buf.add("2");
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6939,null,6938,org.apache.commons.collections4.CollectionUtils.maxSize(buf));
    fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
项目:sosiefier    文件:CollectionUtilsTest.java   
@Test
public void maxSize_literalMutation2220() {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "maxSize_literalMutation2220");
    final Set<java.lang.String> set = new HashSet<java.lang.String>();
    set.add("1");
    set.add("foo");
    set.add("3");
    try {
        org.apache.commons.collections4.CollectionUtils.maxSize(null);
    } catch (final NullPointerException ex) {
    }
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6931,-1);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6933,null,6932,org.apache.commons.collections4.CollectionUtils.maxSize(set));
    final Queue<java.lang.String> buf = new CircularFifoQueue<java.lang.String>(set);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6935,null,6934,org.apache.commons.collections4.CollectionUtils.maxSize(buf));
    buf.remove("2");
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6937,null,6936,org.apache.commons.collections4.CollectionUtils.maxSize(buf));
    buf.add("2");
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6939,null,6938,org.apache.commons.collections4.CollectionUtils.maxSize(buf));
    fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
项目:sosiefier    文件:CollectionUtilsTest.java   
@Test
public void maxSize_literalMutation2221() {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "maxSize_literalMutation2221");
    final Set<java.lang.String> set = new HashSet<java.lang.String>();
    set.add("1");
    set.add("2");
    set.add("foo");
    try {
        org.apache.commons.collections4.CollectionUtils.maxSize(null);
    } catch (final NullPointerException ex) {
    }
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6931,-1);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6933,null,6932,org.apache.commons.collections4.CollectionUtils.maxSize(set));
    final Queue<java.lang.String> buf = new CircularFifoQueue<java.lang.String>(set);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6935,null,6934,org.apache.commons.collections4.CollectionUtils.maxSize(buf));
    buf.remove("2");
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6937,null,6936,org.apache.commons.collections4.CollectionUtils.maxSize(buf));
    buf.add("2");
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6939,null,6938,org.apache.commons.collections4.CollectionUtils.maxSize(buf));
    fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
项目:sosiefier    文件:CollectionUtilsTest.java   
@Test
public void maxSize_literalMutation2223() {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "maxSize_literalMutation2223");
    final Set<java.lang.String> set = new HashSet<java.lang.String>();
    set.add("1");
    set.add("2");
    set.add("3");
    try {
        org.apache.commons.collections4.CollectionUtils.maxSize(null);
    } catch (final NullPointerException ex) {
    }
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6931,-1);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6933,null,6932,org.apache.commons.collections4.CollectionUtils.maxSize(set));
    final Queue<java.lang.String> buf = new CircularFifoQueue<java.lang.String>(set);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6935,null,6934,org.apache.commons.collections4.CollectionUtils.maxSize(buf));
    buf.remove("foo");
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6937,null,6936,org.apache.commons.collections4.CollectionUtils.maxSize(buf));
    buf.add("2");
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6939,null,6938,org.apache.commons.collections4.CollectionUtils.maxSize(buf));
    fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
项目:sosiefier    文件:CollectionUtilsTest.java   
@Test
public void maxSize_literalMutation2224() {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "maxSize_literalMutation2224");
    final Set<java.lang.String> set = new HashSet<java.lang.String>();
    set.add("1");
    set.add("2");
    set.add("3");
    try {
        org.apache.commons.collections4.CollectionUtils.maxSize(null);
    } catch (final NullPointerException ex) {
    }
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6931,-1);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6933,null,6932,org.apache.commons.collections4.CollectionUtils.maxSize(set));
    final Queue<java.lang.String> buf = new CircularFifoQueue<java.lang.String>(set);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6935,null,6934,org.apache.commons.collections4.CollectionUtils.maxSize(buf));
    buf.remove("2");
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6937,null,6936,org.apache.commons.collections4.CollectionUtils.maxSize(buf));
    buf.add("foo");
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6939,null,6938,org.apache.commons.collections4.CollectionUtils.maxSize(buf));
    fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
项目:sosiefier    文件:CollectionUtilsTest.java   
@Test(timeout = 1000)
public void maxSize_remove1785() {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "maxSize_remove1785");
    final Set<java.lang.String> set = new HashSet<java.lang.String>();
    set.add("2");
    set.add("3");
    try {
        org.apache.commons.collections4.CollectionUtils.maxSize(null);
    } catch (final NullPointerException ex) {
    }
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6931,-1);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6933,null,6932,org.apache.commons.collections4.CollectionUtils.maxSize(set));
    final Queue<java.lang.String> buf = new CircularFifoQueue<java.lang.String>(set);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6935,null,6934,org.apache.commons.collections4.CollectionUtils.maxSize(buf));
    buf.remove("2");
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6937,null,6936,org.apache.commons.collections4.CollectionUtils.maxSize(buf));
    buf.add("2");
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6939,null,6938,org.apache.commons.collections4.CollectionUtils.maxSize(buf));
    fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
项目:sosiefier    文件:CollectionUtilsTest.java   
@Test(timeout = 1000)
public void maxSize_remove1786() {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "maxSize_remove1786");
    final Set<java.lang.String> set = new HashSet<java.lang.String>();
    set.add("2");
    set.add("3");
    try {
        org.apache.commons.collections4.CollectionUtils.maxSize(null);
    } catch (final NullPointerException ex) {
    }
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6931,-1);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6933,null,6932,org.apache.commons.collections4.CollectionUtils.maxSize(set));
    final Queue<java.lang.String> buf = new CircularFifoQueue<java.lang.String>(set);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6935,null,6934,org.apache.commons.collections4.CollectionUtils.maxSize(buf));
    buf.remove("2");
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6937,null,6936,org.apache.commons.collections4.CollectionUtils.maxSize(buf));
    buf.add("2");
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6939,null,6938,org.apache.commons.collections4.CollectionUtils.maxSize(buf));
    fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
项目:sosiefier    文件:CollectionUtilsTest.java   
@Test(timeout = 1000)
public void maxSize_remove1787() {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "maxSize_remove1787");
    final Set<java.lang.String> set = new HashSet<java.lang.String>();
    set.add("2");
    set.add("3");
    try {
        org.apache.commons.collections4.CollectionUtils.maxSize(null);
    } catch (final NullPointerException ex) {
    }
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6931,-1);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6933,null,6932,org.apache.commons.collections4.CollectionUtils.maxSize(set));
    final Queue<java.lang.String> buf = new CircularFifoQueue<java.lang.String>(set);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6935,null,6934,org.apache.commons.collections4.CollectionUtils.maxSize(buf));
    buf.remove("2");
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6937,null,6936,org.apache.commons.collections4.CollectionUtils.maxSize(buf));
    buf.add("2");
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6939,null,6938,org.apache.commons.collections4.CollectionUtils.maxSize(buf));
    fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
项目:sosiefier    文件:CollectionUtilsTest.java   
@Test(timeout = 1000)
public void maxSize_remove1788() {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "maxSize_remove1788");
    final Set<java.lang.String> set = new HashSet<java.lang.String>();
    set.add("1");
    set.add("2");
    set.add("3");
    try {
        org.apache.commons.collections4.CollectionUtils.maxSize(null);
    } catch (final NullPointerException ex) {
    }
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6931,-1);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6933,null,6932,org.apache.commons.collections4.CollectionUtils.maxSize(set));
    final Queue<java.lang.String> buf = new CircularFifoQueue<java.lang.String>(set);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6935,null,6934,org.apache.commons.collections4.CollectionUtils.maxSize(buf));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6937,null,6936,org.apache.commons.collections4.CollectionUtils.maxSize(buf));
    buf.add("2");
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6939,null,6938,org.apache.commons.collections4.CollectionUtils.maxSize(buf));
    fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
项目:sosiefier    文件:CollectionUtilsTest.java   
@Test(timeout = 1000)
public void maxSize_remove1789() {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "maxSize_remove1789");
    final Set<java.lang.String> set = new HashSet<java.lang.String>();
    set.add("1");
    set.add("2");
    set.add("3");
    try {
        org.apache.commons.collections4.CollectionUtils.maxSize(null);
    } catch (final NullPointerException ex) {
    }
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6931,-1);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6933,null,6932,org.apache.commons.collections4.CollectionUtils.maxSize(set));
    final Queue<java.lang.String> buf = new CircularFifoQueue<java.lang.String>(set);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6935,null,6934,org.apache.commons.collections4.CollectionUtils.maxSize(buf));
    buf.remove("2");
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6937,null,6936,org.apache.commons.collections4.CollectionUtils.maxSize(buf));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),6939,null,6938,org.apache.commons.collections4.CollectionUtils.maxSize(buf));
    fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
项目:can4eve    文件:JFXCanValueHistoryPlot.java   
/**
 * update the given chart Series
 * @param series - the series to update
 * @param canProperty - the canvalue to take the data from
 */
@SuppressWarnings("rawtypes")
public void updateSeries(XYChart.Series<Number, Number> series, CANProperty canProperty) {
  CircularFifoQueue<?> history = canProperty.getCanValue().getHistory();
  if (debug)
    LOGGER.log(Level.INFO,
      "plotting for " + history.size() + " history values of " + canProperty.getCanValue().canInfo.getTitle());
  Date first=null;
  ObservableList<Data<Number, Number>> dataList = series.getData();
  // FIXME - full redraw?
  dataList.clear();
  for (Object historyValueObject : history) {
    ValueItem<?>historyValue = (ValueItem<?>) historyValueObject;

    Date timeStamp=historyValue.getTimeStamp();
    if (first==null)
      first=timeStamp;
    Double value;
    if (historyValue.getValue() instanceof Integer) {
      // http://stackoverflow.com/questions/31860761/maven-compile-error-with-using-java-generics
      int intValue=(Integer) historyValue.getValue();
      value = new Double(intValue*1.0);
    } else {
      value = (Double) historyValue.getValue();
    }
    long minute = getMinute(timeStamp,first);
    Data<Number, Number> chartData = new XYChart.Data<Number,Number>(minute,value);
    dataList.add(chartData);
  }
}
项目:can4eve    文件:CANValue.java   
/**
 * initialize my canInfo
 * 
 * @param canInfo
 */
public void init(CANInfo canInfo) {
  this.canInfo = canInfo;
  for (int i = 0; i < canInfo.getMaxIndex(); i++) {
    getValueItems().add(new ValueItem<ValueType>());
  }
  if (canInfo.getHistoryValuesPerMinute() > 0)
    this.historyMSecs = 60000 / canInfo.getHistoryValuesPerMinute();
  else
    this.historyMSecs = Long.MAX_VALUE;
  // create a history buffer for MAX_HISTORY_MINUTES
  setHistory(new CircularFifoQueue<ValueItem<ValueType>>(
      canInfo.getHistoryValuesPerMinute() * MAX_HISTORY_MINUTES + 1));
}