Skip to content

Commit 91bef99

Browse files
committed
Initial Project setup.
Blog 01 Added
1 parent 28ad0de commit 91bef99

68 files changed

Lines changed: 8853 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Application.cfc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
component displayname="Application" output="false"
2+
{
3+
4+
5+
6+
7+
}

blog-01/Application.cfc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
component output="false"
2+
{
3+
4+
}

blog-01/Step1/Application.cfc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
component output="false"
2+
{
3+
4+
}

blog-01/Step1/index.cfm

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<html>
2+
<head>
3+
<title></title>
4+
</head>
5+
<body>
6+
<h3>gpickin.com - Unit Testing Blog Series<br>
7+
Blog 01 Index - Setting up my Testing Environment to Test Unit Testing</h3>
8+
9+
<h1>Step 1 - Setup the basic folder structure.</h1>
10+
11+
<p><a href="/index.cfm">Back to Series Index</a></p>
12+
<p><a href="/index.cfm">Back to Blog Index</a></p>
13+
14+
<ul>
15+
<li>View Code to See File Setup</li>
16+
</ul>
17+
18+
<cfset r = new testbox.system.testing.TestBox( directory="blog-01.Step1.test.unit") >
19+
<cfoutput>#r.run()#</cfoutput>
20+
</body>
21+
</html>

blog-01/Step1/model/CFMLServer.cfc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
component displayname="CFML Server" hint="I am the CFML Server Object" output="false"
2+
{
3+
4+
}

blog-01/Step1/model/Website.cfc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
component displayname="Website" hint="I am the Website Object" output="false"
2+
{
3+
4+
5+
6+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
component displayName="CFMLServer.cfc Unit Tests" {
2+
3+
// executes before all tests
4+
function beforeTests() {}
5+
6+
// executes after all tests
7+
function afterTests() {}
8+
9+
function testIncludesWithCase(){
10+
$assert.includesWithCase( "hello", "he" );
11+
$assert.includesWithCase( [ "Monday", "Tuesday" ] , "Monday" );
12+
}
13+
14+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
component displayName="Website.cfc Unit Tests" {
2+
3+
// executes before all tests
4+
function beforeTests() {}
5+
6+
// executes after all tests
7+
function afterTests() {}
8+
9+
function testIncludes(){
10+
$assert.includes( "hello", "HE" );
11+
$assert.includes( [ "Monday", "Tuesday" ] , "monday" );
12+
}
13+
14+
}

blog-01/index.cfm

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<html>
2+
<head>
3+
<title></title>
4+
</head>
5+
<body>
6+
<h3>gpickin.com - Unit Testing Blog Series</h3>
7+
<h1>Blog 01 Index - Setting up my Testing Environment to Test Unit Testing</h1>
8+
9+
<p><a href="/index.cfm">Back to Series Index</a></p>
10+
11+
<ul>
12+
<li><a href="Step1/">Step 1 - Setup the basic folder structure.</a></li>
13+
14+
</ul>
15+
</body>
16+
</html>

index.cfm

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<html>
2+
<head>
3+
<title></title>
4+
</head>
5+
<body>
6+
<h1>gpickin.com - Unit Testing Blog Series Index</h1>
7+
8+
<ul>
9+
<li>
10+
<a href="/blog-01/">Setting up my Testing Environment to Test Unit Testing</a>
11+
<ul>
12+
<li><a href="/blog-01/Step1/">Step 1 - Basic Folder Structure and Download TestBox</a></li>
13+
14+
</ul>
15+
16+
</li>
17+
</ul>
18+
</body>
19+
</html>

0 commit comments

Comments
 (0)