polygene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Niclas Hedhman <nic...@hedhman.org>
Subject JUnit 5 strange behavior
Date Tue, 17 Apr 2018 02:09:48 GMT
Gang,
if anyone has extensive experience with JUnit5, is there any explanation
that


@Override
@BeforeEach
public void setUp()
    throws Exception
{
    super.setUp();


will not be called when running the test, but if I change it to


@BeforeEach
public void setUp2()
    throws Exception
{
    super.setUp();


It will be called?

The super-class's method is

@BeforeEach
public void setUp()
    throws Exception
{
    polygene = new Energy4Java();




And IF I change to setUp2(), then the setUp() in the super class IS called
directly by junit platform engine.

Cheers
-- 
Niclas Hedhman, Software Developer
http://polygene.apache.org - New Energy for Java

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message