Code example for Properties

Methods: put

0
	} 
 
	@Test 
	public void shouldConnect() throws SQLException { 
 
		Properties info = new Properties();
		info.put("user", "admin");
		info.put("password", "admin");
 
		OrientJdbcConnection conn = (OrientJdbcConnection) DriverManager.getConnection("jdbc:orient:memory:test", info);
 
		assertNotNull(conn);
		conn.close();
		assertTrue(conn.isClosed());
	} 
}