package com.dangdang.ddframe.job.lite.api.strategy; import com.dangdang.ddframe.job.util.env.IpUtils; import org.junit.Test; import static org.hamcrest.core.Is.is; import static org.junit.Assert.assertThat; public final class JobInstanceTest { @Test public void assertGetJobInstanceId() { assertThat(new JobInstance("127.0.0.1@-@0").getJobInstanceId(), is("127.0.0.1@-@0")); } @Test public void assertGetIp() { assertThat(new JobInstance().getIp(), is(IpUtils.getIp())); } }