GZMachinesWeb/.svn/pristine/8d/8ddf0c4aa8f8bb70f108aa46f49...

34 lines
863 B
Plaintext
Raw Normal View History

2025-06-20 17:47:53 +08:00
package com.bonus.scrap.service;
import static org.junit.Assert.*;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import com.bonus.scrap.beans.ScrapAuditBean;
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = "classpath:spring/spring-application.xml")
public class ScrapAuditServiceImpTest {
@Autowired
private ScrapAuditService service;
@Test
public void approvalApply() {
ScrapAuditBean bean= new ScrapAuditBean();
bean.setId(1);
service.findScrapApplyById(bean);
}
@Test
public void findScrapFileById() {
ScrapAuditBean bean= new ScrapAuditBean();
bean.setId(1);
service.findScrapFileById(bean);
}
}