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.
36 lines
724 B
36 lines
724 B
package com.example.demo;
|
|
|
|
import com.example.demo.repository.DiancanRespository;
|
|
import com.example.demo.repository.MenuRepository;
|
|
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
|
|
class DemoApplicationTests {
|
|
|
|
@Autowired
|
|
private MenuRepository menuRepository;
|
|
|
|
@Autowired
|
|
private DiancanRespository diancanRespository;
|
|
|
|
@Test
|
|
void contextLoads() {
|
|
}
|
|
|
|
@Test
|
|
void testGetMenu(){
|
|
List<String> l= menuRepository.getPinmuByFenlei("正菜");
|
|
|
|
l=menuRepository.getFenlei();
|
|
}
|
|
|
|
@Test
|
|
void testcheckZhuoHao(){
|
|
int a=diancanRespository.countByZhuohao("2");
|
|
}
|
|
|
|
}
|
|
|