1 package org.robolectric.internal.dependency; 2 3 import static org.assertj.core.api.Assertions.assertThat; 4 5 import org.junit.Test; 6 import org.junit.runner.RunWith; 7 import org.junit.runners.JUnit4; 8 9 @RunWith(JUnit4.class) 10 public class DependencyJarTest { 11 @Test 12 public void testGetShortName() throws Exception { 13 assertThat(new DependencyJar("com.group", "artifact", "1.3", null).getShortName()) 14 .isEqualTo("com.group:artifact:1.3"); 15 assertThat(new DependencyJar("com.group", "artifact", "1.3", "dll").getShortName()) 16 .isEqualTo("com.group:artifact:1.3:dll"); 17 } 18 }