From e65e3cc5ded712d98e376693b87cb2c59fc170c3 Mon Sep 17 00:00:00 2001 From: lenghui Date: Wed, 25 Dec 2024 14:56:40 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=B5=8B=E8=AF=95=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/lh/VoteSystemApplicationTests.java | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/src/test/java/com/lh/VoteSystemApplicationTests.java b/src/test/java/com/lh/VoteSystemApplicationTests.java index f03e95b..e553a4d 100644 --- a/src/test/java/com/lh/VoteSystemApplicationTests.java +++ b/src/test/java/com/lh/VoteSystemApplicationTests.java @@ -1,34 +1,12 @@ package com.lh; -import com.lh.mapper.CandidatesMapper; -import com.lh.mapper.VoterMapper; -import com.lh.service.VoteService; import org.junit.jupiter.api.Test; -import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBootTest; @SpringBootTest class VoteSystemApplicationTests { - @Autowired - private CandidatesMapper candidatesMapper; - @Autowired - private VoterMapper voterMapper; - @Autowired - private VoteService voteService; @Test void contextLoads() { - candidatesMapper.getCandidates().forEach(System.out::println); - //System.out.print( voterMapper.countVotesToday("10010")); - voteService.getCandidates("90044599").forEach(System.out::println); } - @Test - void contextLoads1() { - voterMapper.getVotesByCandidate("90044602").forEach(System.out::println); - } - @Test - void contextLoads2() { - voterMapper.insertVote("10010","20010","王五"); - } - }