KeycloakServer is just start/stop. I would recommend using Arquillian
instead though as you are then testing with a proper Keycloak server.
Arquilian can start/stop multiple containers and you'd just have Keycloak
standalone server as one of the managed containers.
On 29 June 2016 at 08:29, Charlee Chitsuk <charlee.ch(a)gmail.com> wrote:
Hi Thomas and Stain,
Thank you for your response. I would like to start the keycloak when I
start testing my application via Arquillian.
I hope it may be something like
KeyCloak keyCloak = new KeyCloak();
keyCloak.start();
//do some tests
keyCloak.stop();
note: The start and stop may be called by @BeforeClass and @AfterClass
At the moment I've tried to read the "/testsuite/integration" [1] and
"/testsuite/integration-arquillian" [2]. I'm still confused how to apply
them to my project. Could you please help to advise further? Thank you very
much for your help in advance. I'm looking forward to hearing from you soon.
[1]
https://github.com/keycloak/keycloak/tree/master/testsuite/integration
[2]
https://github.com/keycloak/keycloak/tree/master/testsuite/integration-ar...
--
Best Regards,
Charlee Ch.
2016-06-29 13:13 GMT+07:00 Stian Thorgersen <sthorger(a)redhat.com>:
> Not sure what you mean about minimal server, but Keycloak can be used
> with Arquillian. We use it ourselves in the new testsuite.
>
> On 29 June 2016 at 04:53, Charlee Chitsuk <charlee.ch(a)gmail.com> wrote:
>
>> Hi,
>>
>> I would like to test my application via the Arquillian. Does keycloak
>> provide the minimal server for integration test?
>>
>> --
>> Best Regards,
>>
>> Charlee Ch
>>
>>
>>
<
https://www.avast.com/sig-email?utm_medium=email&utm_source=link&...
Virus-free.
>>
www.avast.com
>>
<
https://www.avast.com/sig-email?utm_medium=email&utm_source=link&...
>>
<#m_8214467387200622157_m_8856438731553818385_m_-8974110243762289522_DDB4FAA8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>>
>> _______________________________________________
>> keycloak-user mailing list
>> keycloak-user(a)lists.jboss.org
>>
https://lists.jboss.org/mailman/listinfo/keycloak-user
>>
>
>
_______________________________________________
keycloak-user mailing list
keycloak-user(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/keycloak-user