Skip to content

Commit

Permalink
corrected ParaBank spelling
Browse files Browse the repository at this point in the history
The web app is spelled ParaBank but some recent additions started
misspelling this as Parabank.  The correct spelling can already
be found in various pages and messages.  Additionally,
the UI and documenation for SOAtest and Virtualize refer to this
as ParaBank.

This fixes all mispellings of ParaBank except for the jtest
scripts.
  • Loading branch information
benken-parasoft committed Jan 25, 2017
1 parent 1248186 commit 8bfcaf4
Show file tree
Hide file tree
Showing 12 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .project
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>Parabank3</name>
<name>ParaBank3</name>
<comment></comment>
<projects>
</projects>
Expand Down
2 changes: 1 addition & 1 deletion .springBeans
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
</configs>
<autoconfigs>
<config>src/main/webapp/WEB-INF/parabank-servlet.xml</config>
<config>java:com.parasoft.parabank.util.ParabankBeanPostProcessor</config>
<config>java:com.parasoft.parabank.util.ParaBankBeanPostProcessor</config>
<config>java:com.parasoft.parabank.util.AccessModeController</config>
</autoconfigs>
<configSets>
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
# Introduction
The Parabank demo web application and associated web services (SOAP and REST) from Parasoft.
The ParaBank demo web application and associated web services (SOAP and REST) from Parasoft.

# Build and Install
1. Build the Parabank application using Maven (`mvn clean install`). After a successful build, deploy the `parabank.war` (located in `/target`) onto a Tomcat 8.5.11 container.
1. Build the ParaBank application using Maven (`mvn clean install`). After a successful build, deploy the `parabank.war` (located in `/target`) onto a Tomcat 8.5.11 container.

NOTE: if using the coverage agent when running the functional/manual tests (see below), execute the build using "mvn -Dmaven.test.skip=true clean install jtest:monitor"

1. Parabank uses a built-in HyperSQL database. You must shut down all running instances of **Parabank** and *HyperSQL* for the build to succeed
1. ParaBank uses a built-in HyperSQL database. You must shut down all running instances of **ParaBank** and *HyperSQL* for the build to succeed
Otherwise several tests may fail, since there are a number of ports that are shared between the test instances and the real thing.

## Tomcat notes
1. The minimum Java JDK version expected is `1.8.0`. Oracle JDK is preferred.
1. The minimum Tomcat version is now 8.5.11, this is the expected default build compliance, if earlier version is preferred use the
`-Dtomcat.version=X.X.X` .
1. The version built with 8.5.11 was validated against both `8.5.11` and `9.0.M10`.
1. At the time of this writing the version of 9.0 tested was __M10__ (emphasis on M meaning milestone and therefore unstable). I'm assuming that in the future the **Parabank** will no longer function with `9.0.x` use the `-Dtomcat.version=9.0.x` when building for now, to insure stability and compliance. Once Tomcat 9.0 is GA the default will be updated to reflect that fact.
1. At the time of this writing the version of 9.0 tested was __M10__ (emphasis on M meaning milestone and therefore unstable). I'm assuming that in the future the **ParaBank** will no longer function with `9.0.x` use the `-Dtomcat.version=9.0.x` when building for now, to insure stability and compliance. Once Tomcat 9.0 is GA the default will be updated to reflect that fact.
1. Example:
```bash
#replace the X.X.X with the correct version of tomcat like 8.0.37
Expand All @@ -33,7 +33,7 @@ Otherwise several tests may fail, since there are a number of ports that are sha
```xml
<Resources cachingAllowed="true" cacheMaxSize="102400" />
```
1. To support clean re-deployments of **Parabank** please add the following to the `<Context>` tag of the `<tomcat install>/config/context.xml`
1. To support clean re-deployments of **ParaBank** please add the following to the `<Context>` tag of the `<tomcat install>/config/context.xml`

```xml
<Context antiResourceLocking="true">
Expand Down
2 changes: 1 addition & 1 deletion parabank.launch
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@
<stringAttribute key="M2_USER_SETTINGS" value=""/>
<booleanAttribute key="M2_WORKSPACE_RESOLUTION" value="false"/>
<stringAttribute key="org.eclipse.debug.core.ATTR_REFRESH_SCOPE" value="${project}"/>
<stringAttribute key="org.eclipse.jdt.launching.WORKING_DIRECTORY" value="${project_loc:Parabank3}"/>
<stringAttribute key="org.eclipse.jdt.launching.WORKING_DIRECTORY" value="${project_loc:ParaBank3}"/>
</launchConfiguration>
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
<artifactId>parabank</artifactId>
<version>3.0.0-SNAPSHOT</version>
<packaging>war</packaging>
<name>Parabank Sample Project</name>
<description>Parabank Sample Project for use with Parasoft SOATest and Virtualize</description>
<name>ParaBank Sample Project</name>
<description>ParaBank Sample Project for use with Parasoft SOAtest and Virtualize</description>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.8</maven.compiler.source>
Expand Down
4 changes: 2 additions & 2 deletions soatest.bat
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ echo build.id=%BUILD_ID% >> localsettings.properties
echo general.project=%DTP_PROJECT% >> localsettings.properties
echo session.tag=%DTP_PROJECT%-${config_name} >> localsettings.properties

echo ======================Parabank==============================
echo ======================ParaBank==============================

echo **1/3** Importing project into SOAtest
soatestcli -J-Xms512m -J-Xmx512m -J-Xverify:none -J-XX:+UseCompressedOops -data . -import TestAssets

echo **2/3** Running SOAtest (Parabank)
echo **2/3** Running SOAtest (ParaBank)
call erase /Q report-parabank\*.*
soatestcli -config "user://Example Configuration" -data . -resource TestAssets -report report-parabank -localsettings localsettings.properties > soatest-parabank-%RUN_TIME%.log 2>&1

Expand Down
4 changes: 2 additions & 2 deletions soatest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ if [ -f "set-vars.sh" ]; then
echo general.project=$DTP_PROJECT >> localsettings.properties
echo session.tag=$DTP_PROJECT-${config_name} >> localsettings.properties

echo ======================Parabank==============================
echo ======================ParaBank==============================

echo **1/3** Importing project into SOAtest
soatestcli -data . -import TestAssets

echo "**2/3** Running SOAtest (Parabank)"
echo "**2/3** Running SOAtest (ParaBank)"
rm report-parabank/*.*
soatestcli -config "user://Example Configuration" -data . -resource TestAssets -report report-parabank -localsettings localsettings.properties > soatest-parabank-$RUN_TIME.log 2>&1

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
*
*/
@Component("parabankBeanPostProcessor")
public class ParabankBeanPostProcessor implements BeanPostProcessor {
private static org.slf4j.Logger log = org.slf4j.LoggerFactory.getLogger(ParabankBeanPostProcessor.class);
public class ParaBankBeanPostProcessor implements BeanPostProcessor {
private static org.slf4j.Logger log = org.slf4j.LoggerFactory.getLogger(ParaBankBeanPostProcessor.class);

//@Resource(name = "sessionArgResolver")
private SessionParamArgumentResolver resolver;
Expand Down Expand Up @@ -73,7 +73,7 @@ public SessionParamArgumentResolver getResolver() {
@Override
public Object postProcessAfterInitialization(final Object aParamObject, final String aParamString)
throws BeansException {
log.trace("ParabankBeanPostProcessor got {}", aParamString);
log.trace("ParaBankBeanPostProcessor got {}", aParamString);

if (aParamObject instanceof RequestMappingHandlerAdapter) {
final RequestMappingHandlerAdapter rmha = (RequestMappingHandlerAdapter) aParamObject;
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/cxf.xml
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@
<bean id="swagger2Feature" class="com.parasoft.parabank.util.CustomSwagger2Feature">
<!--
<property name="version" value="3.0.0" />
<property name="title" value="Parabank REST Services" />
<property name="title" value="ParaBank REST Services" />
<property name="contact" value="webadmin@parabank.parasoft.com" />
<property name="description" value="This API provides access to the ParaBank operations." />
Expand Down
4 changes: 2 additions & 2 deletions src/main/webapp/WEB-INF/jsp/content/services.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ accessed within 20 minutes will be removed from the database.</td>
</table>
<br>
<br>
<span class="heading">Available Parabank SOAP services:</span><br>
<span class="heading">Available ParaBank SOAP services:</span><br>
<table style="text-align: left; width: 925px;" border="1"
cellpadding="1" cellspacing="1" width="100%">
<tbody>
Expand Down Expand Up @@ -287,7 +287,7 @@ address:</span> <span class="value">http://<%= hostname%>:<%= port%>/parabank/se
</table>
<br>
<br>
<span class="heading">Parabank services:</span><br>
<span class="heading">ParaBank services:</span><br>
<table style="text-align: left; width: 925px;" border="1"
cellpadding="1" cellspacing="1" width="100%">
<tbody>
Expand Down
Binary file modified src/main/webapp/images/header-main.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ public void testRequestLoan() throws Exception {
paraBankService.requestLoan(-1, ONE_HUNDRED_DOLLARS, ONE_HUNDRED_DOLLARS, ACCOUNT1_ID);
paraBankService.requestLoan(CUSTOMER_ID, ONE_HUNDRED_DOLLARS, ONE_HUNDRED_DOLLARS, -1);
paraBankService.requestLoan(-1, ONE_HUNDRED_DOLLARS, ONE_HUNDRED_DOLLARS, -1);
fail("Did not throw expected ParabankServiceException");
fail("Did not throw expected ParaBankServiceException");
} catch (final ParaBankServiceException e) {
}
}
Expand Down

0 comments on commit 8bfcaf4

Please sign in to comment.