Home | History | Annotate | Download | only in robolectric
      1 package com.xtremelabs.robolectric;
      2 
      3 import org.junit.Assert;
      4 import org.junit.Test;
      5 import org.junit.runner.RunWith;
      6 
      7 import com.xtremelabs.robolectric.bytecode.RobolectricClassLoader;
      8 
      9 
     10 @RunWith(WithTestDefaultsRunner.class)
     11 public class RobolectricTestRunnerClassLoaderSetup {
     12 
     13     @Test
     14     public void testUsingClassLoader() throws ClassNotFoundException {
     15         ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
     16         Assert.assertEquals(classLoader.getClass().getName(), RobolectricClassLoader.class.getName());
     17     }
     18 }
     19