You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
1.1 KiB
38 lines
1.1 KiB
package com.gary.exercise;
|
|
|
|
import com.gary.exercise.config.FileConfig;
|
|
import com.gary.exercise.dto.ActionDto;
|
|
import com.gary.exercise.enums.LakerPlayer;
|
|
import com.gary.exercise.service.ExerciseService;
|
|
import com.gary.exercise.service.impl.ExerciseServiceImpl;
|
|
import org.springframework.boot.test.context.SpringBootTest;
|
|
|
|
import java.io.IOException;
|
|
import java.util.ArrayList;
|
|
|
|
@SpringBootTest
|
|
class ExerciseApplicationTests {
|
|
|
|
private final ExerciseService exerciseService;
|
|
|
|
private final int hang =1;
|
|
|
|
ExerciseApplicationTests(ExerciseService exerciseService) {
|
|
this.exerciseService = exerciseService;
|
|
}
|
|
|
|
public static void main(String[] args) throws IOException {
|
|
|
|
FileConfig fileConfig =new FileConfig();
|
|
ExerciseService exerciseService = new ExerciseServiceImpl(fileConfig);
|
|
ArrayList<String> list= (ArrayList<String>) exerciseService.readRow(12);
|
|
/* String whichTeamAttack= exerciseService.getActionTeam(6);
|
|
System.out.println(whichTeamAttack);*/
|
|
ActionDto result= exerciseService.getResult(6);
|
|
System.out.println(result);
|
|
|
|
|
|
|
|
}
|
|
}
|