src/test/java/com/zhazhapan/efo/EfoApplicationTest.java

(完整代码) 653B

package com.zhazhapan.efo;

import com.zhazhapan.config.JsonParser;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import java.io.IOException;

@RunWith(SpringRunner.class)
@SpringBootTest
public class EfoApplicationTest {

    public static void setSettings() {
        try {
            EfoApplication.settings = new JsonParser(EfoApplicationTest.class.getResource("/config.json"));
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

    @Test
    public void contextLoads() {
    }

}

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读 AI

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。