1 package com.xtremelabs.robolectric.shadows; 2 3 import com.xtremelabs.robolectric.WithTestDefaultsRunner; 4 import com.xtremelabs.robolectric.util.DatabaseConfig; 5 import com.xtremelabs.robolectric.util.H2Map; 6 import org.junit.Test; 7 import org.junit.runner.RunWith; 8 9 import static org.hamcrest.CoreMatchers.equalTo; 10 import static org.junit.Assert.assertThat; 11 12 @DatabaseConfig.UsingDatabaseMap(H2Map.class) 13 @RunWith(WithTestDefaultsRunner.class) 14 public class H2DatabaseTest extends DatabaseTestBase { 15 @Test 16 public void shouldUseH2DatabaseMap() throws Exception { 17 assertThat(DatabaseConfig.getDatabaseMap().getClass().getName(), 18 equalTo(H2Map.class.getName())); 19 } 20 } 21