Skip to content

Latest commit

 

History

History
76 lines (52 loc) · 2.38 KB

README.md

File metadata and controls

76 lines (52 loc) · 2.38 KB

mustech

Build Status

Project for PV243 JBoss

Description

Built-in users:

login/password:
[email protected]/admin123
[email protected]/user123

Prerequisites

  • maven
  • wildfly 8.2.0+

Installation

You can run configuration script by command

jboss-cli.bat --file=deploy.cli or jboss-cli.sh --file=deploy.cli

or manually update appropriate xml file as follows:

standalone-full.xml

<security-domain name="MustechDomain" cache-type="default">
    <authentication>
        <login-module code="Database" flag="required">
            <module-option name="multi-threaded" value="true"/>
            <module-option name="unauthenticatedIdentity" value="guest"/>
            <module-option name="dsJndiName" value="java:jboss/datasources/ExampleDS"/>
            <module-option name="principalsQuery" value="SELECT password FROM USERS WHERE email=?"/>
            <module-option name="rolesQuery" value="SELECT role, 'Roles' FROM USERS WHERE email=?"/>
            <module-option name="password-stacking" value="useFirstPass"/>
            <module-option name="hashAlgorithm" value="MD5"/>
            <module-option name="hashEncoding" value="hex"/>
            <module-option name="hashCharset" value="UTF-8"/>
            </login-module>
    </authentication>
</security-domain>

<mail-session name="MyMailSession" debug="true" jndi-name="java:/mail/myMailSession" from="[email protected]">
            <smtp-server outbound-socket-binding-ref="MyMailSMTP" ssl="true" username="[email protected]" password="mustech123"/>
</mail-session>

<outbound-socket-binding name="MyMailSMTP">
    <remote-destination host="smtp.gmail.com" port="465"/>
</outbound-socket-binding>

deployment

mvn clean install
wildfly:deploy

Testing

When writing test we differentiate between regular JUnit tests and Arquillian integration tests. The integration test class name should end in "IntegrationTest" and those tests will be skipped in regular run. To enable integration tests see Running Integration Tests.

Running Unit Tests

mvn test

Running Integration Tests

mvn test -Parq-wildfly-embedded

or if you have already running instance of Wildfly

mvn test -Parq-wildfly-remote