mkoryak
mkoryak

Reputation: 57988

unit testing jsp 2.0 .tag files

How do people test jsp 2.0 tags? The ones that have .tag extensions and are basically jsp files with some extra support for passing parameters.

Upvotes: 2

Views: 744

Answers (1)

krosenvold
krosenvold

Reputation: 77211

The way we do this is by making a jsp page as a test fixture and running the asserts through selenium. Hardly a "quick" unit test, but not as inefficient as you could fear.

You want that selenium test-rig up an running anyway, right ? We use it both for some unit-test like fixtures and to run JsUnit tests in a systematic manner.

Upvotes: 3

Related Questions