Search in sources :

Example 21 with Values

use of com.sun.tck.lib.tgf.Values in project jtharness by openjdk.

the class Multiply method testRun_empty_5.

@Test
public void testRun_empty_5() {
    final ArrayList<String> arrayList = new ArrayList<String>();
    com.oracle.tck.lib.autd2.TestResult status = com.oracle.tck.lib.autd2.unittests.TU.runTestGroup(new BaseTestGroup() {

        Values setupOne() {
            return DataFactory.createColumn(5, 6, 7, 8).pseudoMultiply();
        }

        @TestCase
        @TestData("setupOne")
        public void myTest(String s) {
            arrayList.add(s);
        }
    }, TU.EMPTY_ARGV);
    Assert.assertEquals(0, arrayList.size());
    Assert.assertTrue(status.isOK());
    Assert.assertEquals("Passed. test cases: 1; all passed", status.toString());
}
Also used : TestData(com.sun.tck.lib.tgf.TestData) TestCase(com.sun.tck.test.TestCase) ArrayList(java.util.ArrayList) Values(com.sun.tck.lib.tgf.Values) BaseTestGroup(com.oracle.tck.lib.autd2.unittests.BaseTestGroup) Test(org.junit.Test)

Example 22 with Values

use of com.sun.tck.lib.tgf.Values in project jtharness by openjdk.

the class Multiply method testCombineCombine_3_supportingMethod_1.

@Test
public void testCombineCombine_3_supportingMethod_1() {
    Values values_1 = createColumn(1, 2);
    Values values_2 = createColumn(3, 4);
    Values values_3 = createColumn(5, 6);
    checkCombineCombine_3(multiply(values_1, values_2, values_3));
}
Also used : Values(com.sun.tck.lib.tgf.Values) Test(org.junit.Test)

Example 23 with Values

use of com.sun.tck.lib.tgf.Values in project jtharness by openjdk.

the class Multiply method testCombineCombine_2.

@Test
public void testCombineCombine_2() {
    Values values = createColumn(1, 2);
    values = values.multiply(createColumn(3, 4));
    values = values.multiply(createColumn(5, 6));
    checkCombineCombine_3(values);
}
Also used : Values(com.sun.tck.lib.tgf.Values) Test(org.junit.Test)

Example 24 with Values

use of com.sun.tck.lib.tgf.Values in project jtharness by openjdk.

the class Multiply method testRun_empty_1.

@Test
public void testRun_empty_1() {
    final ArrayList<String> arrayList = new ArrayList<String>();
    com.oracle.tck.lib.autd2.TestResult status = com.oracle.tck.lib.autd2.unittests.TU.runTestGroup(new BaseTestGroup() {

        Values setupOne() {
            return DataFactory.createColumn().multiply(1, 2, 3);
        }

        @TestCase
        @TestData("setupOne")
        public void myTest(String s) {
            arrayList.add(s);
        }
    }, TU.EMPTY_ARGV);
    Assert.assertEquals(0, arrayList.size());
    Assert.assertTrue(status.isOK());
    Assert.assertEquals("Passed. test cases: 1; all passed", status.toString());
}
Also used : TestData(com.sun.tck.lib.tgf.TestData) TestCase(com.sun.tck.test.TestCase) ArrayList(java.util.ArrayList) Values(com.sun.tck.lib.tgf.Values) BaseTestGroup(com.oracle.tck.lib.autd2.unittests.BaseTestGroup) Test(org.junit.Test)

Example 25 with Values

use of com.sun.tck.lib.tgf.Values in project jtharness by openjdk.

the class Multiply method testRun_empty_2.

@Test
public void testRun_empty_2() {
    final ArrayList<String> arrayList = new ArrayList<String>();
    com.oracle.tck.lib.autd2.TestResult status = com.oracle.tck.lib.autd2.unittests.TU.runTestGroup(new BaseTestGroup() {

        Values setupOne() {
            return DataFactory.createColumn(1, 2, 3).multiply();
        }

        @TestCase
        @TestData("setupOne")
        public void myTest(String s) {
            arrayList.add(s);
        }
    }, TU.EMPTY_ARGV);
    Assert.assertEquals(0, arrayList.size());
    Assert.assertTrue(status.isOK());
    Assert.assertEquals("Passed. test cases: 1; all passed", status.toString());
}
Also used : TestData(com.sun.tck.lib.tgf.TestData) TestCase(com.sun.tck.test.TestCase) ArrayList(java.util.ArrayList) Values(com.sun.tck.lib.tgf.Values) BaseTestGroup(com.oracle.tck.lib.autd2.unittests.BaseTestGroup) Test(org.junit.Test)

Aggregations

Values (com.sun.tck.lib.tgf.Values)528 Test (org.junit.Test)512 ArrayList (java.util.ArrayList)459 TestObject (com.oracle.tck.lib.autd2.unittests.TestObject)80 DataFactory.createValues (com.sun.tck.lib.tgf.DataFactory.createValues)50 Transform (com.sun.tck.lib.tgf.Transform)32 TestResult (com.oracle.tck.lib.autd2.TestResult)31 TestCase (com.sun.tck.test.TestCase)28 TestGroup (com.sun.tck.test.TestGroup)27 TestData (com.sun.tck.lib.tgf.TestData)22 BaseTestGroup (com.oracle.tck.lib.autd2.unittests.BaseTestGroup)21 ValuesImplSlow (com.oracle.tck.lib.autd2.unittests.tgfported.ValuesImplSlow)12 IntPair (com.oracle.tck.lib.autd2.unittests.IntPair)7 Operation (com.sun.tck.lib.tgf.data.Operation)6 DataFactory (com.sun.tck.lib.tgf.DataFactory)5 Color (java.awt.Color)5 ColorSpace (java.awt.color.ColorSpace)3 RandomAccess (java.util.RandomAccess)3 Assert.assertEquals (com.sun.tck.lib.Assert.assertEquals)2 Assert.assertTrue (com.sun.tck.lib.Assert.assertTrue)2