Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

ETLUnit 3.9.6

 

Draft in Progress

This document is a draft and is under development.

 

Description

  • A method annotated with @BeforeClass will be executed once, before all the test methods are executed.  If there are four test methods in a test class, and a user runs the test CLI command for the whole test class, the following will happen:
    • The method annotated with @BeforeClass will run one time.
    • Each of the four test methods will run.

Attributes

Attribute

Name

Required?

Possible

Values

Info
NONE  No attributes.

Location in the test class file

Before a method declaration.

Examples

 

Panel Title

class variableTest

{

@BeforeClass

setUp()

{

set(variable: 'hi', value: 'test');

}

 

@Test

run()

{

assert(variable: 'hi', value: 'test');

}

 

@Test

Runny()

{

assert(variable: 'hi', value: 'test');

}

 

@Test

runWithSubs()

{

assert(variable: 'hi', value: 'test');

}

}


 

  • No labels