1 8 9 package com.sleepycat.je; 10 11 import junit.framework.TestCase; 12 13 14 17 public class ApiTest extends TestCase { 18 19 public void testBasic() 20 throws Exception { 21 22 try { 23 new Environment(null, null); 24 fail("Should get exception"); 25 } catch (NullPointerException e) { 26 } catch (Exception e) { 28 fail("Shouldn't get other exception"); 29 } 30 31 } 32 } 33 | Popular Tags |