Questions tagged [fest]

FEST (Fixtures for Easy Software Testing) is a collection of APIs to facilitate Java software testing. FEST contains a fluent API for reflection, assertion and interacting with SWING GUI Components. It can be used within JUnit and TestNG.

See the FEST home page.

91 questions
0
votes
0 answers

Cannot do actions on the secondary window with FEST/swing

public class DemoTest { private FrameFixture demo; @Before public void setUp() { demo = new FrameFixture(new Demo()); } @After public void tearDown() { demo.cleanUp(); } @Test public void test() { …
Irinel
  • 79
  • 1
  • 1
  • 8
0
votes
1 answer

Subtle difference between fest and assert-j with custom map

in the project where I am working it has been decided to stop using fest for test assertions, and instead use assertj. We are using Java 7 and we are moving from fest version 2.0M10 to assertj-core version 2.4.1. The code base is fairly big but the…
Eric Lilja
  • 3,323
  • 4
  • 18
  • 15
0
votes
1 answer

Java Swing GUI Test Fest JPanel Fixture Error

Trying to use FEST to test my GUI, but I'm having a problem trying to access components that are contained inside a custom JPanel (TopPanel extends JPanel). So the code below is failing when trying to reference the "topPane" which exists as a field…
hadez30
  • 503
  • 5
  • 18
0
votes
1 answer

Custom FEST Assertions : Displaying readable message with

I have created a custom FEST Condition to verify that my actual string either matches or is equal to an expected String public class StringMatchesOrIsEqualTo extends Condition{ private String expectedStringOrExpression; public…
SK176H
  • 1,319
  • 3
  • 14
  • 25
0
votes
1 answer

is Robot (Swing FEST) a singleton class?

Recently I experienced that is a Robot instance is created already and if try to create it again (obviously without calling robot.cleanUp()) it hangs there forever. I investigated this and got to know that it takes a ScreenLock every time we create…
0
votes
1 answer

Fest running speed

I'm trying to select a Gui testing framework tool for a swing based application. I started to have a look on FEST and created a Demo program to check how fast the run time is. My demo program (code bellow) took about 85000 millisec to complete which…
Houssem
  • 1
  • 1
0
votes
2 answers

FInding Swing panels with org.fest.swing.fixture.FrameFixture::panel(), it requires panel to be showing?

I want to use FEST to test that a Swing component is invisible. I try to use org.fest.swing.fixture.FrameFixturemethod panel(“foo”) but that fails since it requires requireShowing=true. What is idiomatic approach using FEST to find a panel…
k1eran
  • 4,492
  • 8
  • 50
  • 73
0
votes
1 answer

fest asserting order in list

I would like to test if the elements in a list are in a particular order. Specifically I would like to test for a member of the elements. So something like: assertThat(listOfObjects).hasProperty(name).inOrder("one", "two", "three"); Is is possible…
Saad Farooq
  • 13,172
  • 10
  • 68
  • 94
0
votes
0 answers

Fest test runs very slow after showing content in TreeTable content

I am working on custom TreeTable Component(extends JTable) in my project. This will have Jtree inside of it. I have overridden paint() in my TreeTable class. I am using Fest to test. Fest actions(like click, selection and anything) runs very slow…
Robo
  • 261
  • 2
  • 5
  • 13
0
votes
0 answers

can't import import static org.assertj.android.api.Assertions.assertThat;

I am trying to create a test project I have downloaded the source for AssertJ from here And their instruction says I need to do import static org.assertj.android.api.Assertions.assertThat; but that is not working, what am I doing wrong?
Lena Bru
  • 13,521
  • 11
  • 61
  • 126
0
votes
1 answer

Taking Screenshot of failed Fest JUnit test

I am currently writing Fest Junit test cases that will be later ran on a Hudson test server. I would like to have them take desktop screen shots if any test case fails. I found this url that has a tutorial on how to set this up:…
wmgeiger101x
  • 153
  • 3
  • 12
0
votes
1 answer

Test running failed: Instrumentation run failed due to 'java.lang.VerifyError'

I am getting the dreaded VerifyError when attempting to write and run a test using fest-android. The error occurs when attempting to load one of my own classes: java.lang.VerifyError:…
Code-Apprentice
  • 81,660
  • 23
  • 145
  • 268
0
votes
1 answer

Android FEST not compiling properly for unit tests in IDE

For some reason, Android Studio is not properly compiling the Android FEST library (?). This line, assertThat(someView).isNotVisible(); causes this exception to be thrown: java.lang.UnsupportedClassVersionError: org/fest/assertions/api/ANDROID :…
David T.
  • 22,301
  • 23
  • 71
  • 123
0
votes
1 answer

GUI testing library with user actions recording?

I want to make junit test for an application, with graphics editor like functionality. I.e. user can drag and drop mouse smoothly in GUI. It seems not usefull to write coordinate movements programmatically. Is it possible to have some macro…
Suzan Cioc
  • 29,281
  • 63
  • 213
  • 385
0
votes
2 answers

How to test equality between class objects using FEST assertThat(...) method?

How to test if class objects are equal using FEST assertThat(...) method? Example: import static org.fest.assertions.api.Assertions.assertThat; @Test public void test() throws Exception { …
etxalpo
  • 1,146
  • 1
  • 14
  • 25