| /* |
| * Licensed to the Apache Software Foundation (ASF) under one or more |
| * contributor license agreements. See the NOTICE file distributed with |
| * this work for additional information regarding copyright ownership. |
| * The ASF licenses this file to You under the Apache License, Version 2.0 |
| * (the "License"); you may not use this file except in compliance with |
| * the License. You may obtain a copy of the License at |
| * |
| * http://www.apache.org/licenses/LICENSE-2.0 |
| * |
| * Unless required by applicable law or agreed to in writing, software |
| * distributed under the License is distributed on an "AS IS" BASIS, |
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| * See the License for the specific language governing permissions and |
| * limitations under the License. |
| */ |
| |
| package org.apache.ignite.examples; |
| |
| import org.apache.ignite.examples.computegrid.montecarlo.CreditRiskExample; |
| import org.apache.ignite.testframework.junits.common.GridAbstractExamplesTest; |
| import org.junit.Test; |
| |
| /** |
| * Ignite examples self test. Excludes Ignite Spring tests. |
| * |
| * <h1 class="header">AOP Configuration</h1> |
| * In order for this test to execute, any of the following |
| * AOP configurations must be provided. |
| * <h2 class="header">Jboss AOP</h2> |
| * The following configuration needs to be applied to enable JBoss byte code |
| * weaving. Note that Ignite is not shipped with JBoss and necessary |
| * libraries will have to be downloaded separately (they come standard |
| * if you have JBoss installed already): |
| * <ul> |
| * <li> |
| * The following JVM configuration must be present: |
| * <ul> |
| * <li>{@code -javaagent:[path to jboss-aop-jdk50-4.x.x.jar]}</li> |
| * <li>{@code -Djboss.aop.class.path=[path to ignite.jar]}</li> |
| * <li>{@code -Djboss.aop.exclude=org,com -Djboss.aop.include=org.apache.ignite.examples}</li> |
| * </ul> |
| * </li> |
| * <li> |
| * The following JARs should be in a classpath: |
| * <ul> |
| * <li>{@code javassist-3.x.x.jar}</li> |
| * <li>{@code jboss-aop-jdk50-4.x.x.jar}</li> |
| * <li>{@code jboss-aspect-library-jdk50-4.x.x.jar}</li> |
| * <li>{@code jboss-common-4.x.x.jar}</li> |
| * <li>{@code trove-1.0.2.jar}</li> |
| * </ul> |
| * </li> |
| * </ul> |
| * <p> |
| * <h2 class="header">AspectJ AOP</h2> |
| * The following configuration needs to be applied to enable AspectJ byte code |
| * weaving. |
| * <ul> |
| * <li> |
| * JVM configuration should include: |
| * {@code -javaagent:${IGNITE_HOME}/libs/aspectjweaver-1.7.2.jar} |
| * </li> |
| * <li> |
| * Classpath should contain the {@code ${IGNITE_HOME}/modules/tests/config/aop/aspectj} folder. |
| * </li> |
| */ |
| public class MonteCarloExamplesSelfTest extends GridAbstractExamplesTest { |
| /** |
| * @throws Exception If failed. |
| */ |
| @Test |
| public void testCreditRiskExample() throws Exception { |
| CreditRiskExample.main(EMPTY_ARGS); |
| } |
| } |