package cn.quant.baa.pay;

import cn.quant.spring.util.IdentitySequencer;
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;


/**
 * <p><b>JUnit VM Option:</b><br/>
 * <code>-Dspring.config.file=${project.build.directory}/target/config/application-dev.properties </code><br/>
 * </p>
 */
@RunWith(SpringRunner.class)
@SpringBootTest(classes = {ServerApplication.class})
public class TestApplication {

    @Autowired
    private IdentitySequencer identitySequencer;

    @Test
    public void idWorker() {

        System.out.println(identitySequencer.nextId());
        System.currentTimeMillis();
        return;
    }
}
