aboutsummaryrefslogtreecommitdiff
path: root/v1/src/test/java/com/xtremelabs/robolectric/util/H2Map_TypeForwardOnlyTest.java
blob: 673112c376b60201854f0196bf582609450e2f6e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
package com.xtremelabs.robolectric.util;

import static org.hamcrest.CoreMatchers.equalTo;
import static org.junit.Assert.assertThat;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;

import com.xtremelabs.robolectric.WithTestDefaultsRunner;

@RunWith(WithTestDefaultsRunner.class)
public class H2Map_TypeForwardOnlyTest {

	H2Map_TypeForwardOnly map;
	@Before
    public void setUp() throws Exception {
      map = new H2Map_TypeForwardOnly();  
    }

   
    
    @Test
    public void testGetH2ResultSetIs_TYPE_FORWARD_ONLY() throws SQLException {   	
    	assertThat(map.getResultSetType(),equalTo(ResultSet.TYPE_FORWARD_ONLY));
    }
}