package com.izouma.walkchina.service; import me.chanjar.weixin.common.error.WxErrorException; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.test.context.junit4.SpringRunner; import java.awt.*; import java.io.IOException; @RunWith(SpringRunner.class) @SpringBootTest public class TeamServiceTest { @Autowired private TeamService teamService; @Test public void hire() { } @Test public void canHire() { } @Test public void userTeam() { } @Test public void userFriend() { } @Test public void userLeader() { } @Test public void createShareImg() { try { teamService.recruitImg(1842L); } catch (IOException | FontFormatException | WxErrorException e) { e.printStackTrace(); } } }