Skip to content

Tag: java

Can’t pass parameters/sytem properties with gradlew command line

I try to pass parameters with gradlew command line, but can’t. I successfully pass the Optional parameter with XML file, but need have the possibility to pass with gradle CMD Gradle task: XML: Code: gradle CMD: In both cases I get the same result: ipAmount=20, IP_AMOUNT_PARAMETER = null How to correctly…

Automated test for OIDC Login

I have build an OpenID Connect Login for my java application (without spring). Now I want to have an automated test for the OIDC process. I am using KeyCloak as auth-server. For OIDC my test has to login on the keyloak login page by passing the username and password. For this I am using HtmlUnit and a simple …

Java loop asking for input until user enters something acceptable

As an exercise, I want to create a popup window where user enters a string, what I want to achieve: If they enter yes, print YES If they enter no, print NO If they enter something else, loop until they enter yes or no then print YES or NO 1 and 2 work, 3 will loop but then print nothing