package org.realityforge.arez.api2;

import org.testng.annotations.AfterTest;
import org.testng.annotations.BeforeTest;

public class AbstractArezTest
{
  @BeforeTest
  protected void beforeTest()
    throws Exception
  {
    final ArezConfig.DynamicProvider provider = (ArezConfig.DynamicProvider) ArezConfig.getProvider();
    provider.setEnableNames( true );
    provider.setVerboseErrorMessages( true );
    provider.setCheckInvariants( true );
  }

  @AfterTest
  protected void afterTest()
    throws Exception
  {
    final ArezConfig.DynamicProvider provider = (ArezConfig.DynamicProvider) ArezConfig.getProvider();
    provider.setEnableNames( false );
    provider.setVerboseErrorMessages( false );
    provider.setCheckInvariants( false );
  }
}

@@ -65,20 +65,22 @@
 ns.After
-Test
+Method
 ;%0Aimport
@@ -109,20 +109,22 @@
 s.Before
-Test
+Method
 ;%0A%0Apubli
@@ -159,20 +159,22 @@
  @Before
-Test
+Method
 %0A  prote
@@ -461,20 +461,22 @@
   @After
-Test
+Method
 %0A  prote

Annotate hooks correctly