Package com.topcoder.shared.problem

Examples of com.topcoder.shared.problem.DataType


        plugin.startUsing();

        final ProblemComponentModel inputComponentModel = context.mock(ProblemComponentModel.class);
        context.checking(new Expectations(){{
            allowing(inputComponentModel).getClassName(); will(returnValue("BinaryCode"));
            allowing(inputComponentModel).getReturnType();   will(returnValue(new DataType("int")));
            allowing(inputComponentModel).getMethodName();   will(returnValue("multiply"));
            allowing(inputComponentModel).getParamTypes();   will(returnValue(new DataType[0]));
            allowing(inputComponentModel).getParamNames();   will(returnValue(new String[0]));
            allowing(inputComponentModel).getTestCases();    will(returnValue(new com.topcoder.shared.problem.TestCase[] {new com.topcoder.shared.problem.TestCase(1, new String[0], "1", false)}));
        }});
View Full Code Here


    };

    public static DataType dataType(String descriptor) {
        HashMap<Integer, String> descriptorsMap = new HashMap<Integer, String>();
        descriptorsMap.put(JavaLanguage.JAVA_LANGUAGE.getId(), descriptor);
        return new DataType(1, descriptor, descriptorsMap);
    }
View Full Code Here

TOP

Related Classes of com.topcoder.shared.problem.DataType

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.