Window/mouse hangs and flickers
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 25/100
Línea de trabajo
Comienza con SimpleCopyApplication.java y SimpleCopyApplicationTest.java del repositorio de ejemplo y, después, reproduce el caso de un JFrame vacío en Windows 10. Compáralo con el ejemplo sin cambios para aislar el bloqueo o parpadeo de la ventana y el ratón, y revisa la documentación sobre cómo probar componentes Swing normales y el helper newLabel("name"). El trabajo estará terminado cuando el ejemplo se abra y pueda probarse sin el problema de interacción indicado, y se hayan aclarado las instrucciones de uso.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Sorry for opening this issue. I have read your documentation a couple of times and I am pretty new to Java Swing and AssertJ. The problem that arises is, that AssertJ Swing simply cannot test my GUI because it does not even open the window properly.
I have tried to narrow this error down. Therefore I have pulled your example repository with the SimpleCopyApplication.java and the according SimpleCopyApplicationTest.java.
Just out of the box this setup works for me. But now the strange part comes in.
As soon as I simply delete everything out of the frame. so that there is just an empty JFrame left, the window and mouse hangs and the mouse starts flickering (it possibly moves pretty fast). I do have the same problem with my application even if the GUI contains something.
So in your example code i have just deleted everything out of the SimpleCopyApplication Constructor:
public SimpleCopyApplication() {
}
Can someone reproduce this error?
System: Windows 10
Here is a screenshot of the problem. And I cannot move my mouse for a couple of seconds:

And just one more question for my understanding:
To properly use your testing framework I also have to use your methods to create Labels/Textfields and so on? For example to create a Label I cannot instatiate a normal JLabel and test it, I need to use your function newLabel("name")? Maybe this is related to the fact that I am a beginner, but I did not get this just out of your documentation. It seemed to me that I can use my finished Swing GUI and just test it without any modifications. Especially because the quick start did not mention anything of it.
Thank you very much for your support and your work at AssertJ.
- Lenguaje dominante
- Java
- Estrellas
- 121
- Forks
- 52
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de assertj/assertj-swing
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
assertj/assertj-swing#279 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 48/100
assertj/assertj-swing#278 · 1 comentario ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 30/100
assertj/assertj-swing#276 · 1 comentario ·
-
Update unit test to avoid deprecated `ExpectedException.none()` by using `Assert.assertThrows()` Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
assertj/assertj-swing#275 ·
-
how to test when headless? Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 35/100
assertj/assertj-swing#277 · 1 comentario ·
Todos los issues de assertj/assertj-swing
Issues similares
-
executions.Query — startDate and timeRange filters are sent with inverted comparison operators Abiertoarea/plugin
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
kestra-io/plugin-kestra#190 ·
-
litertlm-android AAR ships no consumer ProGuard rules → "mid == null" SIGABRT in minified apps Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
google-ai-edge/LiteRT-LM#3739 ·
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
-
Add canonical URLs and a sitemap Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
integra-team-red/meet-map#249 ·
-
[Studio][Bug] Cancelled create-user dialog keeps the password and admin switch for the next attempt Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
apache/rocketmq-dashboard#5064 ·