Examples of Problem


Examples of ru.syktsu.projects.oko.objects.Problem

    super.setUp();
    // start the TCP Server with SSL enabled
    String[] args = new String[] { "-ssl", "true" };
    //server = Server.createTcpServer(args);
    //server.start();
    Problem problem = new Problem();
    // problem.setId("3");
    TestPack testPack = new TestPack();
    //testPack.setId("02");
    Test test = new Test();
    test.setId("01");
    test.setInputData("11");
    test.setNumber(1);
    testPack.getTestSet().put(1, test);
    //testPack.setProblemId("3");
    problem.setTestPack(testPack);
    problem.setName("name");
    problem.setContentBody("body");
    Metadata md = new Metadata();
    md.setComment("comment");
    problem.setMetadata(md);
    ProblemManager.CommitProblem(problem);
   
    id = problem.getId();
    //assertEquals("name",problem.getId());
  }
View Full Code Here

Examples of ru.syktsu.projects.oko2.server.objects.Problem

        result.testCount = input.getTestCount();
        return result;
    }
   
    public static Problem convert(JaxbProblem input) {
        Problem result = new Problem();
        result.setContentBody(input.contentBody);
        result.setContentInput(input.contentInput);
        result.setContentOutput(input.contentOutput);
        result.setId(input.id);
        result.setMetadata(convert(input.metadata));
        result.setName(input.name);
        result.setPublished(input.published);
        result.setTestCount(input.testCount);
        result.getTestList().addAll(input.testList);
        result.getImageList().addAll(input.imageList);
        return result;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.