Flex - import AbstractMatcherTestCase could not be found

156 views Asked by At

I am trying to use Flex Unit in FlashBuilder 4.5.1 and I am getting the warning " import AbstractMatcherTestCase could not be found". Can anyone let me know what I'm missing? I have hamcrest-as3-flex-1.1.3.swc as one of my referenced libraries for the project.

I am trying to import as follows:

import org.hamcrest.AbstractMatcherTestCase;

Thanks

1

There are 1 answers

0
Drew Bourne On

Why are you importing AbstractMatcherTestCase? Are you writing a new Matcher?

The tests and test support classes are not included in the SWC. If you want to extend hamcrest-as3 I recommend forking hamcrest-as3 on GitHub, making your modifications and if they are going to be useful to others then send me a Pull Request with your changes.