<div dir="ltr">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.</div><div class="gmail_extra"><br><div class="gmail_quote">On 29 June 2016 at 08:29, Charlee Chitsuk <span dir="ltr"><<a href="mailto:charlee.ch@gmail.com" target="_blank">charlee.ch@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><span class=""><span style="font-size:14px">Hi Thomas and Stain,</span><div style="font-size:14px"><br></div><div style="font-size:14px">Thank you for your response. I would like to start the keycloak when I start testing my application via Arquillian.</div><div style="font-size:14px"><br></div><div style="font-size:14px">I hope it may be something like</div><div style="font-size:14px"><br></div><div style="font-size:14px">KeyCloak keyCloak = new KeyCloak();<br></div><div style="font-size:14px">keyCloak.start();</div><div style="font-size:14px">//do some tests</div><div style="font-size:14px">keyCloak.stop();</div><div style="font-size:14px"><br></div><div style="font-size:14px">note: The start and stop may be called by @BeforeClass and @AfterClass</div><div style="font-size:14px"><br></div><div style="font-size:14px">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.</div><div style="font-size:14px"><br></div><div style="font-size:14px">[1] <a href="https://github.com/keycloak/keycloak/tree/master/testsuite/integration" target="_blank">https://github.com/keycloak/keycloak/tree/master/testsuite/integration</a></div><div style="font-size:14px">[2] <a href="https://github.com/keycloak/keycloak/tree/master/testsuite/integration-arquillian" target="_blank">https://github.com/keycloak/keycloak/tree/master/testsuite/integration-arquillian</a></div></span><div class="gmail_extra"><br clear="all"><div><div data-smartmail="gmail_signature"><div dir="ltr"><div><font face="Tahoma"><span style="font-size:10pt;font-family:Tahoma;color:rgb(153,102,51)"><font color="#000000">--</font></span></font></div><font face="Tahoma"><span style="font-size:10pt;font-family:Tahoma;color:rgb(153,102,51)"><font color="#000000"> Best Regards,<br><br>
                                                         Charlee Ch.</font></span></font></div></div></div>
<br><div class="gmail_quote"><span class="">2016-06-29 13:13 GMT+07:00 Stian Thorgersen <span dir="ltr"><<a href="mailto:sthorger@redhat.com" target="_blank">sthorger@redhat.com</a>></span>:<br></span><div><div class="h5"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Not sure what you mean about minimal server, but Keycloak can be used with Arquillian. We use it ourselves in the new testsuite.</div><div class="gmail_extra"><br><div class="gmail_quote"><div><div>On 29 June 2016 at 04:53, Charlee Chitsuk <span dir="ltr"><<a href="mailto:charlee.ch@gmail.com" target="_blank">charlee.ch@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr">Hi,<div><br></div><div>I would like to test my application via the Arquillian. Does keycloak provide the minimal server for integration test?</div><div><br clear="all"><div><div data-smartmail="gmail_signature"><div dir="ltr"><div><font face="Tahoma"><span style="font-size:10pt;font-family:Tahoma;color:rgb(153,102,51)"><font color="#000000">--</font></span></font></div><font face="Tahoma"><span style="font-size:10pt;font-family:Tahoma;color:rgb(153,102,51)"><font color="#000000"> Best Regards,<br><br>
                                                         Charlee Ch</font></span></font></div></div></div>
</div></div><div><br>
<table style="border-top:1px solid #d3d4de">
        <tbody><tr>
<td style="width:55px;padding-top:13px"><a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=icon" target="_blank"><img width="46" height="29" style="width:46px;min-height:29px"></a></td>
                <td style="width:470px;padding-top:12px;color:#41424e;font-size:13px;font-family:Arial,Helvetica,sans-serif;line-height:18px">Virus-free. <a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=link" style="color:#4453ea" target="_blank">www.avast.com</a>
                </td>
        </tr>
</tbody></table><a href="#m_8214467387200622157_m_8856438731553818385_m_-8974110243762289522_DDB4FAA8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1" height="1"></a></div>
<br></div></div><span>_______________________________________________<br>
keycloak-user mailing list<br>
<a href="mailto:keycloak-user@lists.jboss.org" target="_blank">keycloak-user@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/keycloak-user" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-user</a><br></span></blockquote></div><br></div>
</blockquote></div></div></div><br></div></div>
<br>_______________________________________________<br>
keycloak-user mailing list<br>
<a href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/keycloak-user" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-user</a><br></blockquote></div><br></div>