Skip to content

Commit 8c076f4

Browse files
committed
- Documentation for pre-req and node_modules feature
- Gradle wrapper upgrade to 8.7 Signed-off-by: Gopal S Akshintala <[email protected]>
1 parent 2a7ddb1 commit 8c076f4

File tree

11 files changed

+164
-126
lines changed

11 files changed

+164
-126
lines changed

CONTRIBUTING.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ This is a simple Gradle project and has its own Gradle wrapper. So nothing to in
4545
./gradlew clean build
4646
----
4747

48-
TIP: You *don't* need a local Gradle installation as the `gradlew` (Gradle wrapper) takes care of everything. But if you wish to install gradle locally, the recommendation is to do it via https://sdkman.io/install[SDKMAN]. After you install SDKMAN, run `sdk install gradle` to install Gradle
48+
TIP: You *don't* need a local Gradle installation as the `gradlew` (Gradle wrapper) takes care of everything. But if you wish to install Gradle locally, the recommendation is to do it via https://sdkman.io/install[SDKMAN]. After you install SDKMAN, run `sdk install gradle` to install Gradle
4949

5050
You can run/debug the existing unit tests or write your own to play with the tool.
5151

README.adoc

Lines changed: 125 additions & 92 deletions
Large diffs are not rendered by default.

docs/images/failure-hierarchy.png

100755100644
-4.41 KB
Loading

docs/images/node_modules.png

5.4 KB
Loading

docs/images/step-execution.png

100755100644
-3.91 KB
Loading

gradle/wrapper/gradle-wrapper.jar

-9 Bytes
Binary file not shown.

gradle/wrapper/gradle-wrapper.properties

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,3 @@
1-
####################################################################################################
2-
# Copyright (c) 2023, Salesforce, Inc. All rights reserved. SPDX-License-Identifier:
3-
# Apache License Version 2.0
4-
# For full license text, see the LICENSE file in the repo root or
5-
# http://www.apache.org/licenses/LICENSE-2.0
6-
####################################################################################################
7-
81
distributionBase=GRADLE_USER_HOME
92
distributionPath=wrapper/dists
103
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip

gradlew

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,20 @@
11
#!/bin/sh
22

3-
####################################################################################################
4-
# Copyright (c) 2023, Salesforce, Inc. All rights reserved. SPDX-License-Identifier:
5-
# Apache License Version 2.0
6-
# For full license text, see the LICENSE file in the repo root or
7-
# http://www.apache.org/licenses/LICENSE-2.0
8-
####################################################################################################
3+
#
4+
# Copyright © 2015-2021 the original authors.
5+
#
6+
# Licensed under the Apache License, Version 2.0 (the "License");
7+
# you may not use this file except in compliance with the License.
8+
# You may obtain a copy of the License at
9+
#
10+
# https://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# Unless required by applicable law or agreed to in writing, software
13+
# distributed under the License is distributed on an "AS IS" BASIS,
14+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
# See the License for the specific language governing permissions and
16+
# limitations under the License.
17+
#
918

1019
##############################################################################
1120
#

gradlew.bat

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@ set JAVA_EXE=java.exe
4343
%JAVA_EXE% -version >NUL 2>&1
4444
if %ERRORLEVEL% equ 0 goto execute
4545

46-
echo.
47-
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
48-
echo.
49-
echo Please set the JAVA_HOME variable in your environment to match the
50-
echo location of your Java installation.
46+
echo. 1>&2
47+
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2
48+
echo. 1>&2
49+
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
50+
echo location of your Java installation. 1>&2
5151

5252
goto fail
5353

@@ -57,11 +57,11 @@ set JAVA_EXE=%JAVA_HOME%/bin/java.exe
5757

5858
if exist "%JAVA_EXE%" goto execute
5959

60-
echo.
61-
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
62-
echo.
63-
echo Please set the JAVA_HOME variable in your environment to match the
64-
echo location of your Java installation.
60+
echo. 1>&2
61+
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2
62+
echo. 1>&2
63+
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
64+
echo location of your Java installation. 1>&2
6565

6666
goto fail
6767

src/integrationTest/java/com/salesforce/revoman/integration/core/pq/PQE2EWithSMTest.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -76,24 +76,24 @@ void revUpPQ() {
7676
.customDynamicVariableGenerator( // <5>
7777
"$unitPrice",
7878
(ignore1, ignore2, ignore3) -> String.valueOf(Random.Default.nextInt(999) + 1))
79-
.nodeModulesResourceRelativePath("js")
79+
.nodeModulesResourceRelativePath("js") // <6>
8080
.haltOnFailureOfTypeExcept(
8181
HTTP_STATUS,
82-
afterAllStepsContainingHeader("ignoreHTTPStatusUnsuccessful")) // <6>
83-
.requestConfig( // <7>
82+
afterAllStepsContainingHeader("ignoreHTTPStatusUnsuccessful")) // <7>
83+
.requestConfig( // <8>
8484
unmarshallRequest(
8585
beforeAllStepsWithURIPathEndingWith(PQ_URI_PATH),
8686
PlaceQuoteInputRepresentation.class,
8787
adapter(PlaceQuoteInputRepresentation.class)))
88-
.responseConfig( // <8>
88+
.responseConfig( // <9>
8989
unmarshallResponse(
9090
afterAllStepsWithURIPathEndingWith(PQ_URI_PATH),
9191
PlaceQuoteOutputRepresentation.class),
9292
unmarshallResponse(
9393
afterAllStepsWithURIPathEndingWith(COMPOSITE_GRAPH_URI_PATH),
9494
CompositeGraphResponse.class,
9595
CompositeGraphResponse.ADAPTER))
96-
.hooks( // <9>
96+
.hooks( // <10>
9797
pre(
9898
beforeAllStepsWithURIPathEndingWith(PQ_URI_PATH),
9999
(step, requestInfo, rundown) -> {
@@ -104,7 +104,7 @@ void revUpPQ() {
104104
post(
105105
afterAllStepsWithURIPathEndingWith(PQ_URI_PATH),
106106
(stepReport, ignore) -> {
107-
validatePQResponse(stepReport); // <10>
107+
validatePQResponse(stepReport); // <11>
108108
final var isSyncStep =
109109
stepReport.responseInfo.get().containsHeader(IS_SYNC_HEADER);
110110
if (!isSyncStep) {
@@ -122,10 +122,10 @@ void revUpPQ() {
122122
post(
123123
afterStepName("query-quote-and-related-records"),
124124
(ignore, rundown) -> assertAfterPQCreate(rundown.mutableEnv)))
125-
.customAdaptersForMarshalling(new IDAdapter()) // <11>
126-
.insecureHttp(true) // <12>
125+
.customAdaptersForMarshalling(new IDAdapter()) // <12>
126+
.insecureHttp(true) // <13>
127127
.off()); // Kick-off
128-
assertThat(pqRundown.firstUnIgnoredUnsuccessfulStepReport()).isNull(); // <13>
128+
assertThat(pqRundown.firstUnIgnoredUnsuccessfulStepReport()).isNull(); // <14>
129129
assertThat(pqRundown.mutableEnv)
130130
.containsAtLeastEntriesIn(
131131
Map.of(

0 commit comments

Comments
 (0)