W3C home > Mailing lists > Public > public-mobileok-checker@w3.org > July 2015

Problems with example code in developer documentation

From: jorge lima <jorge.ayala2012@gmail.com>
Date: Tue, 21 Jul 2015 19:10:03 -0300
Message-ID: <CAELS9=iTHo=zQvDp4Xy-T=j-soCgeb1cY-FQiH0h-c8oieaYaA@mail.gmail.com>
To: public-mobileok-checker@w3.org
Hi,

I'm trying to test the code that is avaliable in the point 5.1 of
development documentation:

        URI uri = new URI("http://www.mymobilesite.com");
        Tester tester = new Tester(uri);
        TestType[] testTypes;
        //all tests will be passed
        testTypes = TestType.values();
        TestResults results = tester.runTests(testTypes);
        //Process the Result DOM. For example printing it to the common
output
        printResults(results.getTestResultsDOM());

But it's showing this error:

incompatible types: Testtype[] cannot be converted to
List<TestImplementation>.

I've tried to use this List<TestImplementation> but the he ask me to
implement the TesterConfiguration.

Help me please.
Received on Tuesday, 21 July 2015 22:10:49 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 21 July 2015 22:10:49 UTC