test_class_signature stringlengths 21 105 | function stringlengths 268 12.2k | prompt_complete_with_comment stringlengths 1.66k 9.91k | location stringlengths 46 115 | be_test_import_context stringlengths 44 2.77k | be_test_class_function_signature_context stringlengths 60 22.9k | end int64 44 7.03k | function_name stringlengths 8 51 | prompt_chat_with_comment stringlengths 1.56k 9.41k | start int64 28 7.02k | prompt_complete stringlengths 1.75k 10.3k | comment stringlengths 128 2.81k | bug_id int64 1 112 | be_test_class_long_name stringlengths 24 92 | source_dir stringclasses 4
values | prompt_chat stringlengths 1.66k 9.83k | be_test_class_signature stringlengths 17 234 | test_import_context stringlengths 39 2.03k | test_class_function_signature_context stringlengths 169 69.8k | task_id stringlengths 64 64 | testmethods list | be_test_class_field_context stringlengths 0 8.55k | function_signature stringlengths 23 151 | test_class_field_context stringlengths 0 4.05k | project stringclasses 12
values | source stringlengths 3.4k 445k | indent stringclasses 2
values | classmethods list |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
public class LoopingIteratorTest extends TestCase | public void testReset() throws Exception {
final List<String> list = Arrays.asList("a", "b", "c");
final LoopingIterator<String> loop = new LoopingIterator<String>(list);
assertEquals("a", loop.next());
assertEquals("b", loop.next());
loop.reset();
assertEquals("a", ... | // // Abstract Java Tested Class
// package org.apache.commons.collections4.iterators;
//
// import java.util.Collection;
// import java.util.Iterator;
// import java.util.NoSuchElementException;
// import org.apache.commons.collections4.ResettableIterator;
//
//
//
// public class LoopingIterator<E> implements Res... | src/test/java/org/apache/commons/collections4/iterators/LoopingIteratorTest.java | package org.apache.commons.collections4.iterators;
import java.util.Collection;
import java.util.Iterator;
import java.util.NoSuchElementException;
import org.apache.commons.collections4.ResettableIterator;
| public LoopingIterator(final Collection<? extends E> coll);
@Override
public boolean hasNext();
@Override
public E next();
@Override
public void remove();
@Override
public void reset();
public int size(); | 171 | testReset | ```java
// Abstract Java Tested Class
package org.apache.commons.collections4.iterators;
import java.util.Collection;
import java.util.Iterator;
import java.util.NoSuchElementException;
import org.apache.commons.collections4.ResettableIterator;
public class LoopingIterator<E> implements ResettableIterator<E> {
... | 155 | // // Abstract Java Tested Class
// package org.apache.commons.collections4.iterators;
//
// import java.util.Collection;
// import java.util.Iterator;
// import java.util.NoSuchElementException;
// import org.apache.commons.collections4.ResettableIterator;
//
//
//
// public class LoopingIterator<E> implements Res... | /**
* Tests the reset() method on a LoopingIterator wrapped ArrayList.
* @throws Exception If something unexpected occurs.
*/ | 28 | org.apache.commons.collections4.iterators.LoopingIterator | src/test/java | ```java
// Abstract Java Tested Class
package org.apache.commons.collections4.iterators;
import java.util.Collection;
import java.util.Iterator;
import java.util.NoSuchElementException;
import org.apache.commons.collections4.ResettableIterator;
public class LoopingIterator<E> implements ResettableIterator<E> {
... | public class LoopingIterator<E> implements ResettableIterator<E> | package org.apache.commons.collections4.iterators;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.NoSuchElementException;
import junit.framework.TestCase;
| public void testConstructorEx() throws Exception;
public void testLooping0() throws Exception;
public void testLooping1() throws Exception;
public void testLooping2() throws Exception;
public void testLooping3() throws Exception;
public void testRemoving1() throws Exception;
public void test... | bd971158a3c3a231b5a2750230b6c34685cd069736717ffde95194dd28c67040 | [
"org.apache.commons.collections4.iterators.LoopingIteratorTest::testReset"
] | private final Collection<? extends E> collection;
private Iterator<? extends E> iterator; | public void testReset() throws Exception | Collections | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | [
{
"be_test_class_file": "org/apache/commons/collections4/iterators/LoopingIterator.java",
"be_test_class_name": "org.apache.commons.collections4.iterators.LoopingIterator",
"be_test_function_name": "next",
"be_test_function_signature": "()Ljava/lang/Object;",
"line_numbers": [
"86",
... | ||
@SuppressWarnings("resource")
public class JsonParserTest extends BaseTest
| public void testKeywords() throws Exception
{
final String DOC = "{\n"
+"\"key1\" : null,\n"
+"\"key2\" : true,\n"
+"\"key3\" : false,\n"
+"\"key4\" : [ false, null, true ]\n"
+"}"
;
JsonParser p = createParserUsingStream(J... | // public abstract Version version();
// @Override
// public abstract void close() throws IOException;
// public abstract boolean isClosed();
// public abstract JsonStreamContext getParsingContext();
// public abstract JsonLocation getTokenLocation();
// public abstract JsonLocation getCurre... | src/test/java/com/fasterxml/jackson/core/read/JsonParserTest.java | package com.fasterxml.jackson.core;
import java.io.*;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.Iterator;
import com.fasterxml.jackson.core.async.NonBlockingInputFeeder;
import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.core.util.RequestPayload;
| protected JsonParser();
protected JsonParser(int features);
public abstract ObjectCodec getCodec();
public abstract void setCodec(ObjectCodec c);
public Object getInputSource();
public Object getCurrentValue();
public void setCurrentValue(Object v);
public void setRequestPayloadOnError(R... | 112 | testKeywords | ```java
public abstract Version version();
@Override
public abstract void close() throws IOException;
public abstract boolean isClosed();
public abstract JsonStreamContext getParsingContext();
public abstract JsonLocation getTokenLocation();
public abstract JsonLocation getCurrentLocation();... | 91 | // public abstract Version version();
// @Override
// public abstract void close() throws IOException;
// public abstract boolean isClosed();
// public abstract JsonStreamContext getParsingContext();
// public abstract JsonLocation getTokenLocation();
// public abstract JsonLocation getCurre... | /**
* Unit test that verifies that 3 basic keywords (null, true, false)
* are properly parsed in various contexts.
*/ | 26 | com.fasterxml.jackson.core.JsonParser | src/test/java | ```java
public abstract Version version();
@Override
public abstract void close() throws IOException;
public abstract boolean isClosed();
public abstract JsonStreamContext getParsingContext();
public abstract JsonLocation getTokenLocation();
public abstract JsonLocation getCurrentLocation();... | public abstract class JsonParser
implements Closeable, Versioned
| package com.fasterxml.jackson.core.read;
import com.fasterxml.jackson.core.*;
import com.fasterxml.jackson.core.testsupport.MockDataInput;
import com.fasterxml.jackson.core.util.JsonParserDelegate;
import java.io.*;
import java.net.URL;
import java.util.*;
| public void testConfig() throws Exception;
public void testInterningWithStreams() throws Exception;
public void testInterningWithReaders() throws Exception;
private void _testIntern(boolean useStream, boolean enableIntern, String expName) throws IOException;
public void testSpecExampleSkipping() thr... | bdd59fc7449f15757a3b59fc9c4eaa77a510e182578409b9fe886baa968ce62b | [
"com.fasterxml.jackson.core.read.JsonParserTest::testKeywords"
] | private final static int MIN_BYTE_I = (int) Byte.MIN_VALUE;
private final static int MAX_BYTE_I = (int) 255;
private final static int MIN_SHORT_I = (int) Short.MIN_VALUE;
private final static int MAX_SHORT_I = (int) Short.MAX_VALUE;
protected int _features;
protected transient RequestPayload _re... | public void testKeywords() throws Exception
| JacksonCore | package com.fasterxml.jackson.core.read;
import com.fasterxml.jackson.core.*;
import com.fasterxml.jackson.core.testsupport.MockDataInput;
import com.fasterxml.jackson.core.util.JsonParserDelegate;
import java.io.*;
import java.net.URL;
import java.util.*;
/**
* Set of basic unit tests for verifying that the basic ... | [
{
"be_test_class_file": "com/fasterxml/jackson/core/JsonParser.java",
"be_test_class_name": "com.fasterxml.jackson.core.JsonParser",
"be_test_function_name": "isEnabled",
"be_test_function_signature": "(Lcom/fasterxml/jackson/core/JsonParser$Feature;)Z",
"line_numbers": [
"714"
],
... | ||
public class NysiisTest extends StringEncoderAbstractTest<Nysiis> | @Test
public void testRule1() throws EncoderException {
this.assertEncodings(
new String[] { "MACX", "MCX" },
new String[] { "KNX", "NX" },
new String[] { "KX", "CX" },
new String[] { "PHX", "FX" },
new String[] { "PFX", "FX... | // // Abstract Java Tested Class
// package org.apache.commons.codec.language;
//
// import java.util.regex.Pattern;
// import org.apache.commons.codec.EncoderException;
// import org.apache.commons.codec.StringEncoder;
//
//
//
// public class Nysiis implements StringEncoder {
// private static final char[] C... | src/test/java/org/apache/commons/codec/language/NysiisTest.java | package org.apache.commons.codec.language;
import java.util.regex.Pattern;
import org.apache.commons.codec.EncoderException;
import org.apache.commons.codec.StringEncoder;
| private static boolean isVowel(final char c);
private static char[] transcodeRemaining(final char prev, final char curr, final char next, final char aNext);
public Nysiis();
public Nysiis(final boolean strict);
@Override
public Object encode(final Object obj) throws EncoderException;
@Overri... | 182 | testRule1 | ```java
// Abstract Java Tested Class
package org.apache.commons.codec.language;
import java.util.regex.Pattern;
import org.apache.commons.codec.EncoderException;
import org.apache.commons.codec.StringEncoder;
public class Nysiis implements StringEncoder {
private static final char[] CHARS_A = new char[] { '... | 173 | // // Abstract Java Tested Class
// package org.apache.commons.codec.language;
//
// import java.util.regex.Pattern;
// import org.apache.commons.codec.EncoderException;
// import org.apache.commons.codec.StringEncoder;
//
//
//
// public class Nysiis implements StringEncoder {
// private static final char[] C... | /**
* Tests rule 1: Translate first characters of name: MAC → MCC, KN → N, K → C, PH, PF → FF, SCH → SSS
*
* @throws EncoderException
*/ | 18 | org.apache.commons.codec.language.Nysiis | src/test/java | ```java
// Abstract Java Tested Class
package org.apache.commons.codec.language;
import java.util.regex.Pattern;
import org.apache.commons.codec.EncoderException;
import org.apache.commons.codec.StringEncoder;
public class Nysiis implements StringEncoder {
private static final char[] CHARS_A = new char[] { '... | public class Nysiis implements StringEncoder | package org.apache.commons.codec.language;
import org.apache.commons.codec.EncoderException;
import org.apache.commons.codec.StringEncoderAbstractTest;
import org.junit.Assert;
import org.junit.Test;
| private void assertEncodings(final String[]... testValues) throws EncoderException;
@Override
protected Nysiis createStringEncoder();
private void encodeAll(final String[] strings, final String expectedEncoding);
@Test
public void testBran();
@Test
public void testCap();
@Test
pu... | be262426c7b4689fc6eb54ce9e966b98474fcd26cbae0ff4ed39ae2e35a047f5 | [
"org.apache.commons.codec.language.NysiisTest::testRule1"
] | private static final char[] CHARS_A = new char[] { 'A' };
private static final char[] CHARS_AF = new char[] { 'A', 'F' };
private static final char[] CHARS_C = new char[] { 'C' };
private static final char[] CHARS_FF = new char[] { 'F', 'F' };
private static final char[] CHARS_G = new char[]... | @Test
public void testRule1() throws EncoderException | private final Nysiis fullNysiis = new Nysiis(false); | Codec | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | [
{
"be_test_class_file": "org/apache/commons/codec/language/Nysiis.java",
"be_test_class_name": "org.apache.commons.codec.language.Nysiis",
"be_test_function_name": "encode",
"be_test_function_signature": "(Ljava/lang/String;)Ljava/lang/String;",
"line_numbers": [
"227"
],
"method_l... | |
public class TimeSeriesTests extends TestCase implements SeriesChangeListener | public void testCreateCopy1() {
TimeSeries series = new TimeSeries("Series");
series.add(new Month(MonthConstants.JANUARY, 2003), 45.0);
series.add(new Month(MonthConstants.FEBRUARY, 2003), 55.0);
series.add(new Month(MonthConstants.JUNE, 2003), 35.0);
series.add(new Month(M... | // // Abstract Java Tested Class
// package org.jfree.data.time;
//
// import java.io.Serializable;
// import java.lang.reflect.InvocationTargetException;
// import java.lang.reflect.Method;
// import java.util.Collection;
// import java.util.Collections;
// import java.util.Date;
// import java.util.Iterator;
// impo... | tests/org/jfree/data/time/junit/TimeSeriesTests.java | package org.jfree.data.time;
import java.io.Serializable;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.Collection;
import java.util.Collections;
import java.util.Date;
import java.util.Iterator;
import java.util.List;
import java.util.TimeZone;
import org.jfree.... | public TimeSeries(Comparable name);
public TimeSeries(Comparable name, String domain, String range);
public String getDomainDescription();
public void setDomainDescription(String description);
public String getRangeDescription();
public void setRangeDescription(String description);
public in... | 512 | testCreateCopy1 | ```java
// Abstract Java Tested Class
package org.jfree.data.time;
import java.io.Serializable;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.Collection;
import java.util.Collections;
import java.util.Date;
import java.util.Iterator;
import java.util.List;
import... | 424 | // // Abstract Java Tested Class
// package org.jfree.data.time;
//
// import java.io.Serializable;
// import java.lang.reflect.InvocationTargetException;
// import java.lang.reflect.Method;
// import java.util.Collection;
// import java.util.Collections;
// import java.util.Date;
// import java.util.Iterator;
// impo... | /**
* Some tests to ensure that the createCopy(RegularTimePeriod,
* RegularTimePeriod) method is functioning correctly.
*/ | 1 | org.jfree.data.time.TimeSeries | tests | ```java
// Abstract Java Tested Class
package org.jfree.data.time;
import java.io.Serializable;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.Collection;
import java.util.Collections;
import java.util.Date;
import java.util.Iterator;
import java.util.List;
import... | public class TimeSeries extends Series implements Cloneable, Serializable | package org.jfree.data.time.junit;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.ObjectInput;
import java.io.ObjectInputStream;
import java.io.ObjectOutput;
import java.io.ObjectOutputStream;
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framewor... | public static Test suite();
public TimeSeriesTests(String name);
protected void setUp();
public void seriesChanged(SeriesChangeEvent event);
public void testClone();
public void testClone2();
public void testAddValue();
public void testGetValue();
public void testDelete();
public void test... | be2d84138f162788a27c7b08376093a99434d648fb3f5747423fc3070f6c3c70 | [
"org.jfree.data.time.junit.TimeSeriesTests::testCreateCopy1"
] | private static final long serialVersionUID = -5032960206869675528L;
protected static final String DEFAULT_DOMAIN_DESCRIPTION = "Time";
protected static final String DEFAULT_RANGE_DESCRIPTION = "Value";
private String domain;
private String range;
protected Class timePeriodClass;
protected Li... | public void testCreateCopy1() | private TimeSeries seriesA;
private TimeSeries seriesB;
private TimeSeries seriesC;
private boolean gotSeriesChangeEvent = false;
private static final double EPSILON = 0.0000000001; | Chart | /* ===========================================================
* JFreeChart : a free chart library for the Java(tm) platform
* ===========================================================
*
* (C) Copyright 2000-2009, by Object Refinery Limited and Contributors.
*
* Project Info: http://www.jfree.org/jfreechart/in... | [
{
"be_test_class_file": "org/jfree/data/time/TimeSeries.java",
"be_test_class_name": "org.jfree.data.time.TimeSeries",
"be_test_function_name": "add",
"be_test_function_signature": "(Lorg/jfree/data/time/RegularTimePeriod;D)V",
"line_numbers": [
"653",
"654"
],
"method_line_r... | |
public class TestTokenBuffer extends BaseMapTest
| public void testBasicConfig() throws IOException
{
TokenBuffer buf;
buf = new TokenBuffer(MAPPER, false);
assertEquals(MAPPER.version(), buf.version());
assertSame(MAPPER, buf.getCodec());
assertNotNull(buf.getOutputContext());
assertFalse(buf.isClosed());
... | // protected final void _appendValue(JsonToken type, Object value);
// @Override
// protected void _reportUnsupportedOperation();
// @Deprecated // since 2.9
// public Parser(Segment firstSeg, ObjectCodec codec,
// boolean hasNativeTypeIds, boolean hasNativeObjectIds);
// pub... | src/test/java/com/fasterxml/jackson/databind/util/TestTokenBuffer.java | package com.fasterxml.jackson.databind.util;
import java.io.*;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.TreeMap;
import com.fasterxml.jackson.core.*;
import com.fasterxml.jackson.core.base.ParserMinimalBase;
import com.fasterxml.jackson.core.json.JsonWriteContext;
import com.fasterxml... | public TokenBuffer(ObjectCodec codec, boolean hasNativeIds);
public TokenBuffer(JsonParser p);
public TokenBuffer(JsonParser p, DeserializationContext ctxt);
public static TokenBuffer asCopyOfValue(JsonParser p) throws IOException;
public TokenBuffer overrideParentContext(JsonStreamContext ctxt);
... | 49 | testBasicConfig | ```java
protected final void _appendValue(JsonToken type, Object value);
@Override
protected void _reportUnsupportedOperation();
@Deprecated // since 2.9
public Parser(Segment firstSeg, ObjectCodec codec,
boolean hasNativeTypeIds, boolean hasNativeObjectIds);
public Parser(Se... | 28 | // protected final void _appendValue(JsonToken type, Object value);
// @Override
// protected void _reportUnsupportedOperation();
// @Deprecated // since 2.9
// public Parser(Segment firstSeg, ObjectCodec codec,
// boolean hasNativeTypeIds, boolean hasNativeObjectIds);
// pub... | /*
/**********************************************************
/* Basic TokenBuffer tests
/**********************************************************
*/ | 112 | com.fasterxml.jackson.databind.util.TokenBuffer | src/test/java | ```java
protected final void _appendValue(JsonToken type, Object value);
@Override
protected void _reportUnsupportedOperation();
@Deprecated // since 2.9
public Parser(Segment firstSeg, ObjectCodec codec,
boolean hasNativeTypeIds, boolean hasNativeObjectIds);
public Parser(Se... | public class TokenBuffer
/* Won't use JsonGeneratorBase, to minimize overhead for validity
* checking
*/
extends JsonGenerator
| package com.fasterxml.jackson.databind.util;
import java.io.*;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.UUID;
import com.fasterxml.jackson.core.*;
import com.fasterxml.jackson.core.JsonParser.NumberType;
import com.fasterxml.jackson.core.io.SerializedString;
import com.fasterxml.jacks... | public void testBasicConfig() throws IOException;
public void testSimpleWrites() throws IOException;
public void testSimpleNumberWrites() throws IOException;
public void testNumberOverflowInt() throws IOException;
public void testNumberOverflowLong() throws IOException;
public void testParentCon... | bff9e71dab4180062df82b63f3f005f8a14128734445083c78f278459b90431a | [
"com.fasterxml.jackson.databind.util.TestTokenBuffer::testBasicConfig"
] | protected final static int DEFAULT_GENERATOR_FEATURES = JsonGenerator.Feature.collectDefaults();
protected ObjectCodec _objectCodec;
protected JsonStreamContext _parentContext;
protected int _generatorFeatures;
protected boolean _closed;
protected boolean _hasNativeTypeIds;
protected boolean... | public void testBasicConfig() throws IOException
| private final ObjectMapper MAPPER = objectMapper(); | JacksonDatabind | package com.fasterxml.jackson.databind.util;
import java.io.*;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.UUID;
import com.fasterxml.jackson.core.*;
import com.fasterxml.jackson.core.JsonParser.NumberType;
import com.fasterxml.jackson.core.io.SerializedString;
import com.fasterxml.jack... | [
{
"be_test_class_file": "com/fasterxml/jackson/databind/util/TokenBuffer.java",
"be_test_class_name": "com.fasterxml.jackson.databind.util.TokenBuffer",
"be_test_function_name": "close",
"be_test_function_signature": "()V",
"line_numbers": [
"654",
"655"
],
"method_line_rate"... | |
public class MeterPlotTests extends TestCase | public void testEquals() {
MeterPlot plot1 = new MeterPlot();
MeterPlot plot2 = new MeterPlot();
assertTrue(plot1.equals(plot2));
// units
plot1.setUnits("mph");
assertFalse(plot1.equals(plot2));
plot2.setUnits("mph");
assertTrue(plot1.equals(plot2));... | // import org.jfree.chart.text.TextUtilities;
// import org.jfree.chart.util.ObjectUtilities;
// import org.jfree.chart.util.PaintUtilities;
// import org.jfree.chart.util.RectangleInsets;
// import org.jfree.chart.util.ResourceBundleWrapper;
// import org.jfree.chart.util.SerialUtilities;
// import org.jfree.data.Rang... | tests/org/jfree/chart/plot/junit/MeterPlotTests.java | package org.jfree.chart.plot;
import java.awt.AlphaComposite;
import java.awt.BasicStroke;
import java.awt.Color;
import java.awt.Composite;
import java.awt.Font;
import java.awt.FontMetrics;
import java.awt.Graphics2D;
import java.awt.Paint;
import java.awt.Polygon;
import java.awt.Shape;
import java.awt.Stroke;
impo... | public MeterPlot();
public MeterPlot(ValueDataset dataset);
public DialShape getDialShape();
public void setDialShape(DialShape shape);
public int getMeterAngle();
public void setMeterAngle(int angle);
public Range getRange();
public void setRange(Range range);
public double getTickS... | 216 | testEquals | ```java
import org.jfree.chart.text.TextUtilities;
import org.jfree.chart.util.ObjectUtilities;
import org.jfree.chart.util.PaintUtilities;
import org.jfree.chart.util.RectangleInsets;
import org.jfree.chart.util.ResourceBundleWrapper;
import org.jfree.chart.util.SerialUtilities;
import org.jfree.data.Range;
import org... | 93 | // import org.jfree.chart.text.TextUtilities;
// import org.jfree.chart.util.ObjectUtilities;
// import org.jfree.chart.util.PaintUtilities;
// import org.jfree.chart.util.RectangleInsets;
// import org.jfree.chart.util.ResourceBundleWrapper;
// import org.jfree.chart.util.SerialUtilities;
// import org.jfree.data.Rang... | /**
* Test the equals method to ensure that it can distinguish the required
* fields. Note that the dataset is NOT considered in the equals test.
*/ | 1 | org.jfree.chart.plot.MeterPlot | tests | ```java
import org.jfree.chart.text.TextUtilities;
import org.jfree.chart.util.ObjectUtilities;
import org.jfree.chart.util.PaintUtilities;
import org.jfree.chart.util.RectangleInsets;
import org.jfree.chart.util.ResourceBundleWrapper;
import org.jfree.chart.util.SerialUtilities;
import org.jfree.data.Range;
import org... | public class MeterPlot extends Plot implements Serializable, Cloneable | package org.jfree.chart.plot.junit;
import java.awt.Color;
import java.awt.Font;
import java.awt.GradientPaint;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.ObjectInput;
import java.io.ObjectInputStream;
import java.io.ObjectOutput;
import java.io.ObjectOutputStream;
import... | public static Test suite();
public MeterPlotTests(String name);
public void testEquals();
public void testCloning();
public void testSerialization1();
public void testSerialization2(); | c0f2fbe1094bdf6726dfa25d8ec699d3e09ad7c7dc3ec30461b348879900d02a | [
"org.jfree.chart.plot.junit.MeterPlotTests::testEquals"
] | private static final long serialVersionUID = 2987472457734470962L;
static final Paint DEFAULT_DIAL_BACKGROUND_PAINT = Color.black;
static final Paint DEFAULT_NEEDLE_PAINT = Color.green;
static final Font DEFAULT_VALUE_FONT = new Font("Tahoma", Font.BOLD, 12);
static final Paint DEFAULT_VALUE_PAINT =... | public void testEquals() | Chart | /* ===========================================================
* JFreeChart : a free chart library for the Java(tm) platform
* ===========================================================
*
* (C) Copyright 2000-2008, by Object Refinery Limited and Contributors.
*
* Project Info: http://www.jfree.org/jfreechart/in... | [
{
"be_test_class_file": "org/jfree/chart/plot/MeterPlot.java",
"be_test_class_name": "org.jfree.chart.plot.MeterPlot",
"be_test_function_name": "addInterval",
"be_test_function_signature": "(Lorg/jfree/chart/plot/MeterInterval;)V",
"line_numbers": [
"757",
"758",
"760",
"... | ||
public class FilterIteratorTest<E> extends AbstractIteratorTest<E> | @SuppressWarnings("unchecked")
public void testSetIterator() {
final Iterator<E> iter1 = Collections.singleton((E) new Object()).iterator();
final Iterator<E> iter2 = Collections.<E>emptyList().iterator();
final FilterIterator<E> filterIterator = new FilterIterator<E>(iter1);
fi... | // // Abstract Java Tested Class
// package org.apache.commons.collections4.iterators;
//
// import java.util.Iterator;
// import java.util.NoSuchElementException;
// import org.apache.commons.collections4.Predicate;
//
//
//
// public class FilterIterator<E> implements Iterator<E> {
// private Iterator<? exte... | src/test/java/org/apache/commons/collections4/iterators/FilterIteratorTest.java | package org.apache.commons.collections4.iterators;
import java.util.Iterator;
import java.util.NoSuchElementException;
import org.apache.commons.collections4.Predicate;
| public FilterIterator();
public FilterIterator(final Iterator<? extends E> iterator);
public FilterIterator(final Iterator<? extends E> iterator, final Predicate<? super E> predicate);
@Override
public boolean hasNext();
@Override
public E next();
@Override
public void remove();
... | 129 | testSetIterator | ```java
// Abstract Java Tested Class
package org.apache.commons.collections4.iterators;
import java.util.Iterator;
import java.util.NoSuchElementException;
import org.apache.commons.collections4.Predicate;
public class FilterIterator<E> implements Iterator<E> {
private Iterator<? extends E> iterator;
priv... | 116 | // // Abstract Java Tested Class
// package org.apache.commons.collections4.iterators;
//
// import java.util.Iterator;
// import java.util.NoSuchElementException;
// import org.apache.commons.collections4.Predicate;
//
//
//
// public class FilterIterator<E> implements Iterator<E> {
// private Iterator<? exte... | /**
* Test that when the iterator is changed, the hasNext method returns the
* correct response for the new iterator.
*/ | 28 | org.apache.commons.collections4.iterators.FilterIterator | src/test/java | ```java
// Abstract Java Tested Class
package org.apache.commons.collections4.iterators;
import java.util.Iterator;
import java.util.NoSuchElementException;
import org.apache.commons.collections4.Predicate;
public class FilterIterator<E> implements Iterator<E> {
private Iterator<? extends E> iterator;
priv... | public class FilterIterator<E> implements Iterator<E> | package org.apache.commons.collections4.iterators;
import static org.apache.commons.collections4.functors.TruePredicate.truePredicate;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
import java.util.NoSuchElementException;
import org... | public FilterIteratorTest(final String name);
@Override
public void setUp();
@Override
public void tearDown() throws Exception;
@Override
public FilterIterator<E> makeEmptyIterator();
@Override
@SuppressWarnings("unchecked")
public FilterIterator<E> makeObject();
public void ... | c1a50a1e01f6672852fe3bc7eeae7a11381888e75be3a9b9b14cf080ec0df517 | [
"org.apache.commons.collections4.iterators.FilterIteratorTest::testSetIterator"
] | private Iterator<? extends E> iterator;
private Predicate<? super E> predicate;
private E nextObject;
private boolean nextObjectSet = false; | @SuppressWarnings("unchecked")
public void testSetIterator() | private String[] array;
private List<E> list;
private FilterIterator<E> iterator; | Collections | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | [
{
"be_test_class_file": "org/apache/commons/collections4/iterators/FilterIterator.java",
"be_test_class_name": "org.apache.commons.collections4.iterators.FilterIterator",
"be_test_function_name": "hasNext",
"be_test_function_signature": "()Z",
"line_numbers": [
"87"
],
"method_line... | |
public class ExternExportsPassTest extends TestCase | public void testUseExportsAsExterns() {
String librarySource =
"/**\n" +
" * @param {number} a\n" +
" * @constructor\n" +
" */\n" +
"var InternalName = function(a) {" +
"};" +
"goog.exportSymbol('ExternalName', InternalName)";
String clientSource =
"var a = new ExternalName(... | // // Abstract Java Tested Class
// package com.google.javascript.jscomp;
//
// import com.google.common.base.Joiner;
// import com.google.common.base.Preconditions;
// import com.google.common.collect.Iterables;
// import com.google.common.collect.Lists;
// import com.google.common.collect.Maps;
// import com.google.... | test/com/google/javascript/jscomp/ExternExportsPassTest.java | package com.google.javascript.jscomp;
import com.google.common.base.Joiner;
import com.google.common.base.Preconditions;
import com.google.common.collect.Iterables;
import com.google.common.collect.Lists;
import com.google.common.collect.Maps;
import com.google.common.collect.Sets;
import com.google.javascript.rhino.I... | ExternExportsPass(AbstractCompiler compiler);
private void initExportMethods();
@Override
public void process(Node externs, Node root);
public String getGeneratedExterns();
@Override
public void visit(NodeTraversal t, Node n, Node parent);
private void handleSymbolExport(Node parent);
private void han... | 440 | testUseExportsAsExterns | ```java
// Abstract Java Tested Class
package com.google.javascript.jscomp;
import com.google.common.base.Joiner;
import com.google.common.base.Preconditions;
import com.google.common.collect.Iterables;
import com.google.common.collect.Lists;
import com.google.common.collect.Maps;
import com.google.common.collect.Sets... | 411 | // // Abstract Java Tested Class
// package com.google.javascript.jscomp;
//
// import com.google.common.base.Joiner;
// import com.google.common.base.Preconditions;
// import com.google.common.collect.Iterables;
// import com.google.common.collect.Lists;
// import com.google.common.collect.Maps;
// import com.google.... | /**
* Test the workflow of creating an externs file for a library
* via the export pass and then using that externs file in a client.
*
* There should be no warnings in the client if the library includes
* type information for the exported functions and the client uses them
* correctly.
*/ | 107 | com.google.javascript.jscomp.ExternExportsPass | test | ```java
// Abstract Java Tested Class
package com.google.javascript.jscomp;
import com.google.common.base.Joiner;
import com.google.common.base.Preconditions;
import com.google.common.collect.Iterables;
import com.google.common.collect.Lists;
import com.google.common.collect.Maps;
import com.google.common.collect.Sets... | final class ExternExportsPass extends NodeTraversal.AbstractPostOrderCallback
implements CompilerPass | package com.google.javascript.jscomp;
import com.google.common.base.Joiner;
import com.google.common.collect.Lists;
import junit.framework.TestCase;
import java.util.List;
| private void setRunCheckTypes(boolean shouldRunCheckTypes);
@Override
public void setUp() throws Exception;
public void testExportSymbol() throws Exception;
public void testExportSymbolDefinedInVar() throws Exception;
public void testExportProperty() throws Exception;
public void testExportMultiple() thro... | c4fa9e8cccf7494931675159632328ce29da6a3fa587b94abfd2e808a9c031d9 | [
"com.google.javascript.jscomp.ExternExportsPassTest::testUseExportsAsExterns"
] | private final List<Export> exports;
private final Map<String, Node> definitionMap;
private final AbstractCompiler compiler;
private final Node externsRoot;
private final Map<String, String> mappedPaths;
private final Set<String> alreadyExportedPaths;
private List<String> exportSymbolFunctionNames;
priva... | public void testUseExportsAsExterns() | private boolean runCheckTypes = true; | Closure | /*
* Copyright 2009 The Closure Compiler Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... | [
{
"be_test_class_file": "com/google/javascript/jscomp/ExternExportsPass.java",
"be_test_class_name": "com.google.javascript.jscomp.ExternExportsPass",
"be_test_function_name": "access$400",
"be_test_function_signature": "(Lcom/google/javascript/jscomp/ExternExportsPass;)Ljava/util/Map;",
"line_n... | |
public class TestUnsupportedDateTimeField extends TestCase | public void testDelegatedMethods() {
DateTimeField fieldOne = UnsupportedDateTimeField.getInstance(
dateTimeFieldTypeOne, UnsupportedDurationField
.getInstance(weeks));
PreciseDurationField hoursDuration = new PreciseDurationField(
DurationFiel... | // // Abstract Java Tested Class
// package org.joda.time.field;
//
// import java.io.Serializable;
// import java.util.HashMap;
// import java.util.Locale;
// import org.joda.time.DateTimeField;
// import org.joda.time.DateTimeFieldType;
// import org.joda.time.DurationField;
// import org.joda.time.ReadablePartial;
... | src/test/java/org/joda/time/field/TestUnsupportedDateTimeField.java | package org.joda.time.field;
import java.io.Serializable;
import java.util.HashMap;
import java.util.Locale;
import org.joda.time.DateTimeField;
import org.joda.time.DateTimeFieldType;
import org.joda.time.DurationField;
import org.joda.time.ReadablePartial;
| public static synchronized UnsupportedDateTimeField getInstance(
DateTimeFieldType type, DurationField durationField);
private UnsupportedDateTimeField(DateTimeFieldType type, DurationField durationField);
public DateTimeFieldType getType();
public String getName();
public boolean isSupp... | 639 | testDelegatedMethods | ```java
// Abstract Java Tested Class
package org.joda.time.field;
import java.io.Serializable;
import java.util.HashMap;
import java.util.Locale;
import org.joda.time.DateTimeField;
import org.joda.time.DateTimeFieldType;
import org.joda.time.DurationField;
import org.joda.time.ReadablePartial;
public final class ... | 547 | // // Abstract Java Tested Class
// package org.joda.time.field;
//
// import java.io.Serializable;
// import java.util.HashMap;
// import java.util.Locale;
// import org.joda.time.DateTimeField;
// import org.joda.time.DateTimeFieldType;
// import org.joda.time.DurationField;
// import org.joda.time.ReadablePartial;
... | /**
* As this is an unsupported date/time field, many normal methods are
* unsupported. Some delegate and can possibly throw an
* UnsupportedOperationException or have a valid return. Verify that each
* method correctly throws this exception when appropriate and delegates
* correctly based ... | 1 | org.joda.time.field.UnsupportedDateTimeField | src/test/java | ```java
// Abstract Java Tested Class
package org.joda.time.field;
import java.io.Serializable;
import java.util.HashMap;
import java.util.Locale;
import org.joda.time.DateTimeField;
import org.joda.time.DateTimeFieldType;
import org.joda.time.DurationField;
import org.joda.time.ReadablePartial;
public final class ... | public final class UnsupportedDateTimeField extends DateTimeField implements Serializable | package org.joda.time.field;
import java.util.Locale;
import junit.framework.TestCase;
import junit.framework.TestSuite;
import org.joda.time.DateTimeField;
import org.joda.time.DateTimeFieldType;
import org.joda.time.DurationFieldType;
import org.joda.time.LocalTime;
import org.joda.time.ReadablePartial;
| public static TestSuite suite();
protected void setUp() throws Exception;
public void testNullValuesToGetInstanceThrowsException();
public void testDifferentDurationReturnDifferentObjects();
public void testPublicGetNameMethod();
public void testAlwaysFalseReturnTypes();
public void testMeth... | c7da8cbb21a6fc26fff6e49c50d07a49dd01b9b516e048808eb5022b40c79ee0 | [
"org.joda.time.field.TestUnsupportedDateTimeField::testDelegatedMethods"
] | private static final long serialVersionUID = -1934618396111902255L;
private static HashMap<DateTimeFieldType, UnsupportedDateTimeField> cCache;
private final DateTimeFieldType iType;
private final DurationField iDurationField; | public void testDelegatedMethods() | private DurationFieldType weeks;
private DurationFieldType months;
private DateTimeFieldType dateTimeFieldTypeOne;
private ReadablePartial localTime; | Time | /*
* Copyright 2001-2006 Stephen Colebourne
*
* 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... | [
{
"be_test_class_file": "org/joda/time/field/UnsupportedDateTimeField.java",
"be_test_class_name": "org.joda.time.field.UnsupportedDateTimeField",
"be_test_function_name": "add",
"be_test_function_signature": "(JI)J",
"line_numbers": [
"225"
],
"method_line_rate": 1
},
{
"b... | |
public class TestTypeFactory
extends BaseMapTest
| public void testRawCollections()
{
TypeFactory tf = TypeFactory.defaultInstance();
JavaType type = tf.constructRawCollectionType(ArrayList.class);
assertTrue(type.isContainerType());
assertEquals(TypeFactory.unknownType(), type.getContentType());
type = tf.constructRawCol... | // private String _resolveTypePlaceholders(JavaType sourceType, JavaType actualType)
// throws IllegalArgumentException;
// private boolean _verifyAndResolvePlaceholders(JavaType exp, JavaType act);
// public JavaType constructGeneralizedType(JavaType baseType, Class<?> superClass);
// public Ja... | src/test/java/com/fasterxml/jackson/databind/type/TestTypeFactory.java | package com.fasterxml.jackson.databind.type;
import java.util.*;
import java.util.concurrent.atomic.AtomicReference;
import java.lang.reflect.*;
import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.JavaType;
import com.fasterxml.jackson.databind.util.ArrayBuilders;
import com.fas... | private TypeFactory();
protected TypeFactory(LRUMap<Object,JavaType> typeCache);
protected TypeFactory(LRUMap<Object,JavaType> typeCache, TypeParser p,
TypeModifier[] mods, ClassLoader classLoader);
public TypeFactory withModifier(TypeModifier mod);
public TypeFactory withClassLoader(Cla... | 553 | testRawCollections | ```java
private String _resolveTypePlaceholders(JavaType sourceType, JavaType actualType)
throws IllegalArgumentException;
private boolean _verifyAndResolvePlaceholders(JavaType exp, JavaType act);
public JavaType constructGeneralizedType(JavaType baseType, Class<?> superClass);
public JavaType ... | 539 | // private String _resolveTypePlaceholders(JavaType sourceType, JavaType actualType)
// throws IllegalArgumentException;
// private boolean _verifyAndResolvePlaceholders(JavaType exp, JavaType act);
// public JavaType constructGeneralizedType(JavaType baseType, Class<?> superClass);
// public Ja... | /*
/**********************************************************
/* Unit tests: construction of "raw" types
/**********************************************************
*/ | 112 | com.fasterxml.jackson.databind.type.TypeFactory | src/test/java | ```java
private String _resolveTypePlaceholders(JavaType sourceType, JavaType actualType)
throws IllegalArgumentException;
private boolean _verifyAndResolvePlaceholders(JavaType exp, JavaType act);
public JavaType constructGeneralizedType(JavaType baseType, Class<?> superClass);
public JavaType ... | @SuppressWarnings({"rawtypes" })
public final class TypeFactory
implements java.io.Serializable
| package com.fasterxml.jackson.databind.type;
import java.lang.reflect.Field;
import java.util.*;
import java.util.concurrent.atomic.AtomicReference;
import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.*;
| public void testSimpleTypes();
public void testArrays();
public void testProperties();
public void testIterator();
@SuppressWarnings("deprecation")
public void testParametricTypes();
public void testCanonicalNames();
@SuppressWarnings("serial")
public void testCanonicalWithSpaces();
... | c844b9e144d166884d34fe3c1abb3a14f2e339c92e60c63fc984cc07ae7eeb12 | [
"com.fasterxml.jackson.databind.type.TestTypeFactory::testRawCollections"
] | private static final long serialVersionUID = 1L;
private final static JavaType[] NO_TYPES = new JavaType[0];
protected final static TypeFactory instance = new TypeFactory();
protected final static TypeBindings EMPTY_BINDINGS = TypeBindings.emptyBindings();
private final static Class<?> CLS_STRING = ... | public void testRawCollections()
| JacksonDatabind | package com.fasterxml.jackson.databind.type;
import java.lang.reflect.Field;
import java.util.*;
import java.util.concurrent.atomic.AtomicReference;
import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.*;
/**
* Simple tests to verify that the {@link TypeFactory} constructs
* ... | [
{
"be_test_class_file": "com/fasterxml/jackson/databind/type/TypeFactory.java",
"be_test_class_name": "com.fasterxml.jackson.databind.type.TypeFactory",
"be_test_function_name": "_collectionType",
"be_test_function_signature": "(Ljava/lang/Class;Lcom/fasterxml/jackson/databind/type/TypeBindings;Lcom... | ||
public class TestValueInstantiator extends BaseMapTest
| public void testDelegateBeanInstantiator() throws Exception
{
ObjectMapper mapper = new ObjectMapper();
mapper.registerModule(new MyModule(MyBean.class, new MyDelegateBeanInstantiator()));
MyBean bean = mapper.readValue("123", MyBean.class);
assertNotNull(bean);
assertEqu... | // import com.fasterxml.jackson.databind.module.SimpleModule;
// import com.fasterxml.jackson.databind.type.TypeFactory;
//
//
//
// public class TestValueInstantiator extends BaseMapTest
// {
// private final ObjectMapper MAPPER = objectMapper();
//
// public void testCustomBeanInstantiator() throws Excep... | src/test/java/com/fasterxml/jackson/databind/deser/creators/TestValueInstantiator.java | package com.fasterxml.jackson.databind.deser;
import java.io.IOException;
import com.fasterxml.jackson.databind.*;
import com.fasterxml.jackson.databind.deser.impl.PropertyValueBuffer;
import com.fasterxml.jackson.databind.introspect.AnnotatedParameter;
import com.fasterxml.jackson.databind.introspect.AnnotatedWithPar... | public Class<?> getValueClass();
public String getValueTypeDesc();
public boolean canInstantiate();
public boolean canCreateFromString();
public boolean canCreateFromInt();
public boolean canCreateFromLong();
public boolean canCreateFromDouble();
public boolean canCreateFromBoolean();
... | 383 | testDelegateBeanInstantiator | ```java
import com.fasterxml.jackson.databind.module.SimpleModule;
import com.fasterxml.jackson.databind.type.TypeFactory;
public class TestValueInstantiator extends BaseMapTest
{
private final ObjectMapper MAPPER = objectMapper();
public void testCustomBeanInstantiator() throws Exception;
public void ... | 376 | // import com.fasterxml.jackson.databind.module.SimpleModule;
// import com.fasterxml.jackson.databind.type.TypeFactory;
//
//
//
// public class TestValueInstantiator extends BaseMapTest
// {
// private final ObjectMapper MAPPER = objectMapper();
//
// public void testCustomBeanInstantiator() throws Excep... | /*
/**********************************************************
/* Unit tests for delegate creators
/**********************************************************
*/ | 112 | com.fasterxml.jackson.databind.deser.ValueInstantiator | src/test/java | ```java
import com.fasterxml.jackson.databind.module.SimpleModule;
import com.fasterxml.jackson.databind.type.TypeFactory;
public class TestValueInstantiator extends BaseMapTest
{
private final ObjectMapper MAPPER = objectMapper();
public void testCustomBeanInstantiator() throws Exception;
public void ... | public abstract class ValueInstantiator
| package com.fasterxml.jackson.databind.deser.creators;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;
import com.fasterxml.jackson.core.Version;
import com.fasterxml.jackson.databind.*;
import com.fasterxml.jackson.databind.annotation.JsonValueInstantiator;
impo... | public void testCustomBeanInstantiator() throws Exception;
public void testCustomListInstantiator() throws Exception;
public void testCustomMapInstantiator() throws Exception;
public void testDelegateBeanInstantiator() throws Exception;
public void testDelegateListInstantiator() throws Exception;
... | c892e1de848c9302f438bc1a71b1bb499ee64d54e4276b0294ac4ffdfa4eaf01 | [
"com.fasterxml.jackson.databind.deser.creators.TestValueInstantiator::testDelegateBeanInstantiator"
] | public void testDelegateBeanInstantiator() throws Exception
| private final ObjectMapper MAPPER = objectMapper(); | JacksonDatabind | package com.fasterxml.jackson.databind.deser.creators;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;
import com.fasterxml.jackson.core.Version;
import com.fasterxml.jackson.databind.*;
import com.fasterxml.jackson.databind.annotation.JsonValueInstantiator;
imp... | [
{
"be_test_class_file": "com/fasterxml/jackson/databind/deser/ValueInstantiator.java",
"be_test_class_name": "com.fasterxml.jackson.databind.deser.ValueInstantiator",
"be_test_function_name": "canCreateFromInt",
"be_test_function_signature": "()Z",
"line_numbers": [
"88"
],
"method... | ||
public class DefaultKeyedValues2DTests extends TestCase | public void testSparsePopulation() {
DefaultKeyedValues2D d = new DefaultKeyedValues2D();
d.addValue(new Integer(11), "R1", "C1");
d.addValue(new Integer(22), "R2", "C2");
assertEquals(new Integer(11), d.getValue("R1", "C1"));
assertNull(d.getValue("R1", "C2"));
asse... | // // Abstract Java Tested Class
// package org.jfree.data;
//
// import java.io.Serializable;
// import java.util.Collections;
// import java.util.Iterator;
// import java.util.List;
// import org.jfree.chart.util.ObjectUtilities;
// import org.jfree.chart.util.PublicCloneable;
//
//
//
// public class DefaultKeye... | tests/org/jfree/data/junit/DefaultKeyedValues2DTests.java | package org.jfree.data;
import java.io.Serializable;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
import org.jfree.chart.util.ObjectUtilities;
import org.jfree.chart.util.PublicCloneable;
| public DefaultKeyedValues2D();
public DefaultKeyedValues2D(boolean sortRowKeys);
public int getRowCount();
public int getColumnCount();
public Number getValue(int row, int column);
public Comparable getRowKey(int row);
public int getRowIndex(Comparable key);
public List getRowKeys();
... | 194 | testSparsePopulation | ```java
// Abstract Java Tested Class
package org.jfree.data;
import java.io.Serializable;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
import org.jfree.chart.util.ObjectUtilities;
import org.jfree.chart.util.PublicCloneable;
public class DefaultKeyedValues2D implements KeyedValue... | 185 | // // Abstract Java Tested Class
// package org.jfree.data;
//
// import java.io.Serializable;
// import java.util.Collections;
// import java.util.Iterator;
// import java.util.List;
// import org.jfree.chart.util.ObjectUtilities;
// import org.jfree.chart.util.PublicCloneable;
//
//
//
// public class DefaultKeye... | /**
* Populates a data structure with sparse entries, then checks that
* the unspecified entries return null.
*/ | 1 | org.jfree.data.DefaultKeyedValues2D | tests | ```java
// Abstract Java Tested Class
package org.jfree.data;
import java.io.Serializable;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
import org.jfree.chart.util.ObjectUtilities;
import org.jfree.chart.util.PublicCloneable;
public class DefaultKeyedValues2D implements KeyedValue... | public class DefaultKeyedValues2D implements KeyedValues2D, PublicCloneable,
Cloneable, Serializable | package org.jfree.data.junit;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.ObjectInput;
import java.io.ObjectInputStream;
import java.io.ObjectOutput;
import java.io.ObjectOutputStream;
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.Tes... | public static Test suite();
public DefaultKeyedValues2DTests(String name);
public void testGetValue();
public void testCloning();
public void testSerialization();
public void testEquals();
public void testSparsePopulation();
public void testRowCount();
public void testColumnCount();
... | c8e63e8dffe338f2f05ffaf3f5b701219adfe644a8a7f32fd319e77b1dfc3476 | [
"org.jfree.data.junit.DefaultKeyedValues2DTests::testSparsePopulation"
] | private static final long serialVersionUID = -5514169970951994748L;
private List rowKeys;
private List columnKeys;
private List rows;
private boolean sortRowKeys; | public void testSparsePopulation() | private static final double EPSILON = 0.0000000001; | Chart | /* ===========================================================
* JFreeChart : a free chart library for the Java(tm) platform
* ===========================================================
*
* (C) Copyright 2000-2007, by Object Refinery Limited and Contributors.
*
* Project Info: http://www.jfree.org/jfreechart/in... | [
{
"be_test_class_file": "org/jfree/data/DefaultKeyedValues2D.java",
"be_test_class_name": "org.jfree.data.DefaultKeyedValues2D",
"be_test_function_name": "addValue",
"be_test_function_signature": "(Ljava/lang/Number;Ljava/lang/Comparable;Ljava/lang/Comparable;)V",
"line_numbers": [
"304",
... | |
public class TimedSemaphoreTest | @Test
public void testAcquireMultiplePeriods() throws InterruptedException {
final int count = 1000;
final TimedSemaphoreTestImpl semaphore = new TimedSemaphoreTestImpl(
PERIOD / 10, TimeUnit.MILLISECONDS, 1);
semaphore.setLimit(count / 4);
final CountDownLatch la... | // // Abstract Java Tested Class
// package org.apache.commons.lang3.concurrent;
//
// import java.util.concurrent.ScheduledExecutorService;
// import java.util.concurrent.ScheduledFuture;
// import java.util.concurrent.ScheduledThreadPoolExecutor;
// import java.util.concurrent.TimeUnit;
//
//
//
// public class T... | src/test/java/org/apache/commons/lang3/concurrent/TimedSemaphoreTest.java | package org.apache.commons.lang3.concurrent;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.ScheduledFuture;
import java.util.concurrent.ScheduledThreadPoolExecutor;
import java.util.concurrent.TimeUnit;
| public TimedSemaphore(final long timePeriod, final TimeUnit timeUnit, final int limit);
public TimedSemaphore(final ScheduledExecutorService service, final long timePeriod,
final TimeUnit timeUnit, final int limit);
public final synchronized int getLimit();
public final synchronized void set... | 319 | testAcquireMultiplePeriods | ```java
// Abstract Java Tested Class
package org.apache.commons.lang3.concurrent;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.ScheduledFuture;
import java.util.concurrent.ScheduledThreadPoolExecutor;
import java.util.concurrent.TimeUnit;
public class TimedSemaphore {
publ... | 307 | // // Abstract Java Tested Class
// package org.apache.commons.lang3.concurrent;
//
// import java.util.concurrent.ScheduledExecutorService;
// import java.util.concurrent.ScheduledFuture;
// import java.util.concurrent.ScheduledThreadPoolExecutor;
// import java.util.concurrent.TimeUnit;
//
//
//
// public class T... | /**
* Tests a bigger number of invocations that span multiple periods. The
* period is set to a very short time. A background thread calls the
* semaphore a large number of times. While it runs at last one end of a
* period should be reached.
*/ | 1 | org.apache.commons.lang3.concurrent.TimedSemaphore | src/test/java | ```java
// Abstract Java Tested Class
package org.apache.commons.lang3.concurrent;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.ScheduledFuture;
import java.util.concurrent.ScheduledThreadPoolExecutor;
import java.util.concurrent.TimeUnit;
public class TimedSemaphore {
publ... | public class TimedSemaphore | package org.apache.commons.lang3.concurrent;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
import java.util.concurrent.CountDownLatch;
import java.uti... | @Test
public void testInit();
@Test(expected = IllegalArgumentException.class)
public void testInitInvalidPeriod();
@Test
public void testInitDefaultService();
@Test
public void testStartTimer() throws InterruptedException;
@Test
public void testShutdownOwnExecutor();
@Test
... | c8ebe5676b4c29d84dc7ab480647cd9e2e4d7b29d5076b851edaf62acdf6abb7 | [
"org.apache.commons.lang3.concurrent.TimedSemaphoreTest::testAcquireMultiplePeriods"
] | public static final int NO_LIMIT = 0;
private static final int THREAD_POOL_SIZE = 1;
private final ScheduledExecutorService executorService;
private final long period;
private final TimeUnit unit;
private final boolean ownExecutor;
private ScheduledFuture<?> task;
private long totalAcqui... | @Test
public void testAcquireMultiplePeriods() throws InterruptedException | private static final long PERIOD = 500;
private static final TimeUnit UNIT = TimeUnit.MILLISECONDS;
private static final int LIMIT = 10; | Lang | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | [
{
"be_test_class_file": "org/apache/commons/lang3/concurrent/TimedSemaphore.java",
"be_test_class_name": "org.apache.commons.lang3.concurrent.TimedSemaphore",
"be_test_function_name": "acquire",
"be_test_function_signature": "()V",
"line_numbers": [
"293",
"294",
"297",
"... | |
public class XYPlotTests extends TestCase | public void testSerialization5() {
XYSeriesCollection dataset1 = new XYSeriesCollection();
NumberAxis domainAxis1 = new NumberAxis("Domain 1");
NumberAxis rangeAxis1 = new NumberAxis("Range 1");
StandardXYItemRenderer renderer1 = new StandardXYItemRenderer();
XYPlot p1 = new ... | // public AxisSpace getFixedRangeAxisSpace();
// public void setFixedRangeAxisSpace(AxisSpace space);
// public void setFixedRangeAxisSpace(AxisSpace space, boolean notify);
// public boolean isDomainPannable();
// public void setDomainPannable(boolean pannable);
// public boolean isRangePannabl... | tests/org/jfree/chart/plot/junit/XYPlotTests.java | package org.jfree.chart.plot;
import java.awt.AlphaComposite;
import java.awt.BasicStroke;
import java.awt.Color;
import java.awt.Composite;
import java.awt.Graphics2D;
import java.awt.Paint;
import java.awt.Rectangle;
import java.awt.Shape;
import java.awt.Stroke;
import java.awt.geom.GeneralPath;
import java.awt.geo... | public XYPlot();
public XYPlot(XYDataset dataset,
ValueAxis domainAxis,
ValueAxis rangeAxis,
XYItemRenderer renderer);
public String getPlotType();
public PlotOrientation getOrientation();
public void setOrientation(PlotOrientation orientation);
... | 912 | testSerialization5 | ```java
public AxisSpace getFixedRangeAxisSpace();
public void setFixedRangeAxisSpace(AxisSpace space);
public void setFixedRangeAxisSpace(AxisSpace space, boolean notify);
public boolean isDomainPannable();
public void setDomainPannable(boolean pannable);
public boolean isRangePannable();
p... | 861 | // public AxisSpace getFixedRangeAxisSpace();
// public void setFixedRangeAxisSpace(AxisSpace space);
// public void setFixedRangeAxisSpace(AxisSpace space, boolean notify);
// public boolean isDomainPannable();
// public void setDomainPannable(boolean pannable);
// public boolean isRangePannabl... | /**
* Tests a bug where the plot is no longer registered as a listener
* with the dataset(s) and axes after deserialization. See patch 1209475
* at SourceForge.
*/ | 1 | org.jfree.chart.plot.XYPlot | tests | ```java
public AxisSpace getFixedRangeAxisSpace();
public void setFixedRangeAxisSpace(AxisSpace space);
public void setFixedRangeAxisSpace(AxisSpace space, boolean notify);
public boolean isDomainPannable();
public void setDomainPannable(boolean pannable);
public boolean isRangePannable();
p... | public class XYPlot extends Plot implements ValueAxisPlot, Pannable,
Selectable, Zoomable, RendererChangeListener, Cloneable,
PublicCloneable, Serializable | package org.jfree.chart.plot.junit;
import java.awt.BasicStroke;
import java.awt.Color;
import java.awt.GradientPaint;
import java.awt.Graphics2D;
import java.awt.Stroke;
import java.awt.geom.Point2D;
import java.awt.geom.Rectangle2D;
import java.awt.image.BufferedImage;
import java.io.ByteArrayInputStream;
import jav... | public static Test suite();
public XYPlotTests(String name);
public void testEquals();
public void testCloning();
public void testCloning2();
public void testCloning3();
public void testCloning4();
public void testCloning_QuadrantOrigin();
public void testCloning_QuadrantPaint();
... | ccc3f835b76c2191424ae611b538bac96922f8431f3756587e31025291ded0ee | [
"org.jfree.chart.plot.junit.XYPlotTests::testSerialization5"
] | private static final long serialVersionUID = 7044148245716569264L;
public static final Stroke DEFAULT_GRIDLINE_STROKE = new BasicStroke(0.5f,
BasicStroke.CAP_BUTT, BasicStroke.JOIN_BEVEL, 0.0f,
new float[] {2.0f, 2.0f}, 0.0f);
public static final Paint DEFAULT_GRIDLINE_PAINT = Color.... | public void testSerialization5() | Chart | /* ===========================================================
* JFreeChart : a free chart library for the Java(tm) platform
* ===========================================================
*
* (C) Copyright 2000-2009, by Object Refinery Limited and Contributors.
*
* Project Info: http://www.jfree.org/jfreechart/in... | [
{
"be_test_class_file": "org/jfree/chart/plot/XYPlot.java",
"be_test_class_name": "org.jfree.chart.plot.XYPlot",
"be_test_function_name": "checkAxisIndices",
"be_test_function_signature": "(Ljava/util/List;)V",
"line_numbers": [
"1559",
"1560",
"1562",
"1563",
"1564... | ||
public class SkippingIteratorTest<E> extends AbstractIteratorTest<E> | @Test
public void testRemoveWithoutCallingNext() {
List<E> testListCopy = new ArrayList<E>(testList);
Iterator<E> iter = new SkippingIterator<E>(testListCopy.iterator(), 1);
try {
iter.remove();
fail("Expected IllegalStateException.");
} catch (IllegalSta... | // // Abstract Java Tested Class
// package org.apache.commons.collections4.iterators;
//
// import java.util.Iterator;
//
//
//
// public class SkippingIterator<E> extends AbstractIteratorDecorator<E> {
// private final long offset;
// private long pos;
//
// public SkippingIterator(final Iterator<E>... | src/test/java/org/apache/commons/collections4/iterators/SkippingIteratorTest.java | package org.apache.commons.collections4.iterators;
import java.util.Iterator;
| public SkippingIterator(final Iterator<E> iterator, final long offset);
private void init();
@Override
public E next();
@Override
public void remove(); | 165 | testRemoveWithoutCallingNext | ```java
// Abstract Java Tested Class
package org.apache.commons.collections4.iterators;
import java.util.Iterator;
public class SkippingIterator<E> extends AbstractIteratorDecorator<E> {
private final long offset;
private long pos;
public SkippingIterator(final Iterator<E> iterator, final long offset... | 155 | // // Abstract Java Tested Class
// package org.apache.commons.collections4.iterators;
//
// import java.util.Iterator;
//
//
//
// public class SkippingIterator<E> extends AbstractIteratorDecorator<E> {
// private final long offset;
// private long pos;
//
// public SkippingIterator(final Iterator<E>... | /**
* Test the <code>remove()</code> method being called without
* <code>next()</code> being called first.
*/ | 28 | org.apache.commons.collections4.iterators.SkippingIterator | src/test/java | ```java
// Abstract Java Tested Class
package org.apache.commons.collections4.iterators;
import java.util.Iterator;
public class SkippingIterator<E> extends AbstractIteratorDecorator<E> {
private final long offset;
private long pos;
public SkippingIterator(final Iterator<E> iterator, final long offset... | public class SkippingIterator<E> extends AbstractIteratorDecorator<E> | package org.apache.commons.collections4.iterators;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
import java.util.NoSuchElementException;
import org.junit.Test;
| public SkippingIteratorTest(final String testName);
@SuppressWarnings("unchecked")
@Override
public void setUp()
throws Exception;
@Override
public Iterator<E> makeEmptyIterator();
@Override
public Iterator<E> makeObject();
@Test
public void testSkipping();
@Test
... | cd77aae2eddfd9a0330a334e4cf52479dc26580112ecd50147c2fd946f37bd99 | [
"org.apache.commons.collections4.iterators.SkippingIteratorTest::testRemoveWithoutCallingNext"
] | private final long offset;
private long pos; | @Test
public void testRemoveWithoutCallingNext() | private final String[] testArray = {
"a", "b", "c", "d", "e", "f", "g"
};
private List<E> testList; | Collections | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with this
* work for additional information regarding copyright ownership. The ASF
* licenses this file to You under the Apache License, Version 2.0 (the
* "License"); you may n... | [
{
"be_test_class_file": "org/apache/commons/collections4/iterators/SkippingIterator.java",
"be_test_class_name": "org.apache.commons.collections4.iterators.SkippingIterator",
"be_test_function_name": "init",
"be_test_function_signature": "()V",
"line_numbers": [
"66",
"67",
"69... | |
public class FastDatePrinterTest | @Test
public void testSimpleDate() {
final Calendar cal = Calendar.getInstance();
final DatePrinter format = getInstance(YYYY_MM_DD);
cal.set(2004,11,31);
assertEquals("2004/12/31", format.format(cal));
cal.set(999,11,31);
assertEquals("0999/12/31", format.format... | // private String applyRulesToString(final Calendar c);
// private GregorianCalendar newCalendar();
// @Override
// public String format(final Date date);
// @Override
// public String format(final Calendar calendar);
// @Override
// public StringBuffer format(final long millis, final St... | src/test/java/org/apache/commons/lang3/time/FastDatePrinterTest.java | package org.apache.commons.lang3.time;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.Serializable;
import java.text.DateFormat;
import java.text.DateFormatSymbols;
import java.text.FieldPosition;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.ut... | protected FastDatePrinter(final String pattern, final TimeZone timeZone, final Locale locale);
private void init();
protected List<Rule> parsePattern();
protected String parseToken(final String pattern, final int[] indexRef);
protected NumberRule selectNumberRule(final int field, final int padding);... | 189 | testSimpleDate | ```java
private String applyRulesToString(final Calendar c);
private GregorianCalendar newCalendar();
@Override
public String format(final Date date);
@Override
public String format(final Calendar calendar);
@Override
public StringBuffer format(final long millis, final StringBuffer buf);... | 178 | // private String applyRulesToString(final Calendar c);
// private GregorianCalendar newCalendar();
// @Override
// public String format(final Date date);
// @Override
// public String format(final Calendar calendar);
// @Override
// public StringBuffer format(final long millis, final St... | /**
* testLowYearPadding showed that the date was buggy
* This test confirms it, getting 366 back as a date
*/ | 1 | org.apache.commons.lang3.time.FastDatePrinter | src/test/java | ```java
private String applyRulesToString(final Calendar c);
private GregorianCalendar newCalendar();
@Override
public String format(final Date date);
@Override
public String format(final Calendar calendar);
@Override
public StringBuffer format(final long millis, final StringBuffer buf);... | public class FastDatePrinter implements DatePrinter, Serializable | package org.apache.commons.lang3.time;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java... | DatePrinter getInstance(final String format);
private DatePrinter getDateInstance(final int dateStyle, final Locale locale);
private DatePrinter getInstance(final String format, final Locale locale);
private DatePrinter getInstance(final String format, final TimeZone timeZone);
protected DatePrinter... | cdeabde133262f04e0cf9635cfc038c1d8e37ce689468f1126beae700582edfb | [
"org.apache.commons.lang3.time.FastDatePrinterTest::testSimpleDate"
] | private static final long serialVersionUID = 1L;
public static final int FULL = DateFormat.FULL;
public static final int LONG = DateFormat.LONG;
public static final int MEDIUM = DateFormat.MEDIUM;
public static final int SHORT = DateFormat.SHORT;
private final String mPattern;
private final ... | @Test
public void testSimpleDate() | private static final String YYYY_MM_DD = "yyyy/MM/dd";
private static final TimeZone NEW_YORK = TimeZone.getTimeZone("America/New_York");
private static final Locale SWEDEN = new Locale("sv", "SE"); | Lang | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | [
{
"be_test_class_file": "org/apache/commons/lang3/time/FastDatePrinter.java",
"be_test_class_name": "org.apache.commons.lang3.time.FastDatePrinter",
"be_test_function_name": "applyRules",
"be_test_function_signature": "(Ljava/util/Calendar;Ljava/lang/StringBuffer;)Ljava/lang/StringBuffer;",
"lin... | |
public class ChartPanelTests extends TestCase
implements ChartChangeListener, ChartMouseListener | public void test2502355_zoomOutDomain() {
DefaultXYDataset dataset = new DefaultXYDataset();
JFreeChart chart = ChartFactory.createXYLineChart("TestChart", "X",
"Y", dataset, false);
XYPlot plot = (XYPlot) chart.getPlot();
plot.setDomainAxis(1, new NumberAxis("X2"));
... | // public int getZoomTriggerDistance();
// public void setZoomTriggerDistance(int distance);
// public File getDefaultDirectoryForSaveAs();
// public void setDefaultDirectoryForSaveAs(File directory);
// public boolean isEnforceFileExtensions();
// public void setEnforceFileExtensions(boolean en... | tests/org/jfree/chart/junit/ChartPanelTests.java | package org.jfree.chart;
import java.awt.AWTEvent;
import java.awt.AlphaComposite;
import java.awt.BasicStroke;
import java.awt.Color;
import java.awt.Composite;
import java.awt.Dimension;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.GraphicsConfiguration;
import java.awt.Image;
import java.aw... | public ChartPanel(JFreeChart chart);
public ChartPanel(JFreeChart chart, boolean useBuffer);
public ChartPanel(JFreeChart chart,
boolean properties,
boolean save,
boolean print,
boolean zoom,
boolea... | 283 | test2502355_zoomOutDomain | ```java
public int getZoomTriggerDistance();
public void setZoomTriggerDistance(int distance);
public File getDefaultDirectoryForSaveAs();
public void setDefaultDirectoryForSaveAs(File directory);
public boolean isEnforceFileExtensions();
public void setEnforceFileExtensions(boolean enforce);
... | 272 | // public int getZoomTriggerDistance();
// public void setZoomTriggerDistance(int distance);
// public File getDefaultDirectoryForSaveAs();
// public void setDefaultDirectoryForSaveAs(File directory);
// public boolean isEnforceFileExtensions();
// public void setEnforceFileExtensions(boolean en... | /**
* Checks that a call to the zoomOutDomain() method, for a plot with more
* than one domain axis, generates just one ChartChangeEvent.
*/ | 1 | org.jfree.chart.ChartPanel | tests | ```java
public int getZoomTriggerDistance();
public void setZoomTriggerDistance(int distance);
public File getDefaultDirectoryForSaveAs();
public void setDefaultDirectoryForSaveAs(File directory);
public boolean isEnforceFileExtensions();
public void setEnforceFileExtensions(boolean enforce);
... | public class ChartPanel extends JPanel implements ChartChangeListener,
ChartProgressListener, ActionListener, MouseListener,
MouseMotionListener, OverlayChangeListener, RenderingSource,
Printable, Serializable | package org.jfree.chart.junit;
import java.awt.geom.Rectangle2D;
import java.util.EventListener;
import java.util.List;
import javax.swing.event.CaretListener;
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
import org.jfree.chart.ChartFactory;
import org.jfree.chart.Cha... | public void chartChanged(ChartChangeEvent event);
public static Test suite();
public ChartPanelTests(String name);
public void testConstructor1();
public void testSetChart();
public void testGetListeners();
public void chartMouseClicked(ChartMouseEvent event);
public void chartMouseMoved... | d03f00b10aef927f1691eedb38478d23448508a9d5637591954e03bf4961219f | [
"org.jfree.chart.junit.ChartPanelTests::test2502355_zoomOutDomain"
] | private static final long serialVersionUID = 6046366297214274674L;
public static final boolean DEFAULT_BUFFER_USED = true;
public static final int DEFAULT_WIDTH = 680;
public static final int DEFAULT_HEIGHT = 420;
public static final int DEFAULT_MINIMUM_DRAW_WIDTH = 300;
public static final int ... | public void test2502355_zoomOutDomain() | private List chartChangeEvents = new java.util.ArrayList(); | Chart | /* ===========================================================
* JFreeChart : a free chart library for the Java(tm) platform
* ===========================================================
*
* (C) Copyright 2000-2009, by Object Refinery Limited and Contributors.
*
* Project Info: http://www.jfree.org/jfreechart/in... | [
{
"be_test_class_file": "org/jfree/chart/ChartPanel.java",
"be_test_class_name": "org.jfree.chart.ChartPanel",
"be_test_function_name": "chartChanged",
"be_test_function_signature": "(Lorg/jfree/chart/event/ChartChangeEvent;)V",
"line_numbers": [
"1746",
"1747",
"1748",
"... | |
public class BeanUtilTest extends BaseMapTest
| public void testNameMangle()
{
assertEquals("foo", BeanUtil.legacyManglePropertyName("getFoo", 3));
assertEquals("foo", BeanUtil.stdManglePropertyName("getFoo", 3));
assertEquals("url", BeanUtil.legacyManglePropertyName("getURL", 3));
assertEquals("URL", BeanUtil.stdMangleProper... | // // Abstract Java Tested Class
// package com.fasterxml.jackson.databind.util;
//
// import java.util.Calendar;
// import java.util.Date;
// import java.util.GregorianCalendar;
// import com.fasterxml.jackson.annotation.JsonInclude;
// import com.fasterxml.jackson.databind.JavaType;
// import com.fasterxml.jackson.d... | src/test/java/com/fasterxml/jackson/databind/util/BeanUtilTest.java | package com.fasterxml.jackson.databind.util;
import java.util.Calendar;
import java.util.Date;
import java.util.GregorianCalendar;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.JavaType;
import com.fasterxml.jackson.databind.introspect.AnnotatedMethod;
| public static String okNameForGetter(AnnotatedMethod am, boolean stdNaming);
public static String okNameForRegularGetter(AnnotatedMethod am, String name,
boolean stdNaming);
public static String okNameForIsGetter(AnnotatedMethod am, String name,
boolean stdNaming);
@Deprecated //... | 44 | testNameMangle | ```java
// Abstract Java Tested Class
package com.fasterxml.jackson.databind.util;
import java.util.Calendar;
import java.util.Date;
import java.util.GregorianCalendar;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.JavaType;
import com.fasterxml.jackson.databind.introspect.... | 37 | // // Abstract Java Tested Class
// package com.fasterxml.jackson.databind.util;
//
// import java.util.Calendar;
// import java.util.Date;
// import java.util.GregorianCalendar;
// import com.fasterxml.jackson.annotation.JsonInclude;
// import com.fasterxml.jackson.databind.JavaType;
// import com.fasterxml.jackson.d... | /*
/**********************************************************
/* Test methods
/**********************************************************
*/ | 112 | com.fasterxml.jackson.databind.util.BeanUtil | src/test/java | ```java
// Abstract Java Tested Class
package com.fasterxml.jackson.databind.util;
import java.util.Calendar;
import java.util.Date;
import java.util.GregorianCalendar;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.JavaType;
import com.fasterxml.jackson.databind.introspect.... | public class BeanUtil
| package com.fasterxml.jackson.databind.util;
import java.util.*;
import java.util.concurrent.atomic.AtomicReference;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.BaseMapTest;
import com.fasterxml.jackson.databind.introspect.AnnotatedMethod;
import com.fasterxml.jackson.dat... | public void testNameMangle();
public void testGetDefaultValue();
public void testIsGetter() throws Exception;
public void testOkNameForGetter() throws Exception;
public void testOkNameForSetter() throws Exception;
private void _testIsGetter(String name, String expName) throws Exception;
priv... | d2a8b55e34c76fa7d54a0a007cfc8696653fa9aecca00b6092a29f12c40c02e1 | [
"com.fasterxml.jackson.databind.util.BeanUtilTest::testNameMangle"
] | public void testNameMangle()
| JacksonDatabind | package com.fasterxml.jackson.databind.util;
import java.util.*;
import java.util.concurrent.atomic.AtomicReference;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.BaseMapTest;
import com.fasterxml.jackson.databind.introspect.AnnotatedMethod;
import com.fasterxml.jackson.da... | [
{
"be_test_class_file": "com/fasterxml/jackson/databind/util/BeanUtil.java",
"be_test_class_name": "com.fasterxml.jackson.databind.util.BeanUtil",
"be_test_function_name": "legacyManglePropertyName",
"be_test_function_signature": "(Ljava/lang/String;I)Ljava/lang/String;",
"line_numbers": [
... | |||
public class TestTypeFactory
extends BaseMapTest
| public void testSimpleTypes()
{
Class<?>[] classes = new Class<?>[] {
boolean.class, byte.class, char.class,
short.class, int.class, long.class,
float.class, double.class,
Boolean.class, Byte.class, Character.class,
Short.class, In... | // private String _resolveTypePlaceholders(JavaType sourceType, JavaType actualType)
// throws IllegalArgumentException;
// private boolean _verifyAndResolvePlaceholders(JavaType exp, JavaType act);
// public JavaType constructGeneralizedType(JavaType baseType, Class<?> superClass);
// public Ja... | src/test/java/com/fasterxml/jackson/databind/type/TestTypeFactory.java | package com.fasterxml.jackson.databind.type;
import java.util.*;
import java.util.concurrent.atomic.AtomicReference;
import java.lang.reflect.*;
import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.JavaType;
import com.fasterxml.jackson.databind.util.ArrayBuilders;
import com.fas... | private TypeFactory();
protected TypeFactory(LRUMap<Object,JavaType> typeCache);
protected TypeFactory(LRUMap<Object,JavaType> typeCache, TypeParser p,
TypeModifier[] mods, ClassLoader classLoader);
public TypeFactory withModifier(TypeModifier mod);
public TypeFactory withClassLoader(Cla... | 106 | testSimpleTypes | ```java
private String _resolveTypePlaceholders(JavaType sourceType, JavaType actualType)
throws IllegalArgumentException;
private boolean _verifyAndResolvePlaceholders(JavaType exp, JavaType act);
public JavaType constructGeneralizedType(JavaType baseType, Class<?> superClass);
public JavaType ... | 83 | // private String _resolveTypePlaceholders(JavaType sourceType, JavaType actualType)
// throws IllegalArgumentException;
// private boolean _verifyAndResolvePlaceholders(JavaType exp, JavaType act);
// public JavaType constructGeneralizedType(JavaType baseType, Class<?> superClass);
// public Ja... | /*
/**********************************************************
/* Unit tests
/**********************************************************
*/ | 112 | com.fasterxml.jackson.databind.type.TypeFactory | src/test/java | ```java
private String _resolveTypePlaceholders(JavaType sourceType, JavaType actualType)
throws IllegalArgumentException;
private boolean _verifyAndResolvePlaceholders(JavaType exp, JavaType act);
public JavaType constructGeneralizedType(JavaType baseType, Class<?> superClass);
public JavaType ... | @SuppressWarnings({"rawtypes" })
public final class TypeFactory
implements java.io.Serializable
| package com.fasterxml.jackson.databind.type;
import java.lang.reflect.Field;
import java.util.*;
import java.util.concurrent.atomic.AtomicReference;
import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.*;
| public void testSimpleTypes();
public void testArrays();
public void testProperties();
public void testIterator();
@SuppressWarnings("deprecation")
public void testParametricTypes();
public void testCanonicalNames();
@SuppressWarnings("serial")
public void testCanonicalWithSpaces();
... | d55b8b4a9e2f30749242902fd5c41596b22e8a1ab9470e6c4097279088b645b1 | [
"com.fasterxml.jackson.databind.type.TestTypeFactory::testSimpleTypes"
] | private static final long serialVersionUID = 1L;
private final static JavaType[] NO_TYPES = new JavaType[0];
protected final static TypeFactory instance = new TypeFactory();
protected final static TypeBindings EMPTY_BINDINGS = TypeBindings.emptyBindings();
private final static Class<?> CLS_STRING = ... | public void testSimpleTypes()
| JacksonDatabind | package com.fasterxml.jackson.databind.type;
import java.lang.reflect.Field;
import java.util.*;
import java.util.concurrent.atomic.AtomicReference;
import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.*;
/**
* Simple tests to verify that the {@link TypeFactory} constructs
* ... | [
{
"be_test_class_file": "com/fasterxml/jackson/databind/type/TypeFactory.java",
"be_test_class_name": "com.fasterxml.jackson.databind.type.TypeFactory",
"be_test_function_name": "_findWellKnownSimple",
"be_test_function_signature": "(Ljava/lang/Class;)Lcom/fasterxml/jackson/databind/JavaType;",
... | ||
public class SerialUtilitiesTests extends TestCase | public void testRectangle2DDoubleSerialization() {
Rectangle2D r1 = new Rectangle2D.Double(1.0, 2.0, 3.0, 4.0);
Rectangle2D r2 = null;
try {
ByteArrayOutputStream buffer = new ByteArrayOutputStream();
ObjectOutputStream out = new ObjectOutputStream(buffer);
... | // // Abstract Java Tested Class
// package org.jfree.chart.util;
//
// import java.awt.BasicStroke;
// import java.awt.Color;
// import java.awt.GradientPaint;
// import java.awt.Graphics2D;
// import java.awt.Image;
// import java.awt.Paint;
// import java.awt.Shape;
// import java.awt.Stroke;
// import java.awt.geo... | tests/org/jfree/chart/util/junit/SerialUtilitiesTests.java | package org.jfree.chart.util;
import java.awt.BasicStroke;
import java.awt.Color;
import java.awt.GradientPaint;
import java.awt.Graphics2D;
import java.awt.Image;
import java.awt.Paint;
import java.awt.Shape;
import java.awt.Stroke;
import java.awt.geom.Arc2D;
import java.awt.geom.Ellipse2D;
import java.awt.geom.Gene... | private SerialUtilities();
public static boolean isSerializable(Class c);
public static Paint readPaint(ObjectInputStream stream)
throws IOException, ClassNotFoundException;
public static void writePaint(Paint paint, ObjectOutputStream stream)
throws IOException;
public static St... | 324 | testRectangle2DDoubleSerialization | ```java
// Abstract Java Tested Class
package org.jfree.chart.util;
import java.awt.BasicStroke;
import java.awt.Color;
import java.awt.GradientPaint;
import java.awt.Graphics2D;
import java.awt.Image;
import java.awt.Paint;
import java.awt.Shape;
import java.awt.Stroke;
import java.awt.geom.Arc2D;
import java.awt.geo... | 305 | // // Abstract Java Tested Class
// package org.jfree.chart.util;
//
// import java.awt.BasicStroke;
// import java.awt.Color;
// import java.awt.GradientPaint;
// import java.awt.Graphics2D;
// import java.awt.Image;
// import java.awt.Paint;
// import java.awt.Shape;
// import java.awt.Stroke;
// import java.awt.geo... | /**
* Serialize a <code>Rectangle2D.Double</code> instance and check that it
* can be deserialized correctly.
*/ | 1 | org.jfree.chart.util.SerialUtilities | tests | ```java
// Abstract Java Tested Class
package org.jfree.chart.util;
import java.awt.BasicStroke;
import java.awt.Color;
import java.awt.GradientPaint;
import java.awt.Graphics2D;
import java.awt.Image;
import java.awt.Paint;
import java.awt.Shape;
import java.awt.Stroke;
import java.awt.geom.Arc2D;
import java.awt.geo... | public class SerialUtilities | package org.jfree.chart.util.junit;
import java.awt.Color;
import java.awt.GradientPaint;
import java.awt.Paint;
import java.awt.TexturePaint;
import java.awt.font.TextAttribute;
import java.awt.geom.Arc2D;
import java.awt.geom.GeneralPath;
import java.awt.geom.Line2D;
import java.awt.geom.Rectangle2D;
import java.awt... | public static Test suite();
public SerialUtilitiesTests(final String name);
public void testIsSerializable();
public void testColorSerialization();
public void testColorUIResourceSerialization();
public void testGradientPaintSerialization();
public void testTexturePaintSerialization();
p... | d5eebc1a9a5c82af6f930170bdea3ca2b66187cdd0fbfac6b3f0fa9b68a82379 | [
"org.jfree.chart.util.junit.SerialUtilitiesTests::testRectangle2DDoubleSerialization"
] | public void testRectangle2DDoubleSerialization() | Chart | /* ===========================================================
* JFreeChart : a free chart library for the Java(tm) platform
* ===========================================================
*
* (C) Copyright 2000-2008, by Object Refinery Limited and Contributors.
*
* Project Info: http://www.jfree.org/jfreechart/in... | [
{
"be_test_class_file": "org/jfree/chart/util/SerialUtilities.java",
"be_test_class_name": "org.jfree.chart.util.SerialUtilities",
"be_test_function_name": "class$",
"be_test_function_signature": "(Ljava/lang/String;)Ljava/lang/Class;",
"line_numbers": [
"101"
],
"method_line_rate"... | |||
public class PowellOptimizerTest | @Test
public void testRelativeToleranceOnScaledValues() {
final MultivariateFunction func = new MultivariateFunction() {
public double value(double[] x) {
final double a = x[0] - 1;
final double b = x[1] - 1;
return a * a * Fast... | // // Abstract Java Tested Class
// package org.apache.commons.math3.optim.nonlinear.scalar.noderiv;
//
// import org.apache.commons.math3.util.FastMath;
// import org.apache.commons.math3.util.MathArrays;
// import org.apache.commons.math3.analysis.UnivariateFunction;
// import org.apache.commons.math3.exception.Numb... | src/test/java/org/apache/commons/math3/optim/nonlinear/scalar/noderiv/PowellOptimizerTest.java | package org.apache.commons.math3.optim.nonlinear.scalar.noderiv;
import org.apache.commons.math3.util.FastMath;
import org.apache.commons.math3.util.MathArrays;
import org.apache.commons.math3.analysis.UnivariateFunction;
import org.apache.commons.math3.exception.NumberIsTooSmallException;
import org.apache.commons.ma... | public PowellOptimizer(double rel,
double abs,
ConvergenceChecker<PointValuePair> checker);
public PowellOptimizer(double rel,
double abs,
double lineRel,
double lineAbs,
... | 202 | testRelativeToleranceOnScaledValues | ```java
// Abstract Java Tested Class
package org.apache.commons.math3.optim.nonlinear.scalar.noderiv;
import org.apache.commons.math3.util.FastMath;
import org.apache.commons.math3.util.MathArrays;
import org.apache.commons.math3.analysis.UnivariateFunction;
import org.apache.commons.math3.exception.NumberIsTooSmallE... | 146 | // // Abstract Java Tested Class
// package org.apache.commons.math3.optim.nonlinear.scalar.noderiv;
//
// import org.apache.commons.math3.util.FastMath;
// import org.apache.commons.math3.util.MathArrays;
// import org.apache.commons.math3.analysis.UnivariateFunction;
// import org.apache.commons.math3.exception.Numb... | /**
* Ensure that we do not increase the number of function evaluations when
* the function values are scaled up.
* Note that the tolerances parameters passed to the constructor must
* still hold sensible values because they are used to set the line search
* tolerances.
*/ | 1 | org.apache.commons.math3.optim.nonlinear.scalar.noderiv.PowellOptimizer | src/test/java | ```java
// Abstract Java Tested Class
package org.apache.commons.math3.optim.nonlinear.scalar.noderiv;
import org.apache.commons.math3.util.FastMath;
import org.apache.commons.math3.util.MathArrays;
import org.apache.commons.math3.analysis.UnivariateFunction;
import org.apache.commons.math3.exception.NumberIsTooSmallE... | public class PowellOptimizer
extends MultivariateOptimizer | package org.apache.commons.math3.optim.nonlinear.scalar.noderiv;
import org.apache.commons.math3.analysis.MultivariateFunction;
import org.apache.commons.math3.analysis.SumSincFunction;
import org.apache.commons.math3.optim.PointValuePair;
import org.apache.commons.math3.optim.InitialGuess;
import org.apache.commons.m... | @Test(expected=MathUnsupportedOperationException.class)
public void testBoundsUnsupported();
@Test
public void testSumSinc();
@Test
public void testQuadratic();
@Test
public void testMaximizeQuadratic();
@Test
public void testRelativeToleranceOnScaledValues();
private void do... | d7277214b6da65cdff7c560aaf3249fb7cfc47ba30f5cd576fd6c92a9e34d1d8 | [
"org.apache.commons.math3.optim.nonlinear.scalar.noderiv.PowellOptimizerTest::testRelativeToleranceOnScaledValues"
] | private static final double MIN_RELATIVE_TOLERANCE = 2 * FastMath.ulp(1d);
private final double relativeThreshold;
private final double absoluteThreshold;
private final LineSearch line; | @Test
public void testRelativeToleranceOnScaledValues() | Math | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | [
{
"be_test_class_file": "org/apache/commons/math3/optim/nonlinear/scalar/noderiv/PowellOptimizer.java",
"be_test_class_name": "org.apache.commons.math3.optim.nonlinear.scalar.noderiv.PowellOptimizer",
"be_test_function_name": "access$000",
"be_test_function_signature": "(Lorg/apache/commons/math3/op... | ||
public class TypeCheckTest extends CompilerTypeTestCase | public void testBug592170() throws Exception {
testTypes(
"/** @param {Function} opt_f ... */" +
"function foo(opt_f) {" +
" /** @type {Function} */" +
" return opt_f || function () {};" +
"}",
"Type annotations are not allowed here. Are you missing parentheses?")... | // public void testLends3() throws Exception;
// public void testLends4() throws Exception;
// public void testLends5() throws Exception;
// public void testLends6() throws Exception;
// public void testLends7() throws Exception;
// public void testLends8() throws Exception;
// public void testLends9() th... | test/com/google/javascript/jscomp/TypeCheckTest.java | package com.google.javascript.jscomp;
import static com.google.javascript.rhino.jstype.JSTypeNative.ARRAY_TYPE;
import static com.google.javascript.rhino.jstype.JSTypeNative.BOOLEAN_TYPE;
import static com.google.javascript.rhino.jstype.JSTypeNative.NULL_TYPE;
import static com.google.javascript.rhino.jstype.JSTypeNat... | public TypeCheck(AbstractCompiler compiler,
ReverseAbstractInterpreter reverseInterpreter,
JSTypeRegistry typeRegistry,
Scope topScope,
MemoizedScopeCreator scopeCreator,
CheckLevel reportMissingOverride);
public TypeCheck(AbstractCompiler compiler,
ReverseAbstractInterpreter rev... | 6,979 | testBug592170 | ```java
public void testLends3() throws Exception;
public void testLends4() throws Exception;
public void testLends5() throws Exception;
public void testLends6() throws Exception;
public void testLends7() throws Exception;
public void testLends8() throws Exception;
public void testLends9() throws Exceptio... | 6,971 | // public void testLends3() throws Exception;
// public void testLends4() throws Exception;
// public void testLends5() throws Exception;
// public void testLends6() throws Exception;
// public void testLends7() throws Exception;
// public void testLends8() throws Exception;
// public void testLends9() th... | /**
* Tests that the || operator is type checked correctly, that is of
* the type of the first argument or of the second argument. See
* bugid 592170 for more details.
*/ | 107 | com.google.javascript.jscomp.TypeCheck | test | ```java
public void testLends3() throws Exception;
public void testLends4() throws Exception;
public void testLends5() throws Exception;
public void testLends6() throws Exception;
public void testLends7() throws Exception;
public void testLends8() throws Exception;
public void testLends9() throws Exceptio... | public class TypeCheck implements NodeTraversal.Callback, CompilerPass | package com.google.javascript.jscomp;
import com.google.common.base.Joiner;
import com.google.common.collect.Lists;
import com.google.common.collect.Sets;
import com.google.javascript.jscomp.Scope.Var;
import com.google.javascript.jscomp.type.ClosureReverseAbstractInterpreter;
import com.google.javascript.jscomp.type.... | @Override
public void setUp() throws Exception;
public void testInitialTypingScope();
public void testPrivateType() throws Exception;
public void testTypeCheck1() throws Exception;
public void testTypeCheck2() throws Exception;
public void testTypeCheck4() throws Exception;
public void testTypeCheck5() ... | dc11a59fe0465d210a7ec1f1997dfc38caf807e21e29008f57ee98ecdc2d9fb5 | [
"com.google.javascript.jscomp.TypeCheckTest::testBug592170"
] | static final DiagnosticType UNEXPECTED_TOKEN = DiagnosticType.error(
"JSC_INTERNAL_ERROR_UNEXPECTED_TOKEN",
"Internal Error: Don't know how to handle {0}");
protected static final String OVERRIDING_PROTOTYPE_WITH_NON_OBJECT =
"overriding prototype with non-object";
static final DiagnosticType DE... | public void testBug592170() throws Exception | private CheckLevel reportMissingOverrides = CheckLevel.WARNING;
private static final String SUGGESTION_CLASS =
"/** @constructor\n */\n" +
"function Suggest() {}\n" +
"Suggest.prototype.a = 1;\n" +
"Suggest.prototype.veryPossible = 1;\n" +
"Suggest.prototype.veryPossible2 = 1;\n"; | Closure | /*
* Copyright 2006 The Closure Compiler Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... | [
{
"be_test_class_file": "com/google/javascript/jscomp/TypeCheck.java",
"be_test_class_name": "com.google.javascript.jscomp.TypeCheck",
"be_test_function_name": "check",
"be_test_function_signature": "(Lcom/google/javascript/rhino/Node;Z)V",
"line_numbers": [
"418",
"420",
"421"... | |
public class TestTokenBuffer extends BaseMapTest
| public void testWithJsonParserSequenceSimple() throws IOException
{
// Let's join a TokenBuffer with JsonParser first
TokenBuffer buf = new TokenBuffer(null, false);
buf.writeStartArray();
buf.writeString("test");
JsonParser p = createParserUsingReader("[ true, null ]");
... | // protected final void _appendValue(JsonToken type, Object value);
// @Override
// protected void _reportUnsupportedOperation();
// @Deprecated // since 2.9
// public Parser(Segment firstSeg, ObjectCodec codec,
// boolean hasNativeTypeIds, boolean hasNativeObjectIds);
// pub... | src/test/java/com/fasterxml/jackson/databind/util/TestTokenBuffer.java | package com.fasterxml.jackson.databind.util;
import java.io.*;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.TreeMap;
import com.fasterxml.jackson.core.*;
import com.fasterxml.jackson.core.base.ParserMinimalBase;
import com.fasterxml.jackson.core.json.JsonWriteContext;
import com.fasterxml... | public TokenBuffer(ObjectCodec codec, boolean hasNativeIds);
public TokenBuffer(JsonParser p);
public TokenBuffer(JsonParser p, DeserializationContext ctxt);
public static TokenBuffer asCopyOfValue(JsonParser p) throws IOException;
public TokenBuffer overrideParentContext(JsonStreamContext ctxt);
... | 595 | testWithJsonParserSequenceSimple | ```java
protected final void _appendValue(JsonToken type, Object value);
@Override
protected void _reportUnsupportedOperation();
@Deprecated // since 2.9
public Parser(Segment firstSeg, ObjectCodec codec,
boolean hasNativeTypeIds, boolean hasNativeObjectIds);
public Parser(Se... | 552 | // protected final void _appendValue(JsonToken type, Object value);
// @Override
// protected void _reportUnsupportedOperation();
// @Deprecated // since 2.9
// public Parser(Segment firstSeg, ObjectCodec codec,
// boolean hasNativeTypeIds, boolean hasNativeObjectIds);
// pub... | /*
/**********************************************************
/* Tests to verify interaction of TokenBuffer and JsonParserSequence
/**********************************************************
*/ | 112 | com.fasterxml.jackson.databind.util.TokenBuffer | src/test/java | ```java
protected final void _appendValue(JsonToken type, Object value);
@Override
protected void _reportUnsupportedOperation();
@Deprecated // since 2.9
public Parser(Segment firstSeg, ObjectCodec codec,
boolean hasNativeTypeIds, boolean hasNativeObjectIds);
public Parser(Se... | public class TokenBuffer
/* Won't use JsonGeneratorBase, to minimize overhead for validity
* checking
*/
extends JsonGenerator
| package com.fasterxml.jackson.databind.util;
import java.io.*;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.UUID;
import com.fasterxml.jackson.core.*;
import com.fasterxml.jackson.core.JsonParser.NumberType;
import com.fasterxml.jackson.core.io.SerializedString;
import com.fasterxml.jacks... | public void testBasicConfig() throws IOException;
public void testSimpleWrites() throws IOException;
public void testSimpleNumberWrites() throws IOException;
public void testNumberOverflowInt() throws IOException;
public void testNumberOverflowLong() throws IOException;
public void testParentCon... | e0861eb6736707ff900d7db738c970886788c5c922f9e72efd2d6d09ee506e82 | [
"com.fasterxml.jackson.databind.util.TestTokenBuffer::testWithJsonParserSequenceSimple"
] | protected final static int DEFAULT_GENERATOR_FEATURES = JsonGenerator.Feature.collectDefaults();
protected ObjectCodec _objectCodec;
protected JsonStreamContext _parentContext;
protected int _generatorFeatures;
protected boolean _closed;
protected boolean _hasNativeTypeIds;
protected boolean... | public void testWithJsonParserSequenceSimple() throws IOException
| private final ObjectMapper MAPPER = objectMapper(); | JacksonDatabind | package com.fasterxml.jackson.databind.util;
import java.io.*;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.UUID;
import com.fasterxml.jackson.core.*;
import com.fasterxml.jackson.core.JsonParser.NumberType;
import com.fasterxml.jackson.core.io.SerializedString;
import com.fasterxml.jack... | [
{
"be_test_class_file": "com/fasterxml/jackson/databind/util/TokenBuffer.java",
"be_test_class_name": "com.fasterxml.jackson.databind.util.TokenBuffer",
"be_test_function_name": "_append",
"be_test_function_signature": "(Lcom/fasterxml/jackson/core/JsonToken;)V",
"line_numbers": [
"1135",
... | |
public class MultiBackgroundInitializerTest | @Test
public void testAddInitializerAfterStart() throws ConcurrentException {
initializer.start();
try {
initializer.addInitializer(CHILD_INIT,
new ChildBackgroundInitializer());
fail("Could add initializer after start()!");
} catch (final Ille... | // // Abstract Java Tested Class
// package org.apache.commons.lang3.concurrent;
//
// import java.util.Collections;
// import java.util.HashMap;
// import java.util.Map;
// import java.util.NoSuchElementException;
// import java.util.Set;
// import java.util.concurrent.ExecutorService;
//
//
//
// public class Mul... | src/test/java/org/apache/commons/lang3/concurrent/MultiBackgroundInitializerTest.java | package org.apache.commons.lang3.concurrent;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import java.util.NoSuchElementException;
import java.util.Set;
import java.util.concurrent.ExecutorService;
| public MultiBackgroundInitializer();
public MultiBackgroundInitializer(final ExecutorService exec);
public void addInitializer(final String name, final BackgroundInitializer<?> init);
@Override
protected int getTaskCount();
@Override
protected MultiBackgroundInitializerResults initialize() t... | 196 | testAddInitializerAfterStart | ```java
// Abstract Java Tested Class
package org.apache.commons.lang3.concurrent;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import java.util.NoSuchElementException;
import java.util.Set;
import java.util.concurrent.ExecutorService;
public class MultiBackgroundInitializer
... | 186 | // // Abstract Java Tested Class
// package org.apache.commons.lang3.concurrent;
//
// import java.util.Collections;
// import java.util.HashMap;
// import java.util.Map;
// import java.util.NoSuchElementException;
// import java.util.Set;
// import java.util.concurrent.ExecutorService;
//
//
//
// public class Mul... | /**
* Tries to add another child initializer after the start() method has been
* called. This should not be allowed.
*/ | 1 | org.apache.commons.lang3.concurrent.MultiBackgroundInitializer | src/test/java | ```java
// Abstract Java Tested Class
package org.apache.commons.lang3.concurrent;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import java.util.NoSuchElementException;
import java.util.Set;
import java.util.concurrent.ExecutorService;
public class MultiBackgroundInitializer
... | public class MultiBackgroundInitializer
extends
BackgroundInitializer<MultiBackgroundInitializer.MultiBackgroundInitializerResults> | package org.apache.commons.lang3.concurrent;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
import java.util.Iterator;
import java.util.NoSuchElementExcep... | @Before
public void setUp() throws Exception;
private void checkChild(final BackgroundInitializer<?> child,
final ExecutorService expExec) throws ConcurrentException;
@Test(expected = IllegalArgumentException.class)
public void testAddInitializerNullName();
@Test(expected = IllegalAr... | e5db49e456564c5dd9af1c9f84c066fa34b409f08aff61120ad3bd127a5da798 | [
"org.apache.commons.lang3.concurrent.MultiBackgroundInitializerTest::testAddInitializerAfterStart"
] | private final Map<String, BackgroundInitializer<?>> childInitializers =
new HashMap<String, BackgroundInitializer<?>>(); | @Test
public void testAddInitializerAfterStart() throws ConcurrentException | private static final String CHILD_INIT = "childInitializer";
private MultiBackgroundInitializer initializer; | Lang | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | [
{
"be_test_class_file": "org/apache/commons/lang3/concurrent/MultiBackgroundInitializer.java",
"be_test_class_name": "org.apache.commons.lang3.concurrent.MultiBackgroundInitializer",
"be_test_function_name": "addInitializer",
"be_test_function_signature": "(Ljava/lang/String;Lorg/apache/commons/lang... | |
public class ObjectWriterTest
extends BaseMapTest
| public void testArgumentChecking() throws Exception
{
final ObjectWriter w = MAPPER.writer();
try {
w.acceptJsonFormatVisitor((JavaType) null, null);
fail("Should not pass");
} catch (IllegalArgumentException e) {
verifyException(e, "type must be provi... | // public ObjectWriter with(FormatFeature feature);
// public ObjectWriter withFeatures(FormatFeature... features);
// public ObjectWriter without(FormatFeature feature);
// public ObjectWriter withoutFeatures(FormatFeature... features);
// public ObjectWriter forType(JavaType rootType);
// publ... | src/test/java/com/fasterxml/jackson/databind/ObjectWriterTest.java | package com.fasterxml.jackson.databind;
import java.io.*;
import java.text.*;
import java.util.Locale;
import java.util.Map;
import java.util.TimeZone;
import java.util.concurrent.atomic.AtomicReference;
import com.fasterxml.jackson.core.*;
import com.fasterxml.jackson.core.io.CharacterEscapes;
import com.fasterxml.ja... | protected ObjectWriter(ObjectMapper mapper, SerializationConfig config,
JavaType rootType, PrettyPrinter pp);
protected ObjectWriter(ObjectMapper mapper, SerializationConfig config);
protected ObjectWriter(ObjectMapper mapper, SerializationConfig config,
FormatSchema s);
protecte... | 286 | testArgumentChecking | ```java
public ObjectWriter with(FormatFeature feature);
public ObjectWriter withFeatures(FormatFeature... features);
public ObjectWriter without(FormatFeature feature);
public ObjectWriter withoutFeatures(FormatFeature... features);
public ObjectWriter forType(JavaType rootType);
public ObjectW... | 277 | // public ObjectWriter with(FormatFeature feature);
// public ObjectWriter withFeatures(FormatFeature... features);
// public ObjectWriter without(FormatFeature feature);
// public ObjectWriter withoutFeatures(FormatFeature... features);
// public ObjectWriter forType(JavaType rootType);
// publ... | /*
/**********************************************************
/* Test methods, failures
/**********************************************************
*/ | 112 | com.fasterxml.jackson.databind.ObjectWriter | src/test/java | ```java
public ObjectWriter with(FormatFeature feature);
public ObjectWriter withFeatures(FormatFeature... features);
public ObjectWriter without(FormatFeature feature);
public ObjectWriter withoutFeatures(FormatFeature... features);
public ObjectWriter forType(JavaType rootType);
public ObjectW... | public class ObjectWriter
implements Versioned,
java.io.Serializable // since 2.1
| package com.fasterxml.jackson.databind;
import java.io.ByteArrayOutputStream;
import java.io.Closeable;
import java.io.IOException;
import java.io.StringWriter;
import java.util.*;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.c... | public void testPrettyPrinter() throws Exception;
public void testPrefetch() throws Exception;
public void testObjectWriterFeatures() throws Exception;
public void testObjectWriterWithNode() throws Exception;
public void testPolymorphicWithTyping() throws Exception;
public void testCanSerialize(... | e6815a6d8fc08a6870105062db9a1e0bc54cbf9191e969810d6178dfd4506653 | [
"com.fasterxml.jackson.databind.ObjectWriterTest::testArgumentChecking"
] | private static final long serialVersionUID = 1;
protected final static PrettyPrinter NULL_PRETTY_PRINTER = new MinimalPrettyPrinter();
protected final SerializationConfig _config;
protected final DefaultSerializerProvider _serializerProvider;
protected final SerializerFactory _serializerFactory;
... | public void testArgumentChecking() throws Exception
| final ObjectMapper MAPPER = new ObjectMapper(); | JacksonDatabind | package com.fasterxml.jackson.databind;
import java.io.ByteArrayOutputStream;
import java.io.Closeable;
import java.io.IOException;
import java.io.StringWriter;
import java.util.*;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson... | [
{
"be_test_class_file": "com/fasterxml/jackson/databind/ObjectWriter.java",
"be_test_class_name": "com.fasterxml.jackson.databind.ObjectWriter",
"be_test_function_name": "acceptJsonFormatVisitor",
"be_test_function_signature": "(Lcom/fasterxml/jackson/databind/JavaType;Lcom/fasterxml/jackson/databin... | |
public class TimeSeriesTests extends TestCase implements SeriesChangeListener | public void testSetMaximumItemCount() {
TimeSeries s1 = new TimeSeries("S1");
s1.add(new Year(2000), 13.75);
s1.add(new Year(2001), 11.90);
s1.add(new Year(2002), null);
s1.add(new Year(2005), 19.32);
s1.add(new Year(2007), 16.89);
assertTrue(s1.getItemCount()... | // // Abstract Java Tested Class
// package org.jfree.data.time;
//
// import java.io.Serializable;
// import java.lang.reflect.InvocationTargetException;
// import java.lang.reflect.Method;
// import java.util.Collection;
// import java.util.Collections;
// import java.util.Date;
// import java.util.Iterator;
// impo... | tests/org/jfree/data/time/junit/TimeSeriesTests.java | package org.jfree.data.time;
import java.io.Serializable;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.Collection;
import java.util.Collections;
import java.util.Date;
import java.util.Iterator;
import java.util.List;
import java.util.TimeZone;
import org.jfree.... | public TimeSeries(Comparable name);
public TimeSeries(Comparable name, String domain, String range);
public String getDomainDescription();
public void setDomainDescription(String description);
public String getRangeDescription();
public void setRangeDescription(String description);
public in... | 632 | testSetMaximumItemCount | ```java
// Abstract Java Tested Class
package org.jfree.data.time;
import java.io.Serializable;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.Collection;
import java.util.Collections;
import java.util.Date;
import java.util.Iterator;
import java.util.List;
import... | 617 | // // Abstract Java Tested Class
// package org.jfree.data.time;
//
// import java.io.Serializable;
// import java.lang.reflect.InvocationTargetException;
// import java.lang.reflect.Method;
// import java.util.Collection;
// import java.util.Collections;
// import java.util.Date;
// import java.util.Iterator;
// impo... | /**
* Test the setMaximumItemCount() method to ensure that it removes items
* from the series if necessary.
*/ | 1 | org.jfree.data.time.TimeSeries | tests | ```java
// Abstract Java Tested Class
package org.jfree.data.time;
import java.io.Serializable;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.Collection;
import java.util.Collections;
import java.util.Date;
import java.util.Iterator;
import java.util.List;
import... | public class TimeSeries extends Series implements Cloneable, Serializable | package org.jfree.data.time.junit;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.ObjectInput;
import java.io.ObjectInputStream;
import java.io.ObjectOutput;
import java.io.ObjectOutputStream;
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framewor... | public static Test suite();
public TimeSeriesTests(String name);
protected void setUp();
public void seriesChanged(SeriesChangeEvent event);
public void testClone();
public void testClone2();
public void testAddValue();
public void testGetValue();
public void testDelete();
public void test... | e7d7f4e4ceecd55b636791a6ba0e456aaddc3f59e5657095bb7beb094d090c94 | [
"org.jfree.data.time.junit.TimeSeriesTests::testSetMaximumItemCount"
] | private static final long serialVersionUID = -5032960206869675528L;
protected static final String DEFAULT_DOMAIN_DESCRIPTION = "Time";
protected static final String DEFAULT_RANGE_DESCRIPTION = "Value";
private String domain;
private String range;
protected Class timePeriodClass;
protected Li... | public void testSetMaximumItemCount() | private TimeSeries seriesA;
private TimeSeries seriesB;
private TimeSeries seriesC;
private boolean gotSeriesChangeEvent = false;
private static final double EPSILON = 0.0000000001; | Chart | /* ===========================================================
* JFreeChart : a free chart library for the Java(tm) platform
* ===========================================================
*
* (C) Copyright 2000-2009, by Object Refinery Limited and Contributors.
*
* Project Info: http://www.jfree.org/jfreechart/in... | [
{
"be_test_class_file": "org/jfree/data/time/TimeSeries.java",
"be_test_class_name": "org.jfree.data.time.TimeSeries",
"be_test_function_name": "add",
"be_test_function_signature": "(Lorg/jfree/data/time/RegularTimePeriod;D)V",
"line_numbers": [
"653",
"654"
],
"method_line_r... | |
public final class EmpiricalDistributionTest extends RealDistributionAbstractTest | @Test
public void testLoad() throws Exception {
// Load from a URL
empiricalDistribution.load(url);
checkDistribution();
// Load again from a file (also verifies idempotency of load)
File file = new File(url.toURI());
empiricalDistribution.load(file);
... | // private EmpiricalDistribution(int binCount,
// RandomDataGenerator randomData);
// public void load(double[] in) throws NullArgumentException;
// public void load(URL url) throws IOException, NullArgumentException, ZeroException;
// public void load(File file) throws... | src/test/java/org/apache/commons/math3/random/EmpiricalDistributionTest.java | package org.apache.commons.math3.random;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.URL;
import java.nio.charset.Charset;
import java.util.ArrayList;
import java.util.List;... | public EmpiricalDistribution();
public EmpiricalDistribution(int binCount);
public EmpiricalDistribution(int binCount, RandomGenerator generator);
public EmpiricalDistribution(RandomGenerator generator);
@Deprecated
public EmpiricalDistribution(int binCount, RandomDataImpl randomData);
@Depr... | 104 | testLoad | ```java
private EmpiricalDistribution(int binCount,
RandomDataGenerator randomData);
public void load(double[] in) throws NullArgumentException;
public void load(URL url) throws IOException, NullArgumentException, ZeroException;
public void load(File file) throws IOExce... | 94 | // private EmpiricalDistribution(int binCount,
// RandomDataGenerator randomData);
// public void load(double[] in) throws NullArgumentException;
// public void load(URL url) throws IOException, NullArgumentException, ZeroException;
// public void load(File file) throws... | /**
* Test EmpiricalDistrbution.load() using sample data file.<br>
* Check that the sampleCount, mu and sigma match data in
* the sample data file. Also verify that load is idempotent.
*/ | 1 | org.apache.commons.math3.random.EmpiricalDistribution | src/test/java | ```java
private EmpiricalDistribution(int binCount,
RandomDataGenerator randomData);
public void load(double[] in) throws NullArgumentException;
public void load(URL url) throws IOException, NullArgumentException, ZeroException;
public void load(File file) throws IOExce... | public class EmpiricalDistribution extends AbstractRealDistribution | package org.apache.commons.math3.random;
import java.io.BufferedReader;
import java.io.File;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.URL;
import java.util.ArrayList;
import java.util.Arrays;
import org.apache.commons.math3.TestUtils;
import org.apache.commons.math3.analysis.Univar... | @Override
@Before
public void setUp();
@Test
public void testLoad() throws Exception;
private void checkDistribution();
@Test
public void testDoubleLoad() throws Exception;
@Test
public void testNext() throws Exception;
@Test
public void testNexFail();
@Test
publi... | eb1b181d2515f73a4627e66538cdc4473e1ea22c25380cbcb1631861ad740a1d | [
"org.apache.commons.math3.random.EmpiricalDistributionTest::testLoad"
] | public static final int DEFAULT_BIN_COUNT = 1000;
private static final String FILE_CHARSET = "US-ASCII";
private static final long serialVersionUID = 5729073523949762654L;
protected final RandomDataGenerator randomData;
private final List<SummaryStatistics> binStats;
private SummaryStatistics sa... | @Test
public void testLoad() throws Exception | protected EmpiricalDistribution empiricalDistribution = null;
protected EmpiricalDistribution empiricalDistribution2 = null;
protected File file = null;
protected URL url = null;
protected double[] dataArray = null;
protected final int n = 10000;
private final double binMass = 10d / (n + 1);... | Math | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | [
{
"be_test_class_file": "org/apache/commons/math3/random/EmpiricalDistribution.java",
"be_test_class_name": "org.apache.commons.math3.random.EmpiricalDistribution",
"be_test_function_name": "access$300",
"be_test_function_signature": "(Lorg/apache/commons/math3/random/EmpiricalDistribution;)Lorg/apa... | |
public class MultiBackgroundInitializerTest | @Test
public void testInitializeChildWithExecutor() throws ConcurrentException {
final String initExec = "childInitializerWithExecutor";
final ExecutorService exec = Executors.newSingleThreadExecutor();
try {
final ChildBackgroundInitializer c1 = new ChildBackgroundInitialize... | // // Abstract Java Tested Class
// package org.apache.commons.lang3.concurrent;
//
// import java.util.Collections;
// import java.util.HashMap;
// import java.util.Map;
// import java.util.NoSuchElementException;
// import java.util.Set;
// import java.util.concurrent.ExecutorService;
//
//
//
// public class Mul... | src/test/java/org/apache/commons/lang3/concurrent/MultiBackgroundInitializerTest.java | package org.apache.commons.lang3.concurrent;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import java.util.NoSuchElementException;
import java.util.Set;
import java.util.concurrent.ExecutorService;
| public MultiBackgroundInitializer();
public MultiBackgroundInitializer(final ExecutorService exec);
public void addInitializer(final String name, final BackgroundInitializer<?> init);
@Override
protected int getTaskCount();
@Override
protected MultiBackgroundInitializerResults initialize() t... | 180 | testInitializeChildWithExecutor | ```java
// Abstract Java Tested Class
package org.apache.commons.lang3.concurrent;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import java.util.NoSuchElementException;
import java.util.Set;
import java.util.concurrent.ExecutorService;
public class MultiBackgroundInitializer
... | 163 | // // Abstract Java Tested Class
// package org.apache.commons.lang3.concurrent;
//
// import java.util.Collections;
// import java.util.HashMap;
// import java.util.Map;
// import java.util.NoSuchElementException;
// import java.util.Set;
// import java.util.concurrent.ExecutorService;
//
//
//
// public class Mul... | /**
* Tests the behavior of initialize() if a child initializer has a specific
* executor service. Then this service should not be overridden.
*/ | 1 | org.apache.commons.lang3.concurrent.MultiBackgroundInitializer | src/test/java | ```java
// Abstract Java Tested Class
package org.apache.commons.lang3.concurrent;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import java.util.NoSuchElementException;
import java.util.Set;
import java.util.concurrent.ExecutorService;
public class MultiBackgroundInitializer
... | public class MultiBackgroundInitializer
extends
BackgroundInitializer<MultiBackgroundInitializer.MultiBackgroundInitializerResults> | package org.apache.commons.lang3.concurrent;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
import java.util.Iterator;
import java.util.NoSuchElementExcep... | @Before
public void setUp() throws Exception;
private void checkChild(final BackgroundInitializer<?> child,
final ExecutorService expExec) throws ConcurrentException;
@Test(expected = IllegalArgumentException.class)
public void testAddInitializerNullName();
@Test(expected = IllegalAr... | ec0f51b31566085e3e11e0f3019f7e049c54bba76a0f7d6ed6d7ae0be97e44e3 | [
"org.apache.commons.lang3.concurrent.MultiBackgroundInitializerTest::testInitializeChildWithExecutor"
] | private final Map<String, BackgroundInitializer<?>> childInitializers =
new HashMap<String, BackgroundInitializer<?>>(); | @Test
public void testInitializeChildWithExecutor() throws ConcurrentException | private static final String CHILD_INIT = "childInitializer";
private MultiBackgroundInitializer initializer; | Lang | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | [
{
"be_test_class_file": "org/apache/commons/lang3/concurrent/MultiBackgroundInitializer.java",
"be_test_class_name": "org.apache.commons.lang3.concurrent.MultiBackgroundInitializer",
"be_test_function_name": "addInitializer",
"be_test_function_signature": "(Ljava/lang/String;Lorg/apache/commons/lang... | |
public class ObjectReaderTest extends BaseMapTest
| public void testMissingType() throws Exception
{
ObjectReader r = MAPPER.reader();
try {
r.readValue("1");
fail("Should not pass");
} catch (JsonMappingException e) {
verifyException(e, "No value type configured");
}
} | // @Override
// public void writeTree(JsonGenerator g, TreeNode rootNode);
// @SuppressWarnings("unchecked")
// public <T> T readValue(InputStream src) throws IOException;
// @SuppressWarnings("unchecked")
// public <T> T readValue(Reader src) throws IOException;
// @SuppressWarnings("unchec... | src/test/java/com/fasterxml/jackson/databind/ObjectReaderTest.java | package com.fasterxml.jackson.databind;
import java.io.*;
import java.net.URL;
import java.util.*;
import java.util.concurrent.ConcurrentHashMap;
import com.fasterxml.jackson.core.*;
import com.fasterxml.jackson.core.filter.FilteringParserDelegate;
import com.fasterxml.jackson.core.filter.JsonPointerBasedFilter;
impor... | protected ObjectReader(ObjectMapper mapper, DeserializationConfig config);
protected ObjectReader(ObjectMapper mapper, DeserializationConfig config,
JavaType valueType, Object valueToUpdate,
FormatSchema schema, InjectableValues injectableValues);
protected ObjectReader(ObjectReader ... | 307 | testMissingType | ```java
@Override
public void writeTree(JsonGenerator g, TreeNode rootNode);
@SuppressWarnings("unchecked")
public <T> T readValue(InputStream src) throws IOException;
@SuppressWarnings("unchecked")
public <T> T readValue(Reader src) throws IOException;
@SuppressWarnings("unchecked")
pub... | 298 | // @Override
// public void writeTree(JsonGenerator g, TreeNode rootNode);
// @SuppressWarnings("unchecked")
// public <T> T readValue(InputStream src) throws IOException;
// @SuppressWarnings("unchecked")
// public <T> T readValue(Reader src) throws IOException;
// @SuppressWarnings("unchec... | /*
/**********************************************************
/* Test methods, failures, other
/**********************************************************
*/ | 112 | com.fasterxml.jackson.databind.ObjectReader | src/test/java | ```java
@Override
public void writeTree(JsonGenerator g, TreeNode rootNode);
@SuppressWarnings("unchecked")
public <T> T readValue(InputStream src) throws IOException;
@SuppressWarnings("unchecked")
public <T> T readValue(Reader src) throws IOException;
@SuppressWarnings("unchecked")
pub... | public class ObjectReader
extends ObjectCodec
implements Versioned, java.io.Serializable // since 2.1
| package com.fasterxml.jackson.databind;
import java.io.StringWriter;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.util.Set;
import com.fasterxml.jackson.core.*;
import com.fasterxml.jackson.databind.cfg.ContextAttributes;
import com.fasterxml.jackson.databind.deser.Deserializa... | public void testSimpleViaParser() throws Exception;
public void testSimpleAltSources() throws Exception;
public void testParserFeatures() throws Exception;
public void testNodeHandling() throws Exception;
public void testFeatureSettings() throws Exception;
public void testMiscSettings() throws E... | ef6430945ddbb82b731645c3cd140b088ab82fd5e8a6c76a366bb30ce956cde5 | [
"com.fasterxml.jackson.databind.ObjectReaderTest::testMissingType"
] | private static final long serialVersionUID = 2L;
private final static JavaType JSON_NODE_TYPE = SimpleType.constructUnsafe(JsonNode.class);
protected final DeserializationConfig _config;
protected final DefaultDeserializationContext _context;
protected final JsonFactory _parserFactory;
protected... | public void testMissingType() throws Exception
| final ObjectMapper MAPPER = new ObjectMapper(); | JacksonDatabind | package com.fasterxml.jackson.databind;
import java.io.StringWriter;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.util.Set;
import com.fasterxml.jackson.core.*;
import com.fasterxml.jackson.databind.cfg.ContextAttributes;
import com.fasterxml.jackson.databind.deser.Deseriali... | [
{
"be_test_class_file": "com/fasterxml/jackson/databind/ObjectReader.java",
"be_test_class_name": "com.fasterxml.jackson.databind.ObjectReader",
"be_test_function_name": "_bindAndClose",
"be_test_function_signature": "(Lcom/fasterxml/jackson/core/JsonParser;)Ljava/lang/Object;",
"line_numbers": ... | |
public class ObjectReaderTest extends BaseMapTest
| public void testTreeToValue() throws Exception
{
ArrayNode n = MAPPER.createArrayNode();
n.add("xyz");
ObjectReader r = MAPPER.readerFor(String.class);
List<?> list = r.treeToValue(n, List.class);
assertEquals(1, list.size());
} | // @Override
// public void writeTree(JsonGenerator g, TreeNode rootNode);
// @SuppressWarnings("unchecked")
// public <T> T readValue(InputStream src) throws IOException;
// @SuppressWarnings("unchecked")
// public <T> T readValue(Reader src) throws IOException;
// @SuppressWarnings("unchec... | src/test/java/com/fasterxml/jackson/databind/ObjectReaderTest.java | package com.fasterxml.jackson.databind;
import java.io.*;
import java.net.URL;
import java.util.*;
import java.util.concurrent.ConcurrentHashMap;
import com.fasterxml.jackson.core.*;
import com.fasterxml.jackson.core.filter.FilteringParserDelegate;
import com.fasterxml.jackson.core.filter.JsonPointerBasedFilter;
impor... | protected ObjectReader(ObjectMapper mapper, DeserializationConfig config);
protected ObjectReader(ObjectMapper mapper, DeserializationConfig config,
JavaType valueType, Object valueToUpdate,
FormatSchema schema, InjectableValues injectableValues);
protected ObjectReader(ObjectReader ... | 268 | testTreeToValue | ```java
@Override
public void writeTree(JsonGenerator g, TreeNode rootNode);
@SuppressWarnings("unchecked")
public <T> T readValue(InputStream src) throws IOException;
@SuppressWarnings("unchecked")
public <T> T readValue(Reader src) throws IOException;
@SuppressWarnings("unchecked")
pub... | 261 | // @Override
// public void writeTree(JsonGenerator g, TreeNode rootNode);
// @SuppressWarnings("unchecked")
// public <T> T readValue(InputStream src) throws IOException;
// @SuppressWarnings("unchecked")
// public <T> T readValue(Reader src) throws IOException;
// @SuppressWarnings("unchec... | /*
/**********************************************************
/* Test methods, ObjectCodec
/**********************************************************
*/ | 112 | com.fasterxml.jackson.databind.ObjectReader | src/test/java | ```java
@Override
public void writeTree(JsonGenerator g, TreeNode rootNode);
@SuppressWarnings("unchecked")
public <T> T readValue(InputStream src) throws IOException;
@SuppressWarnings("unchecked")
public <T> T readValue(Reader src) throws IOException;
@SuppressWarnings("unchecked")
pub... | public class ObjectReader
extends ObjectCodec
implements Versioned, java.io.Serializable // since 2.1
| package com.fasterxml.jackson.databind;
import java.io.StringWriter;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.util.Set;
import com.fasterxml.jackson.core.*;
import com.fasterxml.jackson.databind.cfg.ContextAttributes;
import com.fasterxml.jackson.databind.deser.Deserializa... | public void testSimpleViaParser() throws Exception;
public void testSimpleAltSources() throws Exception;
public void testParserFeatures() throws Exception;
public void testNodeHandling() throws Exception;
public void testFeatureSettings() throws Exception;
public void testMiscSettings() throws E... | efb2fe8592566ccfa3656439cb33dde777d7c84d8ea27103cd2dbd7674afaef7 | [
"com.fasterxml.jackson.databind.ObjectReaderTest::testTreeToValue"
] | private static final long serialVersionUID = 2L;
private final static JavaType JSON_NODE_TYPE = SimpleType.constructUnsafe(JsonNode.class);
protected final DeserializationConfig _config;
protected final DefaultDeserializationContext _context;
protected final JsonFactory _parserFactory;
protected... | public void testTreeToValue() throws Exception
| final ObjectMapper MAPPER = new ObjectMapper(); | JacksonDatabind | package com.fasterxml.jackson.databind;
import java.io.StringWriter;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.util.Set;
import com.fasterxml.jackson.core.*;
import com.fasterxml.jackson.databind.cfg.ContextAttributes;
import com.fasterxml.jackson.databind.deser.Deseriali... | [
{
"be_test_class_file": "com/fasterxml/jackson/databind/ObjectReader.java",
"be_test_class_name": "com.fasterxml.jackson.databind.ObjectReader",
"be_test_function_name": "_bind",
"be_test_function_signature": "(Lcom/fasterxml/jackson/core/JsonParser;Ljava/lang/Object;)Ljava/lang/Object;",
"line_... | |
public final class LaguerreSolverTest | @Test
public void testQuinticFunction2() {
// p(x) = x^5 + 4x^3 + x^2 + 4 = (x+1)(x^2-x+1)(x^2+4)
final double[] coefficients = { 4.0, 0.0, 1.0, 4.0, 0.0, 1.0 };
final LaguerreSolver solver = new LaguerreSolver();
final Complex[] result = solver.solveAllComplex(coefficients, 0);
... | // // Abstract Java Tested Class
// package org.apache.commons.math3.analysis.solvers;
//
// import org.apache.commons.math3.complex.Complex;
// import org.apache.commons.math3.complex.ComplexUtils;
// import org.apache.commons.math3.analysis.polynomials.PolynomialFunction;
// import org.apache.commons.math3.exception... | src/test/java/org/apache/commons/math3/analysis/solvers/LaguerreSolverTest.java | package org.apache.commons.math3.analysis.solvers;
import org.apache.commons.math3.complex.Complex;
import org.apache.commons.math3.complex.ComplexUtils;
import org.apache.commons.math3.analysis.polynomials.PolynomialFunction;
import org.apache.commons.math3.exception.NoBracketingException;
import org.apache.commons.m... | public LaguerreSolver();
public LaguerreSolver(double absoluteAccuracy);
public LaguerreSolver(double relativeAccuracy,
double absoluteAccuracy);
public LaguerreSolver(double relativeAccuracy,
double absoluteAccuracy,
double f... | 133 | testQuinticFunction2 | ```java
// Abstract Java Tested Class
package org.apache.commons.math3.analysis.solvers;
import org.apache.commons.math3.complex.Complex;
import org.apache.commons.math3.complex.ComplexUtils;
import org.apache.commons.math3.analysis.polynomials.PolynomialFunction;
import org.apache.commons.math3.exception.NoBracketing... | 117 | // // Abstract Java Tested Class
// package org.apache.commons.math3.analysis.solvers;
//
// import org.apache.commons.math3.complex.Complex;
// import org.apache.commons.math3.complex.ComplexUtils;
// import org.apache.commons.math3.analysis.polynomials.PolynomialFunction;
// import org.apache.commons.math3.exception... | /**
* Test of solver for the quintic function using
* {@link LaguerreSolver#solveAllComplex(double[],double) solveAllComplex}.
*/ | 1 | org.apache.commons.math3.analysis.solvers.LaguerreSolver | src/test/java | ```java
// Abstract Java Tested Class
package org.apache.commons.math3.analysis.solvers;
import org.apache.commons.math3.complex.Complex;
import org.apache.commons.math3.complex.ComplexUtils;
import org.apache.commons.math3.analysis.polynomials.PolynomialFunction;
import org.apache.commons.math3.exception.NoBracketing... | public class LaguerreSolver extends AbstractPolynomialSolver | package org.apache.commons.math3.analysis.solvers;
import org.apache.commons.math3.analysis.polynomials.PolynomialFunction;
import org.apache.commons.math3.exception.NumberIsTooLargeException;
import org.apache.commons.math3.exception.NoBracketingException;
import org.apache.commons.math3.complex.Complex;
import org.a... | @Test
public void testLinearFunction();
@Test
public void testQuadraticFunction();
@Test
public void testQuinticFunction();
@Test
public void testQuinticFunction2();
@Test
public void testParameters(); | f02f7a1ff35a21c356ba0813730422903693d725b75f0670976e02ad78aca237 | [
"org.apache.commons.math3.analysis.solvers.LaguerreSolverTest::testQuinticFunction2"
] | private static final double DEFAULT_ABSOLUTE_ACCURACY = 1e-6;
private final ComplexSolver complexSolver = new ComplexSolver(); | @Test
public void testQuinticFunction2() | Math | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | [
{
"be_test_class_file": "org/apache/commons/math3/analysis/solvers/LaguerreSolver.java",
"be_test_class_name": "org.apache.commons.math3.analysis.solvers.LaguerreSolver",
"be_test_function_name": "solveAllComplex",
"be_test_function_signature": "([DD)[Lorg/apache/commons/math3/complex/Complex;",
... | ||
public class DateAxisTests extends TestCase | public void testPreviousStandardDateMillisecondB() {
MyDateAxis axis = new MyDateAxis("Millisecond");
Millisecond m0 = new Millisecond(458, 58, 31, 12, 1, 4, 2007);
Millisecond m1 = new Millisecond(459, 58, 31, 12, 1, 4, 2007);
Date d0 = new Date(m0.getFirstMillisecond());
D... | // public double dateToJava2D(Date date, Rectangle2D area,
// RectangleEdge edge);
// public double java2DToValue(double java2DValue, Rectangle2D area,
// RectangleEdge edge);
// public Date calculateLowestVisibleTickValue(DateTickUnit unit);
//... | tests/org/jfree/chart/axis/junit/DateAxisTests.java | package org.jfree.chart.axis;
import java.awt.Font;
import java.awt.FontMetrics;
import java.awt.Graphics2D;
import java.awt.font.FontRenderContext;
import java.awt.font.LineMetrics;
import java.awt.geom.Rectangle2D;
import java.io.Serializable;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import ja... | public DateAxis();
public DateAxis(String label);
public DateAxis(String label, TimeZone zone);
public DateAxis(String label, TimeZone zone, Locale locale);
public TimeZone getTimeZone();
public void setTimeZone(TimeZone zone);
public Timeline getTimeline();
public void setTimeline(Timel... | 1,145 | testPreviousStandardDateMillisecondB | ```java
public double dateToJava2D(Date date, Rectangle2D area,
RectangleEdge edge);
public double java2DToValue(double java2DValue, Rectangle2D area,
RectangleEdge edge);
public Date calculateLowestVisibleTickValue(DateTickUnit unit);
publi... | 1,108 | // public double dateToJava2D(Date date, Rectangle2D area,
// RectangleEdge edge);
// public double java2DToValue(double java2DValue, Rectangle2D area,
// RectangleEdge edge);
// public Date calculateLowestVisibleTickValue(DateTickUnit unit);
//... | /**
* A basic check for the testPreviousStandardDate() method when the
* tick unit is 10 milliseconds (just for the sake of having a multiple).
*/ | 1 | org.jfree.chart.axis.DateAxis | tests | ```java
public double dateToJava2D(Date date, Rectangle2D area,
RectangleEdge edge);
public double java2DToValue(double java2DValue, Rectangle2D area,
RectangleEdge edge);
public Date calculateLowestVisibleTickValue(DateTickUnit unit);
publi... | public class DateAxis extends ValueAxis implements Cloneable, Serializable | package org.jfree.chart.axis.junit;
import java.awt.Graphics2D;
import java.awt.geom.Rectangle2D;
import java.awt.image.BufferedImage;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.ObjectInput;
import java.io.ObjectInputStream;
import java.io.ObjectOutput;
import java.io.Obj... | public static Test suite();
public DateAxisTests(String name);
public void testEquals();
public void test1472942();
public void testHashCode();
public void testCloning();
public void testSetRange();
public void testSetMaximumDate();
public void testSetMinimumDate();
private boole... | f2c788ff1ac833e865c458590d8f2ecd0a4ad985be7eb1828d54d2e386b4ef86 | [
"org.jfree.chart.axis.junit.DateAxisTests::testPreviousStandardDateMillisecondB"
] | private static final long serialVersionUID = -1013460999649007604L;
public static final DateRange DEFAULT_DATE_RANGE = new DateRange();
public static final double
DEFAULT_AUTO_RANGE_MINIMUM_SIZE_IN_MILLISECONDS = 2.0;
public static final DateTickUnit DEFAULT_DATE_TICK_UNIT
= new ... | public void testPreviousStandardDateMillisecondB() | Chart | /* ===========================================================
* JFreeChart : a free chart library for the Java(tm) platform
* ===========================================================
*
* (C) Copyright 2000-2008, by Object Refinery Limited and Contributors.
*
* Project Info: http://www.jfree.org/jfreechart/in... | [
{
"be_test_class_file": "org/jfree/chart/axis/DateAxis.java",
"be_test_class_name": "org.jfree.chart.axis.DateAxis",
"be_test_function_name": "autoAdjustRange",
"be_test_function_signature": "()V",
"line_numbers": [
"1277",
"1279",
"1280",
"1283",
"1284",
"128... | ||
public class DateUtilsTest | @Test
public void testRound() throws Exception {
// tests for public static Date round(Date date, int field)
assertEquals("round year-1 failed",
dateParser.parse("January 1, 2002"),
DateUtils.round(date1, Calendar.YEAR));
assertEquals("round year-2 failed"... | // public static long getFragmentInSeconds(final Date date, final int fragment);
// public static long getFragmentInMinutes(final Date date, final int fragment);
// public static long getFragmentInHours(final Date date, final int fragment);
// public static long getFragmentInDays(final Date date, final int frag... | src/test/java/org/apache/commons/lang3/time/DateUtilsTest.java | package org.apache.commons.lang3.time;
import java.text.ParseException;
import java.text.ParsePosition;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.Iterator;
import java.util.Locale;
import java.util.NoSuchElementException;
| public DateUtils();
public static boolean isSameDay(final Date date1, final Date date2);
public static boolean isSameDay(final Calendar cal1, final Calendar cal2);
public static boolean isSameInstant(final Date date1, final Date date2);
public static boolean isSameInstant(final Calendar cal1, final Calendar c... | 871 | testRound | ```java
public static long getFragmentInSeconds(final Date date, final int fragment);
public static long getFragmentInMinutes(final Date date, final int fragment);
public static long getFragmentInHours(final Date date, final int fragment);
public static long getFragmentInDays(final Date date, final int fragment... | 653 | // public static long getFragmentInSeconds(final Date date, final int fragment);
// public static long getFragmentInMinutes(final Date date, final int fragment);
// public static long getFragmentInHours(final Date date, final int fragment);
// public static long getFragmentInDays(final Date date, final int frag... | /**
* Tests various values with the round method
*/
//----------------------------------------------------------------------- | 1 | org.apache.commons.lang3.time.DateUtils | src/test/java | ```java
public static long getFragmentInSeconds(final Date date, final int fragment);
public static long getFragmentInMinutes(final Date date, final int fragment);
public static long getFragmentInHours(final Date date, final int fragment);
public static long getFragmentInDays(final Date date, final int fragment... | public class DateUtils | package org.apache.commons.lang3.time;
import static org.apache.commons.lang3.JavaVersion.JAVA_1_4;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNotSame;
import static org.junit.Assert.assertT... | @Before
public void setUp() throws Exception;
@Test
public void testConstructor();
@Test
public void testIsSameDay_Date();
@Test
public void testIsSameDay_Cal();
@Test
public void testIsSameInstant_Date();
@Test
public void testIsSameInstant_Cal();
@Test
public vo... | f33df2f4f91d0e0af951145915c7f80cbac40b5f022b8897885e86c4fd0f8e01 | [
"org.apache.commons.lang3.time.DateUtilsTest::testRound"
] | public static final long MILLIS_PER_SECOND = 1000;
public static final long MILLIS_PER_MINUTE = 60 * MILLIS_PER_SECOND;
public static final long MILLIS_PER_HOUR = 60 * MILLIS_PER_MINUTE;
public static final long MILLIS_PER_DAY = 24 * MILLIS_PER_HOUR;
public static final int SEMI_MONTH = 1001;
private static... | @Test
public void testRound() throws Exception | private static final long MILLIS_TEST;
DateFormat dateParser = null;
DateFormat dateTimeParser = null;
DateFormat timeZoneDateParser = null;
Date dateAmPm1 = null;
Date dateAmPm2 = null;
Date dateAmPm3 = null;
Date dateAmPm4 = null;
Date date0 = null;
Date date1 = null;
Date ... | Lang | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | [
{
"be_test_class_file": "org/apache/commons/lang3/time/DateUtils.java",
"be_test_class_name": "org.apache.commons.lang3.time.DateUtils",
"be_test_function_name": "modify",
"be_test_function_signature": "(Ljava/util/Calendar;II)V",
"line_numbers": [
"957",
"958",
"961",
"9... | |
public class ComplexTest | @Test
public void testNthRoot_cornercase_thirdRoot_imaginaryPartEmpty() {
// The number 8 has three third roots. One we all already know is the number 2.
// But there are two more complex roots.
Complex z = new Complex(8,0);
// The List holding all third roots
Complex[] t... | // public void testScalarAdd();
// @Test
// public void testScalarAddNaN();
// @Test
// public void testScalarAddInf();
// @Test
// public void testConjugate();
// @Test
// public void testConjugateNaN();
// @Test
// public void testConjugateInfiinite();
// @Test
// public ... | src/test/java/org/apache/commons/math3/complex/ComplexTest.java | package org.apache.commons.math3.complex;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import org.apache.commons.math3.FieldElement;
import org.apache.commons.math3.exception.NotPositiveException;
import org.apache.commons.math3.exception.NullArgumentException;
import org.apache.comm... | public Complex(double real);
public Complex(double real, double imaginary);
public double abs();
public Complex add(Complex addend) throws NullArgumentException;
public Complex add(double addend);
public Complex conjugate();
public Complex divide(Complex divisor)
throws NullArgumentE... | 1,166 | testNthRoot_cornercase_thirdRoot_imaginaryPartEmpty | ```java
public void testScalarAdd();
@Test
public void testScalarAddNaN();
@Test
public void testScalarAddInf();
@Test
public void testConjugate();
@Test
public void testConjugateNaN();
@Test
public void testConjugateInfiinite();
@Test
public void testDivide();
@Test
... | 1,148 | // public void testScalarAdd();
// @Test
// public void testScalarAddNaN();
// @Test
// public void testScalarAddInf();
// @Test
// public void testConjugate();
// @Test
// public void testConjugateNaN();
// @Test
// public void testConjugateInfiinite();
// @Test
// public ... | /**
* Test: computing <b>third roots</b> of z.
* <pre>
* <code>
* <b>z = 8</b>
* => z_0 = 2
* => z_1 = -1 + 1.73205 * i
* => z_2 = -1 - 1.73205 * i
* </code>
* </pre>
*/ | 1 | org.apache.commons.math3.complex.Complex | src/test/java | ```java
public void testScalarAdd();
@Test
public void testScalarAddNaN();
@Test
public void testScalarAddInf();
@Test
public void testConjugate();
@Test
public void testConjugateNaN();
@Test
public void testConjugateInfiinite();
@Test
public void testDivide();
@Test
... | public class Complex implements FieldElement<Complex>, Serializable | package org.apache.commons.math3.complex;
import org.apache.commons.math3.TestUtils;
import org.apache.commons.math3.exception.NullArgumentException;
import org.apache.commons.math3.util.FastMath;
import org.junit.Assert;
import org.junit.Test;
import java.util.List;
| @Test
public void testConstructor();
@Test
public void testConstructorNaN();
@Test
public void testAbs();
@Test
public void testAbsNaN();
@Test
public void testAbsInfinite();
@Test
public void testAdd();
@Test
public void testAddNaN();
@Test
public void testAddInf... | f6860ee8198322da690ef2ef99268e293940ae22c6b04db71f3fa299ba8a8dd5 | [
"org.apache.commons.math3.complex.ComplexTest::testNthRoot_cornercase_thirdRoot_imaginaryPartEmpty"
] | public static final Complex I = new Complex(0.0, 1.0);
public static final Complex NaN = new Complex(Double.NaN, Double.NaN);
public static final Complex INF = new Complex(Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY);
public static final Complex ONE = new Complex(1.0, 0.0);
public static fina... | @Test
public void testNthRoot_cornercase_thirdRoot_imaginaryPartEmpty() | private double inf = Double.POSITIVE_INFINITY;
private double neginf = Double.NEGATIVE_INFINITY;
private double nan = Double.NaN;
private double pi = FastMath.PI;
private Complex oneInf = new Complex(1, inf);
private Complex oneNegInf = new Complex(1, neginf);
private Complex infOne = new Complex(i... | Math | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | [
{
"be_test_class_file": "org/apache/commons/math3/complex/Complex.java",
"be_test_class_name": "org.apache.commons.math3.complex.Complex",
"be_test_function_name": "abs",
"be_test_function_signature": "()D",
"line_numbers": [
"116",
"117",
"119",
"120",
"122",
... | |
public class ZipArchiveInputStreamTest | @Test
public void testMessageWithCorruptFileName() throws Exception {
try (ZipArchiveInputStream in = new ZipArchiveInputStream(new FileInputStream(getFile("COMPRESS-351.zip")))) {
ZipArchiveEntry ze = in.getNextZipEntry();
while (ze != null) {
ze = in.getNextZipE... | // private static final int LFH_LEN = 30;
// private static final int CFH_LEN = 46;
// private static final long TWO_EXP_32 = ZIP64_MAGIC + 1;
// private final byte[] lfhBuf = new byte[LFH_LEN];
// private final byte[] skipBuf = new byte[1024];
// private final byte[] shortBuf = new byte[SHORT];... | src/test/java/org/apache/commons/compress/archivers/zip/ZipArchiveInputStreamTest.java | package org.apache.commons.compress.archivers.zip;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.EOFException;
import java.io.IOException;
import java.io.InputStream;
import java.io.PushbackInputStream;
import java.nio.ByteBuffer;
import java.util.zip.CRC32;
import java.util... | public ZipArchiveInputStream(final InputStream inputStream);
public ZipArchiveInputStream(final InputStream inputStream, final String encoding);
public ZipArchiveInputStream(final InputStream inputStream, final String encoding, final boolean useUnicodeExtraFields);
public ZipArchiveInputStream(final Inp... | 195 | testMessageWithCorruptFileName | ```java
private static final int LFH_LEN = 30;
private static final int CFH_LEN = 46;
private static final long TWO_EXP_32 = ZIP64_MAGIC + 1;
private final byte[] lfhBuf = new byte[LFH_LEN];
private final byte[] skipBuf = new byte[1024];
private final byte[] shortBuf = new byte[SHORT];
priva... | 183 | // private static final int LFH_LEN = 30;
// private static final int CFH_LEN = 46;
// private static final long TWO_EXP_32 = ZIP64_MAGIC + 1;
// private final byte[] lfhBuf = new byte[LFH_LEN];
// private final byte[] skipBuf = new byte[1024];
// private final byte[] shortBuf = new byte[SHORT];... | /**
* Test case for
* <a href="https://issues.apache.org/jira/browse/COMPRESS-351"
* >COMPRESS-351</a>.
*/ | 47 | org.apache.commons.compress.archivers.zip.ZipArchiveInputStream | src/test/java | ```java
private static final int LFH_LEN = 30;
private static final int CFH_LEN = 46;
private static final long TWO_EXP_32 = ZIP64_MAGIC + 1;
private final byte[] lfhBuf = new byte[LFH_LEN];
private final byte[] skipBuf = new byte[1024];
private final byte[] shortBuf = new byte[SHORT];
priva... | public class ZipArchiveInputStream extends ArchiveInputStream | package org.apache.commons.compress.archivers.zip;
import static org.apache.commons.compress.AbstractTestCase.getFile;
import static org.junit.Assert.assertArrayEquals;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import static org.... | @Test
public void winzipBackSlashWorkaround() throws Exception;
@Test
public void properUseOfInflater() throws Exception;
@Test
public void shouldConsumeArchiveCompletely() throws Exception;
@Test
public void shouldReadNestedZip() throws IOException;
private void extractZipInputStrea... | f84d4c5a8cbd6036074836fbb442033d2ebb57b3ab6fe8ce54ac17c9e1793095 | [
"org.apache.commons.compress.archivers.zip.ZipArchiveInputStreamTest::testMessageWithCorruptFileName"
] | private final ZipEncoding zipEncoding;
final String encoding;
private final boolean useUnicodeExtraFields;
private final InputStream in;
private final Inflater inf = new Inflater(true);
private final ByteBuffer buf = ByteBuffer.allocate(ZipArchiveOutputStream.BUFFER_SIZE);
private CurrentEnt... | @Test
public void testMessageWithCorruptFileName() throws Exception | Compress | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you... | [
{
"be_test_class_file": "org/apache/commons/compress/archivers/zip/ZipArchiveInputStream.java",
"be_test_class_name": "org.apache.commons.compress.archivers.zip.ZipArchiveInputStream",
"be_test_function_name": "close",
"be_test_function_signature": "()V",
"line_numbers": [
"554",
"55... | ||
public class TestDateTimeComparator extends TestCase | public void testSecond() {
aDateTime = getADate( "1969-12-31T23:59:58" );
bDateTime = getADate( "1969-12-31T23:50:59" );
assertEquals( "SecondM1a", -1, cSecond.compare( aDateTime, bDateTime ) );
assertEquals( "SecondP1a", 1, cSecond.compare( bDateTime, aDateTime ) );
aDateTim... | // // Abstract Java Tested Class
// package org.joda.time;
//
// import java.io.Serializable;
// import java.util.Comparator;
// import org.joda.time.convert.ConverterManager;
// import org.joda.time.convert.InstantConverter;
//
//
//
// public class DateTimeComparator implements Comparator<Object>, Serializable {... | src/test/java/org/joda/time/TestDateTimeComparator.java | package org.joda.time;
import java.io.Serializable;
import java.util.Comparator;
import org.joda.time.convert.ConverterManager;
import org.joda.time.convert.InstantConverter;
| public static DateTimeComparator getInstance();
public static DateTimeComparator getInstance(DateTimeFieldType lowerLimit);
public static DateTimeComparator getInstance(DateTimeFieldType lowerLimit, DateTimeFieldType upperLimit);
public static DateTimeComparator getDateOnlyInstance();
public static ... | 443 | testSecond | ```java
// Abstract Java Tested Class
package org.joda.time;
import java.io.Serializable;
import java.util.Comparator;
import org.joda.time.convert.ConverterManager;
import org.joda.time.convert.InstantConverter;
public class DateTimeComparator implements Comparator<Object>, Serializable {
private static final... | 434 | // // Abstract Java Tested Class
// package org.joda.time;
//
// import java.io.Serializable;
// import java.util.Comparator;
// import org.joda.time.convert.ConverterManager;
// import org.joda.time.convert.InstantConverter;
//
//
//
// public class DateTimeComparator implements Comparator<Object>, Serializable {... | /**
* Test unequal comparisons with second comparators.
*/
// } // end of testMillis
// assertEquals( "MillisP1", 1, cMillis.compare( bDateTime, aDateTime ) );
// assertEquals( "MillisM1", -1, cMillis.compare( aDateTime, bDateTime ) );
// bDateTime = new DateTime( aDateTime.g... | 1 | org.joda.time.DateTimeComparator | src/test/java | ```java
// Abstract Java Tested Class
package org.joda.time;
import java.io.Serializable;
import java.util.Comparator;
import org.joda.time.convert.ConverterManager;
import org.joda.time.convert.InstantConverter;
public class DateTimeComparator implements Comparator<Object>, Serializable {
private static final... | public class DateTimeComparator implements Comparator<Object>, Serializable | package org.joda.time;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.lang.reflect.Modifier;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Collections;
import java.util.Comparator;
imp... | public static void main(String[] args);
public static TestSuite suite();
public TestDateTimeComparator(String name);
public void setUp() /* throws Exception */;
protected void tearDown() /* throws Exception */;
public void testClass();
public void testStaticGetInstance();
public void tes... | f86148a6dc4a9dea418d8a9bd088c59afb8d8adca2248d41c2f407cc45a30c36 | [
"org.joda.time.TestDateTimeComparator::testSecond"
] | private static final long serialVersionUID = -6097339773320178364L;
private static final DateTimeComparator ALL_INSTANCE = new DateTimeComparator(null, null);
private static final DateTimeComparator DATE_INSTANCE = new DateTimeComparator(DateTimeFieldType.dayOfYear(), null);
private static final DateTim... | public void testSecond() | private static final Chronology ISO = ISOChronology.getInstance();
DateTime aDateTime = null;
DateTime bDateTime = null;
Comparator cMillis = null;
Comparator cSecond = null;
Comparator cMinute = null;
Comparator cHour = null;
Comparator cDayOfWeek = null;
Comparator cDayOfMonth = nu... | Time | /*
* Copyright 2001-2005 Stephen Colebourne
*
* 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... | [
{
"be_test_class_file": "org/joda/time/DateTimeComparator.java",
"be_test_class_name": "org.joda.time.DateTimeComparator",
"be_test_function_name": "compare",
"be_test_function_signature": "(Ljava/lang/Object;Ljava/lang/Object;)I",
"line_numbers": [
"192",
"193",
"194",
"... | |
public class GLSMultipleLinearRegressionTest extends MultipleLinearRegressionAbstractTest | @Test
public void testGLSEfficiency() {
RandomGenerator rg = new JDKRandomGenerator();
rg.setSeed(200); // Seed has been selected to generate non-trivial covariance
// Assume model has 16 observations (will use Longley data). Start by generating
// non-constant varianc... | // // Abstract Java Tested Class
// package org.apache.commons.math3.stat.regression;
//
// import org.apache.commons.math3.linear.LUDecomposition;
// import org.apache.commons.math3.linear.RealMatrix;
// import org.apache.commons.math3.linear.Array2DRowRealMatrix;
// import org.apache.commons.math3.linear.RealVector;... | src/test/java/org/apache/commons/math3/stat/regression/GLSMultipleLinearRegressionTest.java | package org.apache.commons.math3.stat.regression;
import org.apache.commons.math3.linear.LUDecomposition;
import org.apache.commons.math3.linear.RealMatrix;
import org.apache.commons.math3.linear.Array2DRowRealMatrix;
import org.apache.commons.math3.linear.RealVector;
| public void newSampleData(double[] y, double[][] x, double[][] covariance);
protected void newCovarianceData(double[][] omega);
protected RealMatrix getOmegaInverse();
@Override
protected RealVector calculateBeta();
@Override
protected RealMatrix calculateBetaVariance();
@Override
pr... | 294 | testGLSEfficiency | ```java
// Abstract Java Tested Class
package org.apache.commons.math3.stat.regression;
import org.apache.commons.math3.linear.LUDecomposition;
import org.apache.commons.math3.linear.RealMatrix;
import org.apache.commons.math3.linear.Array2DRowRealMatrix;
import org.apache.commons.math3.linear.RealVector;
public cl... | 216 | // // Abstract Java Tested Class
// package org.apache.commons.math3.stat.regression;
//
// import org.apache.commons.math3.linear.LUDecomposition;
// import org.apache.commons.math3.linear.RealMatrix;
// import org.apache.commons.math3.linear.Array2DRowRealMatrix;
// import org.apache.commons.math3.linear.RealVector;... | /**
* Generate an error covariance matrix and sample data representing models
* with this error structure. Then verify that GLS estimated coefficients,
* on average, perform better than OLS.
*/ | 1 | org.apache.commons.math3.stat.regression.GLSMultipleLinearRegression | src/test/java | ```java
// Abstract Java Tested Class
package org.apache.commons.math3.stat.regression;
import org.apache.commons.math3.linear.LUDecomposition;
import org.apache.commons.math3.linear.RealMatrix;
import org.apache.commons.math3.linear.Array2DRowRealMatrix;
import org.apache.commons.math3.linear.RealVector;
public cl... | public class GLSMultipleLinearRegression extends AbstractMultipleLinearRegression | package org.apache.commons.math3.stat.regression;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.apache.commons.math3.TestUtils;
import org.apache.commons.math3.linear.MatrixUtils;
import org.apache.commons.math3.linear.RealMatrix;
import org.apache.commons.math3.linear.RealVector;... | @Before
@Override
public void setUp();
@Test(expected=IllegalArgumentException.class)
public void cannotAddXSampleData();
@Test(expected=IllegalArgumentException.class)
public void cannotAddNullYSampleData();
@Test(expected=IllegalArgumentException.class)
public void cannotAddSampleD... | f90f772e59fbd325fb582f2355e6ee8bb9dbc9ec9b4e2e4795f3d6418f6f1d81 | [
"org.apache.commons.math3.stat.regression.GLSMultipleLinearRegressionTest::testGLSEfficiency"
] | private RealMatrix Omega;
private RealMatrix OmegaInverse; | @Test
public void testGLSEfficiency() | private double[] y;
private double[][] x;
private double[][] omega;
private double[] longley = new double[] {
60323,83.0,234289,2356,1590,107608,1947,
61122,88.5,259426,2325,1456,108632,1948,
60171,88.2,258054,3682,1616,109773,1949,
61187,89.5,284599,3351,... | Math | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | [
{
"be_test_class_file": "org/apache/commons/math3/stat/regression/GLSMultipleLinearRegression.java",
"be_test_class_name": "org.apache.commons.math3.stat.regression.GLSMultipleLinearRegression",
"be_test_function_name": "calculateBeta",
"be_test_function_signature": "()Lorg/apache/commons/math3/line... | |
public class TestEthiopicChronology extends TestCase | public void testCalendar() {
if (TestAll.FAST) {
return;
}
System.out.println("\nTestEthiopicChronology.testCalendar");
DateTime epoch = new DateTime(1, 1, 1, 0, 0, 0, 0, ETHIOPIC_UTC);
long millis = epoch.getMillis();
long end = new DateTime(3000, 1, 1, 0... | // // Abstract Java Tested Class
// package org.joda.time.chrono;
//
// import java.util.HashMap;
// import java.util.Map;
// import org.joda.time.Chronology;
// import org.joda.time.DateTime;
// import org.joda.time.DateTimeConstants;
// import org.joda.time.DateTimeField;
// import org.joda.time.DateTimeZone;
// imp... | src/test/java/org/joda/time/chrono/TestEthiopicChronology.java | package org.joda.time.chrono;
import java.util.HashMap;
import java.util.Map;
import org.joda.time.Chronology;
import org.joda.time.DateTime;
import org.joda.time.DateTimeConstants;
import org.joda.time.DateTimeField;
import org.joda.time.DateTimeZone;
import org.joda.time.field.SkipDateTimeField;
| public static EthiopicChronology getInstanceUTC();
public static EthiopicChronology getInstance();
public static EthiopicChronology getInstance(DateTimeZone zone);
public static EthiopicChronology getInstance(DateTimeZone zone, int minDaysInFirstWeek);
EthiopicChronology(Chronology base, Object para... | 397 | testCalendar | ```java
// Abstract Java Tested Class
package org.joda.time.chrono;
import java.util.HashMap;
import java.util.Map;
import org.joda.time.Chronology;
import org.joda.time.DateTime;
import org.joda.time.DateTimeConstants;
import org.joda.time.DateTimeField;
import org.joda.time.DateTimeZone;
import org.joda.time.field.S... | 315 | // // Abstract Java Tested Class
// package org.joda.time.chrono;
//
// import java.util.HashMap;
// import java.util.Map;
// import org.joda.time.Chronology;
// import org.joda.time.DateTime;
// import org.joda.time.DateTimeConstants;
// import org.joda.time.DateTimeField;
// import org.joda.time.DateTimeZone;
// imp... | /**
* Tests era, year, monthOfYear, dayOfMonth and dayOfWeek.
*/
//----------------------------------------------------------------------- | 1 | org.joda.time.chrono.EthiopicChronology | src/test/java | ```java
// Abstract Java Tested Class
package org.joda.time.chrono;
import java.util.HashMap;
import java.util.Map;
import org.joda.time.Chronology;
import org.joda.time.DateTime;
import org.joda.time.DateTimeConstants;
import org.joda.time.DateTimeField;
import org.joda.time.DateTimeZone;
import org.joda.time.field.S... | public final class EthiopicChronology extends BasicFixedMonthChronology | package org.joda.time.chrono;
import java.util.Locale;
import java.util.TimeZone;
import junit.framework.TestCase;
import junit.framework.TestSuite;
import org.joda.time.Chronology;
import org.joda.time.DateTime;
import org.joda.time.DateTimeConstants;
import org.joda.time.DateTimeField;
import org.joda.time.DateTimeU... | public static void main(String[] args);
public static TestSuite suite();
public TestEthiopicChronology(String name);
protected void setUp() throws Exception;
protected void tearDown() throws Exception;
public void testFactoryUTC();
public void testFactory();
public void testFactory_Zone(... | f9c90521c068b3169bd618d79f0a920f5821da28474f5dff744164c48bd10228 | [
"org.joda.time.chrono.TestEthiopicChronology::testCalendar"
] | private static final long serialVersionUID = -5972804258688333942L;
public static final int EE = DateTimeConstants.CE;
private static final DateTimeField ERA_FIELD = new BasicSingleEraDateTimeField("EE");
private static final int MIN_YEAR = -292269337;
private static final int MAX_YEAR = 292272984;
... | public void testCalendar() | private static final int MILLIS_PER_DAY = DateTimeConstants.MILLIS_PER_DAY;
private static long SKIP = 1 * MILLIS_PER_DAY;
private static final DateTimeZone PARIS = DateTimeZone.forID("Europe/Paris");
private static final DateTimeZone LONDON = DateTimeZone.forID("Europe/London");
private static fina... | Time | /*
* Copyright 2001-2013 Stephen Colebourne
*
* 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... | [
{
"be_test_class_file": "org/joda/time/chrono/EthiopicChronology.java",
"be_test_class_name": "org.joda.time.chrono.EthiopicChronology",
"be_test_function_name": "assemble",
"be_test_function_signature": "(Lorg/joda/time/chrono/AssembledChronology$Fields;)V",
"line_numbers": [
"246",
... | |
public class FunctionInjectorTest extends TestCase | public void testInlineReferenceInExpression11() {
// Call under label
helperInlineReferenceToFunction(
"function foo(a){return true;}; " +
"function x() {a:foo(1)?0:1 }",
"function foo(a){return true;}; " +
"function x() {" +
" a:{" +
" var JSCompiler_inline... | // CanInlineResult.YES;
//
// @Override
// protected void setUp() throws Exception;
// private FunctionInjector getInjector();
// public void testIsSimpleFunction1();
// public void testIsSimpleFunction2();
// public void testIsSimpleFunction3();
// public void testIsSimpleFunction4();
// public void te... | test/com/google/javascript/jscomp/FunctionInjectorTest.java | package com.google.javascript.jscomp;
import com.google.common.base.Preconditions;
import com.google.common.base.Predicate;
import com.google.common.base.Predicates;
import com.google.common.base.Supplier;
import com.google.common.collect.Sets;
import com.google.javascript.jscomp.ExpressionDecomposer.DecompositionType... | public FunctionInjector(
AbstractCompiler compiler,
Supplier<String> safeNameIdSupplier,
boolean allowDecomposition,
boolean assumeStrictThis,
boolean assumeMinimumCapture);
boolean doesFunctionMeetMinimumRequirements(
final String fnName, Node fnNode);
CanInlineResult canInlin... | 1,170 | testInlineReferenceInExpression11 | ```java
CanInlineResult.YES;
@Override
protected void setUp() throws Exception;
private FunctionInjector getInjector();
public void testIsSimpleFunction1();
public void testIsSimpleFunction2();
public void testIsSimpleFunction3();
public void testIsSimpleFunction4();
public void testIsSimpleFunction5();... | 1,156 | // CanInlineResult.YES;
//
// @Override
// protected void setUp() throws Exception;
// private FunctionInjector getInjector();
// public void testIsSimpleFunction1();
// public void testIsSimpleFunction2();
// public void testIsSimpleFunction3();
// public void testIsSimpleFunction4();
// public void te... | // }
// "foo", INLINE_BLOCK);
// "b += 1 + JSCompiler_inline_result$$0 }",
// "JSCompiler_inline_result$$0=true;}" +
// "{var JSCompiler_inline_result$$0; " +
// "function x() {var b;" +
// "function foo(a){return true;}; " +
// "function x() {var b; b += 1 + fo... | 107 | com.google.javascript.jscomp.FunctionInjector | test | ```java
CanInlineResult.YES;
@Override
protected void setUp() throws Exception;
private FunctionInjector getInjector();
public void testIsSimpleFunction1();
public void testIsSimpleFunction2();
public void testIsSimpleFunction3();
public void testIsSimpleFunction4();
public void testIsSimpleFunction5();... | class FunctionInjector | package com.google.javascript.jscomp;
import com.google.common.collect.Lists;
import com.google.common.collect.Sets;
import com.google.javascript.jscomp.AbstractCompiler.LifeCycleStage;
import com.google.javascript.jscomp.FunctionInjector.CanInlineResult;
import com.google.javascript.jscomp.FunctionInjector.InliningMo... | @Override
protected void setUp() throws Exception;
private FunctionInjector getInjector();
public void testIsSimpleFunction1();
public void testIsSimpleFunction2();
public void testIsSimpleFunction3();
public void testIsSimpleFunction4();
public void testIsSimpleFunction5();
public void testIsSimpleFunction6(... | fcb19b08910dabcb8787c370824e51adc758bb21493c708dc57550fb066b6040 | [
"com.google.javascript.jscomp.FunctionInjectorTest::testInlineReferenceInExpression11"
] | private final AbstractCompiler compiler;
private final boolean allowDecomposition;
private Set<String> knownConstants = Sets.newHashSet();
private final boolean assumeStrictThis;
private final boolean assumeMinimumCapture;
private final Supplier<String> safeNameIdSupplier;
private final Supplier<String> t... | public void testInlineReferenceInExpression11() | static final InliningMode INLINE_DIRECT = InliningMode.DIRECT;
static final InliningMode INLINE_BLOCK = InliningMode.BLOCK;
private boolean assumeStrictThis = false;
private boolean assumeMinimumCapture = false;
static final CanInlineResult NEW_VARS_IN_GLOBAL_SCOPE =
CanInlineResult.YES; | Closure | /*
* Copyright 2008 The Closure Compiler Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... | [
{
"be_test_class_file": "com/google/javascript/jscomp/FunctionInjector.java",
"be_test_class_name": "com.google.javascript.jscomp.FunctionInjector",
"be_test_function_name": "access$200",
"be_test_function_signature": "(Lcom/google/javascript/jscomp/FunctionInjector;Lcom/google/javascript/rhino/Node... | |
public class OLSMultipleLinearRegressionTest extends MultipleLinearRegressionAbstractTest | @Test
public void testLongly() {
// Y values are first, then independent vars
// Each row is one observation
double[] design = new double[] {
60323,83.0,234289,2356,1590,107608,1947,
61122,88.5,259426,2325,1456,108632,1948,
60171,88.2,258054,3682,1616,... | // // Abstract Java Tested Class
// package org.apache.commons.math3.stat.regression;
//
// import org.apache.commons.math3.exception.MathIllegalArgumentException;
// import org.apache.commons.math3.linear.Array2DRowRealMatrix;
// import org.apache.commons.math3.linear.LUDecomposition;
// import org.apache.commons.mat... | src/test/java/org/apache/commons/math3/stat/regression/OLSMultipleLinearRegressionTest.java | package org.apache.commons.math3.stat.regression;
import org.apache.commons.math3.exception.MathIllegalArgumentException;
import org.apache.commons.math3.linear.Array2DRowRealMatrix;
import org.apache.commons.math3.linear.LUDecomposition;
import org.apache.commons.math3.linear.QRDecomposition;
import org.apache.common... | public void newSampleData(double[] y, double[][] x) throws MathIllegalArgumentException;
@Override
public void newSampleData(double[] data, int nobs, int nvars);
public RealMatrix calculateHat();
public double calculateTotalSumOfSquares() throws MathIllegalArgumentException;
public double calcul... | 215 | testLongly | ```java
// Abstract Java Tested Class
package org.apache.commons.math3.stat.regression;
import org.apache.commons.math3.exception.MathIllegalArgumentException;
import org.apache.commons.math3.linear.Array2DRowRealMatrix;
import org.apache.commons.math3.linear.LUDecomposition;
import org.apache.commons.math3.linear.QRD... | 114 | // // Abstract Java Tested Class
// package org.apache.commons.math3.stat.regression;
//
// import org.apache.commons.math3.exception.MathIllegalArgumentException;
// import org.apache.commons.math3.linear.Array2DRowRealMatrix;
// import org.apache.commons.math3.linear.LUDecomposition;
// import org.apache.commons.mat... | /**
* Test Longley dataset against certified values provided by NIST.
* Data Source: J. Longley (1967) "An Appraisal of Least Squares
* Programs for the Electronic Computer from the Point of View of the User"
* Journal of the American Statistical Association, vol. 62. September,
* pp. 819-8... | 1 | org.apache.commons.math3.stat.regression.OLSMultipleLinearRegression | src/test/java | ```java
// Abstract Java Tested Class
package org.apache.commons.math3.stat.regression;
import org.apache.commons.math3.exception.MathIllegalArgumentException;
import org.apache.commons.math3.linear.Array2DRowRealMatrix;
import org.apache.commons.math3.linear.LUDecomposition;
import org.apache.commons.math3.linear.QRD... | public class OLSMultipleLinearRegression extends AbstractMultipleLinearRegression | package org.apache.commons.math3.stat.regression;
import org.apache.commons.math3.TestUtils;
import org.apache.commons.math3.linear.DefaultRealMatrixChangingVisitor;
import org.apache.commons.math3.linear.MatrixUtils;
import org.apache.commons.math3.linear.RealMatrix;
import org.apache.commons.math3.linear.Array2DRowR... | @Before
@Override
public void setUp();
@Override
protected OLSMultipleLinearRegression createRegression();
@Override
protected int getNumberOfRegressors();
@Override
protected int getSampleSize();
@Test(expected=IllegalArgumentException.class)
public void cannotAddSampleDataW... | ff62c89f00464f0b533c13b9757d2fa263275ef21910395507dba0252934f4b7 | [
"org.apache.commons.math3.stat.regression.OLSMultipleLinearRegressionTest::testLongly"
] | private QRDecomposition qr = null; | @Test
public void testLongly() | private double[] y;
private double[][] x; | Math | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | [
{
"be_test_class_file": "org/apache/commons/math3/stat/regression/OLSMultipleLinearRegression.java",
"be_test_class_name": "org.apache.commons.math3.stat.regression.OLSMultipleLinearRegression",
"be_test_function_name": "calculateAdjustedRSquared",
"be_test_function_signature": "()D",
"line_numb... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.