[hibernate-dev] HHH-6677 skip @BeforeClassOnce / @AfterClassOnce if test is ignored

Strong Liu stliu at hibernate.org
Mon Sep 26 10:41:07 EDT 2011


https://hibernate.onjira.com/browse/HHH-6677

I don't find a elegant way to fix this….
one option is in org.hibernate.testing.junit4.CustomRunner#withBeforeClasses, we check if the test class has @Skip (and @RequiresDialect etc.), and if it does, then return super.withBeforeClasses directly (i know this is not a good way to do that)

any suggestions?

-----------
Strong Liu <stliu at hibernate.org>
http://hibernate.org
http://github.com/stliu





More information about the hibernate-dev mailing list