Skip to content

Commit 013cd53

Browse files
committed
updating readme
1 parent 6a77948 commit 013cd53

File tree

4 files changed

+6147
-6156
lines changed

4 files changed

+6147
-6156
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,14 +134,14 @@ You should see a successful ant build similar to:
134134

135135
1. Open the TestRead class
136136
2. Change the credentials to those of a user that has access to the Base Folder in a Site
137-
3. Enter the name of the site where it says "<SITE-NAME>"
137+
3. Enter the name of the site where it says "\<SITE-NAME\>"
138138
4. Right click the testBaseFolderRead() method > Run as... > JUnit Test
139139

140140
## To run a test with Maven
141141

142142
1. Open the TestRead class
143143
2. Change the credentials to those of a user that has access to the Base Folder in a Site
144-
3. Enter the name of the site where it says "<SITE-NAME>"
144+
3. Enter the name of the site where it says "\<SITE-NAME\>"
145145
4. Open a terminal
146146
5. Navigate to the project folder
147147
6. Type: `mvn -Dtest=TestRead test`

src/java/com/cms/webservices/TestEdit.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,17 +41,17 @@ public void testPageTitleEdit() throws Exception
4141
Path path = new Path();
4242

4343
// set your page path and site name
44-
path.setPath("/path/to/page");
45-
path.setSiteName("<SITE-NAME>");
44+
path.setPath("/test-block-overrides");
45+
path.setSiteName("bradley");
4646
toRead.setPath(path);
4747
toRead.setType(EntityTypeString.page);
4848

4949
Read read = new Read();
5050
read.setIdentifier(toRead);
5151

5252
Authentication authentication = new Authentication();
53-
authentication.setUsername("<REDACTED>");
54-
authentication.setPassword("<REDACTED>");
53+
authentication.setUsername("bradley.wagner");
54+
authentication.setPassword("soosad");
5555

5656
// read the asset
5757
AssetOperationHandlerServiceLocator serviceLocator = new AssetOperationHandlerServiceLocator();

src/java/com/cms/webservices/TestRead.java

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,6 @@ public class TestRead
3434
* - alt+shift+x, t (Windows)
3535
* - option+command+x, t (Mac)
3636
*
37-
* This should output something similar to:
38-
* "Got read result: com.hannonhill.www.ws.ns.AssetOperationService.ReadResult@145e16fe"
39-
*
4037
* @throws Exception
4138
*/
4239
@Test
@@ -45,22 +42,20 @@ public void testBaseFolderRead() throws Exception
4542
Identifier toRead = new Identifier();
4643
Path path = new Path();
4744
path.setPath("/");
48-
path.setSiteName("<SITE-NAME>");
45+
path.setSiteName("bradley");
4946
toRead.setPath(path);
5047
toRead.setType(EntityTypeString.folder);
5148

5249
Read read = new Read();
5350
read.setIdentifier(toRead);
5451

5552
Authentication authentication = new Authentication();
56-
authentication.setUsername("<REDACTED>");
57-
authentication.setPassword("<REDACTED>");
53+
authentication.setUsername("bradley.wagner");
54+
authentication.setPassword("soosad");
5855

5956
AssetOperationHandlerServiceLocator serviceLocator = new AssetOperationHandlerServiceLocator();
6057
AssetOperationHandler handler = serviceLocator.getAssetOperationService();
6158
ReadResult result = handler.read(authentication, toRead);
62-
System.out.println("Got read result: " + result);
63-
System.out.println("Read was " + (result.getSuccess().equals("true") ? "successful." : "unsuccessful. Error is: " + result.getMessage()));
6459

6560
assertTrue(result.getSuccess().equals("true") ? true : false);
6661
}

0 commit comments

Comments
 (0)