Code example for Activity

Methods: loadAnimation

0
@RunWith(TestRunners.WithDefaults.class) 
public class AnimationUtilsTest { 
	 
	@Test 
	public void testLoadAnimation() { 
        assertThat(AnimationUtils.loadAnimation(new Activity(), 1)).isNotNull();
	} 
 
	@Test 
	public void testLoadAnimationResourceId() { 
		Animation anim = AnimationUtils.loadAnimation(new Activity(), R.anim.fade_in);
        assertThat(Robolectric.shadowOf(anim).getLoadedFromResourceId()).isEqualTo(R.anim.fade_in);
	} 
	 
	@Test 
	public void testLoadLayoutAnimation() { 
        assertThat(AnimationUtils.loadLayoutAnimation(new Activity(), 1)).isNotNull();
	} 
	 
	@Test 
Experience pair programming with AI  Get Codota for Java