@@ -0,0 +1,1440 @@
+package org.algohub.engine.judge;%0A%0Aimport java.io.File;%0Aimport java.io.IOException;%0Aimport java.nio.charset.StandardCharsets;%0Aimport java.nio.file.Paths;%0Aimport org.algohub.engine.pojo.Problem;%0Aimport org.algohub.engine.type.LanguageType;%0Aimport org.algohub.engine.util.ObjectMapperInstance;%0Aimport org.junit.Test;%0A%0A%0Apublic class JudgeOneTest %7B%0A%0A  @Test%0A  public void judgeOne() %7B%0A    judgeOne(%22permutation-sequence%22, LanguageType.PYTHON);%0A  %7D%0A%0A  private static void judgeOne(final String problemId, LanguageType languageType) %7B%0A    final File solutionDir = new File(%22src/test/resources/solutions/%22);%0A    final File problemDir = new File(%22src/test/resources/problems/%22);%0A%0A    try %7B%0A      final String problemJson = new String(java.nio.file.Files.readAllBytes(%0A          Paths.get(problemDir.getAbsolutePath(), problemId + %22.json%22)),%0A          StandardCharsets.UTF_8);%0A      final Problem problem = ObjectMapperInstance.INSTANCE.readValue(problemJson, Problem.class);%0A      final File solutionFile = Paths.get(solutionDir.getAbsolutePath(), problemId).toFile().listFiles(%0A          (dir, name) -%3E name.toLowerCase().endsWith(%22.%22 + languageType.getFileSuffix()))%5B0%5D;%0A      final String userCode = new String(java.nio.file.Files.readAllBytes(solutionFile.toPath()),%0A              StandardCharsets.UTF_8);%0A      JudgeEngineTestUtil.judgeOne(problem, userCode, languageType);%0A    %7D catch (IOException e) %7B%0A      e.printStackTrace();%0A    %7D%0A  %7D%0A%7D%0A

Test against one specified problem with one language, for debug only