@Test public void testGetLong() throws Throwable { byte[] b = new byte[11]; b[0] = (byte) 48; long result = JDBMSpace.getLong(b, 0); assertEquals("result", 3458764513820540928L, result); }
@Test public void testGetLongThrowsNullPointerException() throws Throwable { try { JDBMSpace.getLong(null, 100); fail("Expected NullPointerException to be thrown"); } catch (NullPointerException ex) { assertNull("ex.getMessage()", ex.getMessage()); } }
@Test public void testGetLongThrowsArrayIndexOutOfBoundsException() throws Throwable { byte[] b = new byte[9]; try { JDBMSpace.getLong(b, -1); fail("Expected ArrayIndexOutOfBoundsException to be thrown"); } catch (ArrayIndexOutOfBoundsException ex) { assertEquals("ex.getMessage()", "-1", ex.getMessage()); } }
@Test public void testGetLongThrowsArrayIndexOutOfBoundsException4() throws Throwable { byte[] b = new byte[8]; try { JDBMSpace.getLong(b, -2); fail("Expected ArrayIndexOutOfBoundsException to be thrown"); } catch (ArrayIndexOutOfBoundsException ex) { assertEquals("ex.getMessage()", "-1", ex.getMessage()); } }
@Test public void testGetLongThrowsArrayIndexOutOfBoundsException2() throws Throwable { byte[] b = new byte[5]; try { JDBMSpace.getLong(b, -6); fail("Expected ArrayIndexOutOfBoundsException to be thrown"); } catch (ArrayIndexOutOfBoundsException ex) { assertEquals("ex.getMessage()", "-1", ex.getMessage()); } }
@Test public void testGetLongThrowsArrayIndexOutOfBoundsException3() throws Throwable { byte[] b = new byte[2]; try { JDBMSpace.getLong(b, -7); fail("Expected ArrayIndexOutOfBoundsException to be thrown"); } catch (ArrayIndexOutOfBoundsException ex) { assertEquals("ex.getMessage()", "-1", ex.getMessage()); } }
@Test public void testGetLongThrowsArrayIndexOutOfBoundsException1() throws Throwable { byte[] b = new byte[7]; try { JDBMSpace.getLong(b, -4); fail("Expected ArrayIndexOutOfBoundsException to be thrown"); } catch (ArrayIndexOutOfBoundsException ex) { assertEquals("ex.getMessage()", "-1", ex.getMessage()); } }
@Test public void testGetLongThrowsArrayIndexOutOfBoundsException5() throws Throwable { byte[] b = new byte[5]; try { JDBMSpace.getLong(b, -3); fail("Expected ArrayIndexOutOfBoundsException to be thrown"); } catch (ArrayIndexOutOfBoundsException ex) { assertEquals("ex.getMessage()", "-1", ex.getMessage()); } }
@Test public void testGetLongThrowsArrayIndexOutOfBoundsException6() throws Throwable { byte[] b = new byte[3]; try { JDBMSpace.getLong(b, -5); fail("Expected ArrayIndexOutOfBoundsException to be thrown"); } catch (ArrayIndexOutOfBoundsException ex) { assertEquals("ex.getMessage()", "-1", ex.getMessage()); } }
@Test public void testGetLong1() throws Throwable { long result = JDBMSpace.getLong(new JDBMSpace.Ref(100L, 1000L).serialize(new JDBMSpace.Ref()), 0); assertEquals("result", 0L, result); }