Skip to content

Commit

Permalink
HBX-2390: Create a JBoss Tools adaptation layer in Hibernate Tools
Browse files Browse the repository at this point in the history
  - Add new initial test class 'org.hibernate.tool.orm.jbt.wrp.TableWrapperTest'
  - Create new implementation class 'org.hibernate.tool.orm.jbt.wrp.TableWrapper' extending 'org.hibernate.mapping.Table' and 'org.hibernate.tool.orm.jbt.wrp.Wrapper'

Signed-off-by: Koen Aers <[email protected]>
  • Loading branch information
koentsje committed Jun 30, 2023
1 parent b239dc9 commit a0ec634
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
11 changes: 11 additions & 0 deletions jbt/src/main/java/org/hibernate/tool/orm/jbt/wrp/TableWrapper.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package org.hibernate.tool.orm.jbt.wrp;

import org.hibernate.mapping.Table;

public class TableWrapper extends Table implements Wrapper {

public TableWrapper(String name) {
super("HibernateTools", name);
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
package org.hibernate.tool.orm.jbt.wrp;

import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotNull;

import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;

public class TableWrapperTest {

private TableWrapper tableWrapper = null;

@BeforeEach
public void beforeEach() {
tableWrapper = new TableWrapper("foo");
}

@Test
public void testConstruction() {
assertNotNull(tableWrapper);
assertEquals("foo", tableWrapper.getName());
}

}

0 comments on commit a0ec634

Please sign in to comment.