test @bean from file json
package tech.zdev.payment.bot.bean;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.ActiveProfiles;
import org.springframework.test.context.junit4.SpringRunner;
import tech.zdev.payment.bot.bean.payme.PaymeBean;
import static org.junit.Assert.*;
@RunWith(SpringRunner.class)
@SpringBootTest
@ActiveProfiles("dev")
public class PaymeBeanTest {
@Autowired
@Qualifier("paymeBean")
PaymeBean paymeBean;
@Test
public void test() {
paymeBean.getCommissions();
assertFalse(paymeBean.getCommissions().isEmpty());
assertFalse(paymeBean.getRemarks().isEmpty());
}
}
assertNotSame("", response.getData().getRefunds().getCreateAttachmentUploadURL());