无关风月
2025-05-08 9486766c806fe1d9e082b2fd02ea1cc558f1b443
cloud-server-account/src/test/java/com/dsh/AccountApplicationTests.java
@@ -1,22 +1,27 @@
package com.dsh;
import com.dsh.account.controller.CoachTypeController;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import java.util.List;
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT, classes = AccountApplication.class)
class AccountApplicationTests {
    @Autowired
    private CoachTypeController controller;
    @Test
    void contextLoads() {
      System.out.println("==============="+controller.list());
    }
}
//package com.dsh;
//
//import com.dsh.account.controller.CoachTypeController;
//
//import org.junit.jupiter.api.Test;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.boot.test.context.SpringBootTest;
//
//import java.util.List;
//
//@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT, classes = AccountApplication.class)
//class AccountApplicationTests {
//
//    @Autowired
//    private CoachTypeController controller;
//
//
//    @Test
//    void contextLoads() {
//        System.out.println(System.getProperty("java.version"));
//        System.out.println(System.getProperty("java.compiler"));
//        System.out.println(System.getProperty("java.vm.specification.version"));
//        System.out.println(System.getProperty("java.specification.version"));
//
//    }
//
//}