Skip to content

Commit

Permalink
HBX-2910: Make sure that the Exporter classes needed by plugin 'org.h…
Browse files Browse the repository at this point in the history
…ibernate.eclipse.console' are visible and available

  - Handle the case for 'org.hibernate.tool.hbm2x.DocExporter'

Signed-off-by: Koen Aers <koen.aers@gmail.com>
  • Loading branch information
koentsje committed Aug 30, 2024
1 parent 263d736 commit a05882b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
3 changes: 3 additions & 0 deletions jbt/src/main/java/org/hibernate/tool/hbm2x/DocExporter.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
package org.hibernate.tool.hbm2x;

public class DocExporter extends org.hibernate.tool.internal.export.doc.DocExporter {}
Original file line number Diff line number Diff line change
Expand Up @@ -84,4 +84,15 @@ public void testQueryExporter() {
}
}

@Test
public void testDocExporter() {
try {
ClassLoader cl = getClass().getClassLoader();
Class<?> docExporterClass = cl.loadClass("org.hibernate.tool.hbm2x.DocExporter");
assertNotNull(docExporterClass);
} catch (Throwable t) {
fail(t);
}
}

}

0 comments on commit a05882b

Please sign in to comment.