Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Test
- public void testCreate(){
- Produkt test = new Produkt(20, "junit", "junitk", false, 900.67, true, true);
- handler.createProdukt(test);
- }
- @Before
- public void setUp() throws SQLException, ClassNotFoundException{
- try {
- this.shandler = new ServiceHandler();
- this.setServiceHandler(shandler);
- manager.getConnection();
- manager.getConnection().setAutoCommit(false);
- } catch (SQLException ex) {
- System.err.println("ERROR:");
- ex.printStackTrace();
- }
- }
- @After
- public void tearDown() throws SQLException, ClassNotFoundException{
- manager.getConnection().rollback();
- manager.closeConnection();
- }
Add Comment
Please, Sign In to add comment