├── .gitignore ├── wwwroot ├── tests │ └── server │ │ ├── mxunit │ │ ├── tests │ │ │ ├── framework │ │ │ │ ├── fixture │ │ │ │ │ ├── interfaces │ │ │ │ │ │ ├── OtherInterface.cfc │ │ │ │ │ │ ├── AnInterface.cfc │ │ │ │ │ │ ├── SubInterface.cfc │ │ │ │ │ │ └── AComponent.cfc │ │ │ │ │ ├── xpath │ │ │ │ │ │ └── nodes.html │ │ │ │ │ ├── dataproviders │ │ │ │ │ │ ├── CSVWithoutHeaders.csv │ │ │ │ │ │ ├── SimpleCSV.csv │ │ │ │ │ │ ├── SimpleExcel.xls │ │ │ │ │ │ └── ExcelWithoutHeaders.xls │ │ │ │ │ ├── fixturetests │ │ │ │ │ │ ├── SubClassWithNoMethodsTest.cfc │ │ │ │ │ │ ├── SuperClassWithPrivateMethodsTest.cfc │ │ │ │ │ │ ├── SomeRandomTest.cfc │ │ │ │ │ │ ├── AnotherRandomTests.cfc │ │ │ │ │ │ └── AnotherRandomTest.cfc │ │ │ │ │ ├── ATestSuite.cfc │ │ │ │ │ ├── MockFactory.cfc │ │ │ │ │ ├── ComparatorTestData.cfc │ │ │ │ │ ├── ParentWithPrivateMethods.cfc │ │ │ │ │ ├── DataProviderFixture.cfc │ │ │ │ │ ├── Mocking.cfc │ │ │ │ │ ├── MyCFC.cfc │ │ │ │ │ ├── TestAssertComponent.cfc │ │ │ │ │ ├── decorators │ │ │ │ │ │ ├── StoreTestNameDecorator.cfc │ │ │ │ │ │ └── IgnoreFunnyFunctionsDecorator.cfc │ │ │ │ │ ├── TestWithExpectedExceptionAttributes.cfc │ │ │ │ │ ├── mxunit-TestCase-Template.cfc │ │ │ │ │ ├── MyCFCTest.cfc │ │ │ │ │ └── NewCFComponent.cfc │ │ │ │ ├── DynamicTestCaseGenerationTest.cfc │ │ │ │ ├── adapters │ │ │ │ │ └── cf9 │ │ │ │ │ │ └── PublicProxyMakerTest.cfc │ │ │ │ ├── AssertionChainingTest.cfc │ │ │ │ ├── VersionReaderTest.cfc │ │ │ │ ├── TestDecoratorTest.cfc │ │ │ │ ├── HamcrestMatcherTest.cfc │ │ │ │ ├── TestTest.cfc │ │ │ │ ├── QueryTestResultTest.cfc │ │ │ │ └── HtmlTestResultTest.cfc │ │ │ ├── install │ │ │ │ └── fixture │ │ │ │ │ ├── test.cfm │ │ │ │ │ └── index.cfm │ │ │ ├── mightymock │ │ │ │ ├── fixture │ │ │ │ │ ├── Mockery.cfc │ │ │ │ │ ├── Helper.cfc │ │ │ │ │ ├── AcceptStrictType.cfc │ │ │ │ │ ├── Dummy.cfc │ │ │ │ │ ├── Mockify.cfc │ │ │ │ │ ├── ParentSpyObject.cfc │ │ │ │ │ ├── FileDeleter.cfc │ │ │ │ │ ├── MySpyObject.cfc │ │ │ │ │ └── MyComponent.cfc │ │ │ │ ├── MockLoggerTest.cfc │ │ │ │ ├── AbstractMockTest.cfc │ │ │ │ ├── CaseSensitivtyTest.cfc │ │ │ │ ├── MockDebugTest.cfc │ │ │ │ ├── StateTransitionTest.cfc │ │ │ │ ├── PatternInvocationTest.cfc │ │ │ │ ├── FileDeleterTest.cfc │ │ │ │ ├── MockifyTest.cfc │ │ │ │ ├── BasicMXUnitIntegrationTest.cfc │ │ │ │ ├── TypeParserTest.cfc │ │ │ │ └── BaseTest.cfc │ │ │ ├── bugs │ │ │ │ ├── fixture │ │ │ │ │ ├── 122 │ │ │ │ │ │ ├── GoodTest.cfc │ │ │ │ │ │ └── ParseErrorTest.cfc │ │ │ │ │ ├── 93sample.cfc │ │ │ │ │ ├── test-with_hyphen.cfc │ │ │ │ │ └── test_with_underscore.cfc │ │ │ │ ├── 90.cfc │ │ │ │ ├── 105ExtendedTest.cfc │ │ │ │ ├── 105.cfc │ │ │ │ ├── 93.cfc │ │ │ │ ├── 149Test.cfc │ │ │ │ ├── run-me │ │ │ │ │ ├── test-with_hyphen.cfc │ │ │ │ │ └── test_with_underscore.cfc │ │ │ │ ├── Bug115.cfc │ │ │ │ └── bug126.cfc │ │ │ ├── build.properties │ │ │ ├── compatability │ │ │ │ └── DoesNotHaveTestAtEndOrBegining.cfc │ │ │ ├── samples │ │ │ │ ├── MyComponent.cfc │ │ │ │ └── MyComponentTest.cfc │ │ │ ├── ant │ │ │ │ ├── commitSvnTest.xml │ │ │ │ ├── build.xml │ │ │ │ └── svnUpdateTest.xml │ │ │ ├── runner │ │ │ │ └── HTMLRunnerTest.cfc │ │ │ └── run.cfm │ │ ├── framework │ │ │ ├── mightymock │ │ │ │ ├── AbstractMock.cfc │ │ │ │ ├── MockLogger.cfc │ │ │ │ ├── MockFactory.cfc │ │ │ │ ├── MightyMockFactory.cfc │ │ │ │ ├── todo │ │ │ │ └── MockDebug.cfc │ │ │ ├── lib │ │ │ │ ├── xom-1.2.6.jar │ │ │ │ └── tagsoup-1.2.jar │ │ │ ├── javaloader │ │ │ │ ├── lib │ │ │ │ │ └── classloader-20100119110136.jar │ │ │ │ ├── readme.txt │ │ │ │ ├── support │ │ │ │ │ ├── spring │ │ │ │ │ │ └── lib │ │ │ │ │ │ │ ├── spring-coldfusion.jar │ │ │ │ │ │ │ └── spring-coldfusion-src.zip │ │ │ │ │ └── cfcdynamicproxy │ │ │ │ │ │ └── lib │ │ │ │ │ │ ├── cfcdynamicproxy.jar │ │ │ │ │ │ └── cfcdynamicproxy-src.zip │ │ │ │ └── tags │ │ │ │ │ └── directory.cfm │ │ │ ├── decorators │ │ │ │ ├── AlphabeticallyOrderedTestsDecorator.cfc │ │ │ │ ├── TransactionRollbackDecorator.cfc │ │ │ │ └── OrderedTestDecorator.cfc │ │ │ ├── Test.cfc │ │ │ ├── adapters │ │ │ │ └── cf9 │ │ │ │ │ └── PublicProxyMaker.cfc │ │ │ ├── VersionReader.cfc │ │ │ ├── QueryTestResult.cfc │ │ │ └── HamcrestAssert.cfc │ │ ├── samples │ │ │ ├── HttpAntRunner.cfc │ │ │ ├── TestCaseSkeleton.cfc │ │ │ ├── MyComponent.cfc │ │ │ ├── tests │ │ │ │ ├── myTestSuite.cfm │ │ │ │ ├── MyComponentTest.cfc │ │ │ │ └── TestCaseSkeletonTest.cfc │ │ │ ├── mocking │ │ │ │ ├── TheComponent.cfc │ │ │ │ ├── TheCollaborator.cfc │ │ │ │ └── TheStubTest.cfc │ │ │ ├── SimpleRunSkeleton.cfm │ │ │ ├── MyTestSuite.cfm │ │ │ ├── DirectoryTestSuiteSample.cfm │ │ │ ├── ScheduledRun.cfm │ │ │ └── MyComponentTest.cfc │ │ ├── images │ │ │ ├── bug_green.gif │ │ │ └── MXUnit-Small.png │ │ ├── ant │ │ │ ├── lib │ │ │ │ └── mxunit-ant.jar │ │ │ ├── stylesheets │ │ │ │ ├── antmanual.css │ │ │ │ └── style.css │ │ │ └── README.txt │ │ ├── generator │ │ │ ├── no-bugs.gif │ │ │ ├── MXUnit_Parameter_Types_for_Automatic_Test_Generation.doc │ │ │ ├── generator.js │ │ │ ├── main.css │ │ │ └── templates │ │ │ │ ├── FailNewTagStyle.xslt │ │ │ │ ├── FailNew.xslt │ │ │ │ └── SucceedNew.xslt │ │ ├── lib │ │ │ └── ant-contrib-1.0b3.jar │ │ ├── buildprops │ │ │ ├── antrunner_sample.properties │ │ │ ├── antrunner.properties │ │ │ ├── unames_example.properties │ │ │ ├── version.properties │ │ │ └── scripts │ │ │ │ └── http_doc_gen.js │ │ ├── resources │ │ │ ├── jquery │ │ │ │ ├── tablesorter │ │ │ │ │ ├── blue │ │ │ │ │ │ ├── bg.gif │ │ │ │ │ │ ├── asc.gif │ │ │ │ │ │ ├── blue.zip │ │ │ │ │ │ ├── desc.gif │ │ │ │ │ │ └── style.css │ │ │ │ │ └── green │ │ │ │ │ │ ├── up.png │ │ │ │ │ │ ├── down.png │ │ │ │ │ │ ├── default.png │ │ │ │ │ │ └── style.css │ │ │ │ ├── tipsy │ │ │ │ │ ├── images │ │ │ │ │ │ └── tipsy.gif │ │ │ │ │ └── stylesheets │ │ │ │ │ │ └── tipsy.css │ │ │ │ └── spark.cfm │ │ │ └── theme │ │ │ │ └── footer.cfm │ │ ├── PluginDemoTests │ │ │ ├── inheritance │ │ │ │ ├── SomeExtendingTest.cfc │ │ │ │ ├── BaseTest.cfc │ │ │ │ └── SomeDoublyExtendingTest.cfc │ │ │ ├── FiveSecondTest.cfc │ │ │ ├── SubDir │ │ │ │ ├── AnotherSubDir │ │ │ │ │ ├── TestSomething.cfc │ │ │ │ │ ├── SomeComponentWithStuff.cfc │ │ │ │ │ ├── AnotherTest.cfc │ │ │ │ │ └── SomeOtherTest.cfc │ │ │ │ └── CFUnitStyleTest.cfc │ │ │ ├── TestOrdering │ │ │ │ ├── AlphabeticallyOrderedTest.cfc │ │ │ │ └── DefaultOrderedTest.cfc │ │ │ ├── weirderrordemos │ │ │ │ ├── extends │ │ │ │ │ ├── SomeTest.cfc │ │ │ │ │ └── Extends.cfc │ │ │ │ ├── BustedSetupTest.cfc │ │ │ │ ├── BustedTearDownTest.cfc │ │ │ │ └── BustedConstructorTest.cfc │ │ │ ├── SingleFailureTest.cfc │ │ │ ├── EmptyTest.cfc │ │ │ ├── ExpectedExceptionTest.cfc │ │ │ ├── InvalidMarkupTest.cfc │ │ │ ├── ThrowsAnErrorTest.cfc │ │ │ ├── SomeObject.cfc │ │ │ ├── CFScriptExpectedExceptionTest.cfc │ │ │ ├── ComplexExceptionTypeErrorTest.cfc │ │ │ ├── SingleMethodTest.cfc │ │ │ ├── run.cfm │ │ │ ├── DoubleMethodTest.cfc │ │ │ ├── PrivateMethodTest.cfc │ │ │ └── build.xml │ │ ├── eclipse │ │ │ ├── snippets │ │ │ │ ├── mxunit │ │ │ │ │ ├── assert │ │ │ │ │ │ ├── fail.xml │ │ │ │ │ │ ├── assertIsArray.xml │ │ │ │ │ │ ├── assertIsEmpty.xml │ │ │ │ │ │ ├── assertIsQuery.xml │ │ │ │ │ │ ├── assertIsStruct.xml │ │ │ │ │ │ ├── assertIsDefined.xml │ │ │ │ │ │ ├── assertSame.xml │ │ │ │ │ │ ├── assertEquals.xml │ │ │ │ │ │ ├── assertIsTypeOf.xml │ │ │ │ │ │ ├── assertNotSame.xml │ │ │ │ │ │ ├── assertFalse.xml │ │ │ │ │ │ ├── assertIsXMLDoc.xml │ │ │ │ │ │ ├── assertNotEquals.xml │ │ │ │ │ │ ├── assertTrue.xml │ │ │ │ │ │ ├── addAssertDecorator.xml │ │ │ │ │ │ └── try catch error path.xml │ │ │ │ │ ├── helpers │ │ │ │ │ │ ├── debug.xml │ │ │ │ │ │ ├── makepublic.xml │ │ │ │ │ │ ├── injectMethod.xml │ │ │ │ │ │ ├── cfquerysim.xml │ │ │ │ │ │ ├── injectProperty.xml │ │ │ │ │ │ ├── test-time override function.xml │ │ │ │ │ │ └── querysim.xml │ │ │ │ │ ├── setUp cfscript.xml │ │ │ │ │ ├── setUp.xml │ │ │ │ │ ├── tearDown cfscript.xml │ │ │ │ │ ├── tearDown.xml │ │ │ │ │ ├── new test function cfscript.xml │ │ │ │ │ ├── new test function.xml │ │ │ │ │ ├── new test error path function cfscript.xml │ │ │ │ │ ├── new test error path function.xml │ │ │ │ │ ├── new MXUnit TestCase cfscript.xml │ │ │ │ │ ├── testrunner │ │ │ │ │ │ ├── Directory Test Suite Skeleton.xml │ │ │ │ │ │ └── Simple Scheduled Test Run Template.xml │ │ │ │ │ └── new MXUnit TestCase.xml │ │ │ │ └── readme.txt │ │ │ └── dictionary │ │ │ │ └── readme.txt │ │ ├── README.txt │ │ ├── mxunit-TestSuiteTemplate.cfm │ │ ├── doc │ │ │ ├── colddoc │ │ │ │ └── strategy │ │ │ │ │ └── api │ │ │ │ │ └── resources │ │ │ │ │ └── templates │ │ │ │ │ ├── allclasses-frame.html │ │ │ │ │ ├── package-frame.html │ │ │ │ │ └── overview-frame.html │ │ │ └── api │ │ │ │ ├── mxunit │ │ │ │ ├── framework │ │ │ │ │ ├── ext │ │ │ │ │ │ └── package-frame.html │ │ │ │ │ ├── adapters │ │ │ │ │ │ └── cf9 │ │ │ │ │ │ │ └── package-frame.html │ │ │ │ │ ├── javaloader │ │ │ │ │ │ └── package-frame.html │ │ │ │ │ └── decorators │ │ │ │ │ │ └── package-frame.html │ │ │ │ └── runner │ │ │ │ │ └── package-frame.html │ │ │ │ └── index.html │ │ ├── mxunit-TestCase-Template.cfc │ │ ├── runner │ │ │ ├── runner.js │ │ │ ├── HtmlRunner.cfc │ │ │ └── index.cfm │ │ ├── MIT-License.txt │ │ └── utils │ │ │ └── BubbleSort.cfc │ │ ├── runner.cfm │ │ └── Application.cfc ├── css │ ├── modules │ │ ├── siteAlert.css │ │ ├── siteExplanation.css │ │ ├── siteTitle.css │ │ ├── siteNavigation.css │ │ └── taskList.css │ ├── security.css │ ├── reset.css │ ├── standard.css │ └── layouts │ │ └── master.css ├── controllers │ ├── tasks │ │ ├── delete.cfm │ │ ├── list.cfm │ │ ├── edit.cfm │ │ └── index.cfm │ ├── security │ │ ├── logout.cfm │ │ ├── passwordResetSent.cfm │ │ ├── login.cfm │ │ ├── forgotPassword.cfm │ │ ├── resetPassword.cfm │ │ ├── createAccount.cfm │ │ └── index.cfm │ └── account │ │ ├── index.cfm │ │ ├── edit.cfm │ │ └── changePassword.cfm ├── views │ ├── security │ │ ├── passwordResetSent.cfm │ │ ├── resetPassword.cfm │ │ ├── forgotPassword.cfm │ │ ├── login.cfm │ │ └── createAccount.cfm │ └── account │ │ ├── edit.cfm │ │ └── changePassword.cfm ├── layouts │ ├── security.cfm │ └── standard.cfm └── index.cfm └── design └── wireframe ├── login └── login_v1.png ├── tasks └── tasks_v1.png └── profile └── profile_v1.png /.gitignore: -------------------------------------------------------------------------------- 1 | 2 | # Don't include the exported JPG files. 3 | 4 | design/wireframe/pngs 5 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/tests/framework/fixture/interfaces/OtherInterface.cfc: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/tests/framework/fixture/xpath/nodes.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /design/wireframe/login/login_v1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennadel/MVC-Learning/HEAD/design/wireframe/login/login_v1.png -------------------------------------------------------------------------------- /design/wireframe/tasks/tasks_v1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennadel/MVC-Learning/HEAD/design/wireframe/tasks/tasks_v1.png -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/framework/mightymock/AbstractMock.cfc: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/samples/HttpAntRunner.cfc: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/tests/framework/fixture/interfaces/AnInterface.cfc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /design/wireframe/profile/profile_v1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennadel/MVC-Learning/HEAD/design/wireframe/profile/profile_v1.png -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/tests/framework/fixture/interfaces/SubInterface.cfc: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/tests/install/fixture/test.cfm: -------------------------------------------------------------------------------- 1 | test.cfm 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/images/bug_green.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennadel/MVC-Learning/HEAD/wwwroot/tests/server/mxunit/images/bug_green.gif -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/tests/framework/fixture/dataproviders/CSVWithoutHeaders.csv: -------------------------------------------------------------------------------- 1 | 0,1,1 2 | 1,5000,5050 3 | 2,5000,5100 4 | 3,5000,5150 5 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/tests/framework/fixture/interfaces/AComponent.cfc: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/tests/mightymock/fixture/Mockery.cfc: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/ant/lib/mxunit-ant.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennadel/MVC-Learning/HEAD/wwwroot/tests/server/mxunit/ant/lib/mxunit-ant.jar -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/generator/no-bugs.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennadel/MVC-Learning/HEAD/wwwroot/tests/server/mxunit/generator/no-bugs.gif -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/images/MXUnit-Small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennadel/MVC-Learning/HEAD/wwwroot/tests/server/mxunit/images/MXUnit-Small.png -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/lib/ant-contrib-1.0b3.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennadel/MVC-Learning/HEAD/wwwroot/tests/server/mxunit/lib/ant-contrib-1.0b3.jar -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/buildprops/antrunner_sample.properties: -------------------------------------------------------------------------------- 1 | server=localhost 2 | port=80 3 | context= 4 | webroot=c:/inetpub/wwwroot/ 5 | classpath.excludes= -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/framework/lib/xom-1.2.6.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennadel/MVC-Learning/HEAD/wwwroot/tests/server/mxunit/framework/lib/xom-1.2.6.jar -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/tests/framework/fixture/fixturetests/SubClassWithNoMethodsTest.cfc: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/framework/lib/tagsoup-1.2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennadel/MVC-Learning/HEAD/wwwroot/tests/server/mxunit/framework/lib/tagsoup-1.2.jar -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/tests/framework/fixture/dataproviders/SimpleCSV.csv: -------------------------------------------------------------------------------- 1 | TaxRate,ItemCost,ExpectedResult 2 | 0,1,1 3 | 1,5000,5050 4 | 2,5000,5100 5 | 3,5000,5150 6 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/buildprops/antrunner.properties: -------------------------------------------------------------------------------- 1 | server=localhost 2 | port=80 3 | webroot=c:/dev/projects/wwwroot/ 4 | classpath.excludes=svnjavahl.jar,svnClientAdapter.jar,svnant.jar -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/resources/jquery/tablesorter/blue/bg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennadel/MVC-Learning/HEAD/wwwroot/tests/server/mxunit/resources/jquery/tablesorter/blue/bg.gif -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/resources/jquery/tipsy/images/tipsy.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennadel/MVC-Learning/HEAD/wwwroot/tests/server/mxunit/resources/jquery/tipsy/images/tipsy.gif -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/resources/jquery/tablesorter/blue/asc.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennadel/MVC-Learning/HEAD/wwwroot/tests/server/mxunit/resources/jquery/tablesorter/blue/asc.gif -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/resources/jquery/tablesorter/blue/blue.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennadel/MVC-Learning/HEAD/wwwroot/tests/server/mxunit/resources/jquery/tablesorter/blue/blue.zip -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/resources/jquery/tablesorter/blue/desc.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennadel/MVC-Learning/HEAD/wwwroot/tests/server/mxunit/resources/jquery/tablesorter/blue/desc.gif -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/resources/jquery/tablesorter/green/up.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennadel/MVC-Learning/HEAD/wwwroot/tests/server/mxunit/resources/jquery/tablesorter/green/up.png -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/resources/jquery/tablesorter/green/down.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennadel/MVC-Learning/HEAD/wwwroot/tests/server/mxunit/resources/jquery/tablesorter/green/down.png -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/buildprops/unames_example.properties: -------------------------------------------------------------------------------- 1 | gc.username= 2 | gc.password= 3 | mail.from= 4 | mail.to= 5 | mail.host= 6 | ftp.site=ftp.mxunit.org 7 | ftp.username= 8 | ftp.password= -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/resources/jquery/tablesorter/green/default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennadel/MVC-Learning/HEAD/wwwroot/tests/server/mxunit/resources/jquery/tablesorter/green/default.png -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/tests/mightymock/fixture/Helper.cfc: -------------------------------------------------------------------------------- 1 | 2 | 3 | function helpMe(){ 4 | return 'called helper successfully'; 5 | } 6 | 7 | 8 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/framework/javaloader/lib/classloader-20100119110136.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennadel/MVC-Learning/HEAD/wwwroot/tests/server/mxunit/framework/javaloader/lib/classloader-20100119110136.jar -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/tests/framework/fixture/dataproviders/SimpleExcel.xls: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennadel/MVC-Learning/HEAD/wwwroot/tests/server/mxunit/tests/framework/fixture/dataproviders/SimpleExcel.xls -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/framework/javaloader/readme.txt: -------------------------------------------------------------------------------- 1 | JavaLoader v1.0 2 | Author: Mark Mandel 3 | Date: 10 September 2010 4 | 5 | Documentation can now be found at: 6 | http://www.compoundtheory.com/javaloader/docs/ -------------------------------------------------------------------------------- /wwwroot/css/modules/siteAlert.css: -------------------------------------------------------------------------------- 1 | 2 | div.m-siteAlert { 3 | background-color: #F0F0F0 ; 4 | font-size: 13px ; 5 | line-height: 18px ; 6 | margin-bottom: 30px ; 7 | padding: 12px 10px 12px 10px ; 8 | text-align: center ; 9 | } -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/PluginDemoTests/inheritance/SomeExtendingTest.cfc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/framework/javaloader/support/spring/lib/spring-coldfusion.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennadel/MVC-Learning/HEAD/wwwroot/tests/server/mxunit/framework/javaloader/support/spring/lib/spring-coldfusion.jar -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/tests/framework/fixture/dataproviders/ExcelWithoutHeaders.xls: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennadel/MVC-Learning/HEAD/wwwroot/tests/server/mxunit/tests/framework/fixture/dataproviders/ExcelWithoutHeaders.xls -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/framework/javaloader/support/spring/lib/spring-coldfusion-src.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennadel/MVC-Learning/HEAD/wwwroot/tests/server/mxunit/framework/javaloader/support/spring/lib/spring-coldfusion-src.zip -------------------------------------------------------------------------------- /wwwroot/controllers/tasks/delete.cfm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | // Now that the user has deleted the task, redirect the user back to 5 | // the list of tasks. 6 | location( url="./index.cfm?event=tasks", addToken="false" ); 7 | 8 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/generator/MXUnit_Parameter_Types_for_Automatic_Test_Generation.doc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennadel/MVC-Learning/HEAD/wwwroot/tests/server/mxunit/generator/MXUnit_Parameter_Types_for_Automatic_Test_Generation.doc -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/tests/framework/fixture/fixturetests/SuperClassWithPrivateMethodsTest.cfc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/framework/javaloader/support/cfcdynamicproxy/lib/cfcdynamicproxy.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennadel/MVC-Learning/HEAD/wwwroot/tests/server/mxunit/framework/javaloader/support/cfcdynamicproxy/lib/cfcdynamicproxy.jar -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/framework/javaloader/support/cfcdynamicproxy/lib/cfcdynamicproxy-src.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennadel/MVC-Learning/HEAD/wwwroot/tests/server/mxunit/framework/javaloader/support/cfcdynamicproxy/lib/cfcdynamicproxy-src.zip -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/buildprops/version.properties: -------------------------------------------------------------------------------- 1 | #Build version info 2 | #Sun Jan 15 16:44:26 EST 2012 3 | build.buildnum=1 4 | build.minor=1 5 | build.versiondescription=Release 6 | build.notation= 7 | build.date=01/15/2012 8 | build.major=2 9 | -------------------------------------------------------------------------------- /wwwroot/controllers/security/logout.cfm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | // Because we don't have an active security system, explicitly 5 | // forward the user to the login form. 6 | location( url="./index.cfm?event=security.login", addToken="false" ); 7 | 8 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/framework/mightymock/MockLogger.cfc: -------------------------------------------------------------------------------- 1 | 2 | 3 | /* 4 | Write invocation records to log 5 | */ 6 | function init(){ 7 | return this; 8 | } 9 | 10 | 11 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/tests/install/fixture/index.cfm: -------------------------------------------------------------------------------- 1 | hell from fixture 2 | 3 | 4 | getPageContext().include("test.cfm"); 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/tests/bugs/fixture/93sample.cfc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/tests/build.properties: -------------------------------------------------------------------------------- 1 | #build properties for the Ant builds build.xml and fast-build.xml 2 | server.name=localhost 3 | server.port=8301 4 | component.path=/home/billy/software/jrun4/servers/dev/cfusion.ear/cfusion.war 5 | mxunit.jar=../ant/lib/mxunit-ant.jar -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/tests/mightymock/fixture/AcceptStrictType.cfc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/PluginDemoTests/FiveSecondTest.cfc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/PluginDemoTests/SubDir/AnotherSubDir/TestSomething.cfc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/PluginDemoTests/TestOrdering/AlphabeticallyOrderedTest.cfc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/PluginDemoTests/weirderrordemos/extends/SomeTest.cfc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/PluginDemoTests/SubDir/AnotherSubDir/SomeComponentWithStuff.cfc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/eclipse/snippets/mxunit/assert/fail.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | fail 4 | 5 | ]]> 6 | 7 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/tests/framework/fixture/ATestSuite.cfc: -------------------------------------------------------------------------------- 1 | 2 | 3 | addAll("mxunit.tests.framework.AssertDecoratorTest"); 4 | addAll("mxunit.tests.bugs.fixture.test_with_underscore"); 5 | 6 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/eclipse/snippets/mxunit/helpers/debug.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | debug 4 | 5 | 6 | ]]> 7 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/eclipse/snippets/mxunit/setUp cfscript.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | setUp cfscript 4 | 5 | 8 | 9 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/tests/framework/fixture/MockFactory.cfc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | return this; 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/tests/mightymock/fixture/Dummy.cfc: -------------------------------------------------------------------------------- 1 | 2 | 3 | this.bah = 'this.bah'; 4 | foo = 'bar'; 5 | variables.instance.bah = 'barbar'; 6 | 7 | function bar(){ 8 | return foo; 9 | } 10 | 11 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/eclipse/snippets/mxunit/setUp.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | setUp 4 | 5 | 6 | ]]> 7 | ]]> 9 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/eclipse/snippets/mxunit/tearDown cfscript.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | tearDown cfscript 4 | 5 | 8 | 9 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/tests/mightymock/fixture/Mockify.cfc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /wwwroot/css/security.css: -------------------------------------------------------------------------------- 1 | 2 | @import url( "./reset.css" ); 3 | @import url( "./layouts/master.css" ); 4 | @import url( "./modules/siteAlert.css" ); 5 | @import url( "./modules/siteTitle.css" ); 6 | @import url( "./modules/siteNavigation.css" ); 7 | @import url( "./modules/form.css" ); 8 | @import url( "./modules/siteExplanation.css" ); 9 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/PluginDemoTests/SingleFailureTest.cfc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | wooopity doo! 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/eclipse/snippets/mxunit/tearDown.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | tearDown 4 | 5 | 6 | ]]> 7 | ]]> 9 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/PluginDemoTests/weirderrordemos/extends/Extends.cfc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/eclipse/snippets/mxunit/assert/assertIsArray.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | assertIsArray 4 | 5 | ]]> 6 | 7 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/eclipse/snippets/mxunit/assert/assertIsEmpty.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | assertIsEmpty 4 | 5 | 6 | ]]> 7 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/eclipse/snippets/mxunit/assert/assertIsQuery.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | assertIsQuery 4 | 5 | ]]> 6 | 7 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/eclipse/snippets/mxunit/assert/assertIsStruct.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | assertIsStruct 4 | 5 | ]]> 6 | 7 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/eclipse/snippets/mxunit/assert/assertIsDefined.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | assertIsDefined 4 | 5 | ]]> 6 | 7 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/eclipse/snippets/mxunit/assert/assertSame.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | assertSame 4 | 5 | 6 | ]]> 7 | -------------------------------------------------------------------------------- /wwwroot/controllers/security/passwordResetSent.cfm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | // Populate the view data for rendering. 5 | request.viewData.title = "Your Password Reset Email Has Been Sent"; 6 | 7 | // Populate the relevant views and layout. 8 | include "/views/security/passwordResetSent.cfm"; 9 | include "/layouts/security.cfm"; 10 | 11 | -------------------------------------------------------------------------------- /wwwroot/css/reset.css: -------------------------------------------------------------------------------- 1 | 2 | body { 3 | background-color: #FFFFFF ; 4 | color: #333333 ; 5 | font-family: helvetica, arial, sans-serif ; 6 | font-size: 16px ; 7 | line-height: 21px ; 8 | margin: 0px 0px 0px 0px ; 9 | padding: 0px 0px 0px 0px ; 10 | } 11 | 12 | form { 13 | margin: 0px 0px 0px 0px ; 14 | } 15 | 16 | a { 17 | color: #333333 ; 18 | } -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/eclipse/snippets/mxunit/assert/assertEquals.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | assertEquals 4 | 5 | 6 | ]]> 7 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/eclipse/snippets/mxunit/assert/assertIsTypeOf.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | assertIsTypeOf 4 | 5 | 6 | ]]> 7 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/eclipse/snippets/mxunit/helpers/makepublic.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | makepublic 4 | 5 | 6 | ]]> 7 | -------------------------------------------------------------------------------- /wwwroot/controllers/tasks/list.cfm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | // Populate the view data for view rendering. 5 | include "/views/tasks/list.cfm"; 6 | 7 | // Populate the view data for layout rendering. 8 | request.viewData.title = "Your Current Tasks"; 9 | request.viewData.activeNavItem = "tasks"; 10 | include "/layouts/standard.cfm"; 11 | 12 | -------------------------------------------------------------------------------- /wwwroot/css/modules/siteExplanation.css: -------------------------------------------------------------------------------- 1 | 2 | div.m-siteExplanation { 3 | color: #999999 ; 4 | font-size: 12px ; 5 | line-height: 17px ; 6 | } 7 | 8 | div.m-siteExplanation h4 { 9 | margin: 0px 0px 2px 0px ; 10 | } 11 | 12 | div.m-siteExplanation p { 13 | margin: 0px 0px 0px 0px ; 14 | } 15 | 16 | div.m-siteExplanation a { 17 | color: #999999 ; 18 | } -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/PluginDemoTests/EmptyTest.cfc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/eclipse/snippets/mxunit/assert/assertNotSame.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | assertNotSame 4 | 5 | 6 | ]]> 7 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/PluginDemoTests/ExpectedExceptionTest.cfc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/eclipse/snippets/mxunit/assert/assertFalse.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | assertFalse 4 | 5 | 6 | ]]> 7 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/eclipse/snippets/mxunit/assert/assertIsXMLDoc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | assertIsXMLDoc 4 | 5 | 6 | ]]> 7 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/eclipse/snippets/mxunit/assert/assertNotEquals.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | assertNotEquals 4 | 5 | 6 | ]]> 7 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/eclipse/snippets/mxunit/assert/assertTrue.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | assertTrue 4 | 5 | 6 | ]]> 7 | -------------------------------------------------------------------------------- /wwwroot/css/standard.css: -------------------------------------------------------------------------------- 1 | 2 | @import url( "./reset.css" ); 3 | @import url( "./layouts/master.css" ); 4 | @import url( "./modules/siteAlert.css" ); 5 | @import url( "./modules/siteTitle.css" ); 6 | @import url( "./modules/siteNavigation.css" ); 7 | @import url( "./modules/taskList.css" ); 8 | @import url( "./modules/form.css" ); 9 | @import url( "./modules/siteExplanation.css" ); -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/PluginDemoTests/inheritance/BaseTest.cfc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/PluginDemoTests/inheritance/SomeDoublyExtendingTest.cfc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/PluginDemoTests/TestOrdering/DefaultOrderedTest.cfc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/samples/TestCaseSkeleton.cfc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/eclipse/snippets/mxunit/assert/addAssertDecorator.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | addAssertDecorator 4 | 5 | 6 | ]]> 7 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/tests/framework/fixture/ComparatorTestData.cfc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/tests/framework/fixture/ParentWithPrivateMethods.cfc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/eclipse/snippets/mxunit/new test function cfscript.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | new test function cfscript 4 | 5 | 8 | 9 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/tests/mightymock/MockLoggerTest.cfc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | function testWriteLog() { 6 | //To Do: do logging 7 | debug('to do'); 8 | } 9 | 10 | 11 | 12 | function setUp(){ 13 | 14 | } 15 | 16 | function tearDown(){ 17 | 18 | } 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/tests/bugs/90.cfc: -------------------------------------------------------------------------------- 1 | 2 | Calls TestSuite.run() which invokes tearDown(). This is caught but not 3 | displayed in debug .. 4 | 5 | 6 | error 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/tests/framework/DynamicTestCaseGenerationTest.cfc: -------------------------------------------------------------------------------- 1 | 2 | 3 | component extends="mxunit.framework.TestCase" { 4 | 5 | a = [1,2,3,4]; 6 | 7 | 8 | 9 | function setUp(){ 10 | 11 | } 12 | 13 | 14 | 15 | 16 | /** 17 | * @dataprovider a 18 | */ 19 | function testThis(a){ 20 | debug(a); 21 | } 22 | 23 | 24 | } 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/generator/generator.js: -------------------------------------------------------------------------------- 1 | function toggle(frm) 2 | { 3 | for ( ii=0 ; ii < frm.tableNameList.length ; ii++) 4 | { 5 | frm.tableNameList[ii].checked = frm.all.checked; 6 | } 7 | } 8 | 9 | function suggest(frm,target,delim) 10 | { 11 | if (delim == "file") 12 | { 13 | target.value = frm.value + "/tests"; 14 | } else { 15 | target.value = frm.value + ".tests"; 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /wwwroot/views/security/passwordResetSent.cfm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 |

8 | I a few moments, you should receive an email with a link 9 | to choose a new password. 10 |

11 | 12 |

13 | Back to login. 14 |

15 | 16 | 17 |
18 |
-------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/eclipse/snippets/mxunit/helpers/injectMethod.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | injectMethod 4 | 5 | 6 | ]]> 7 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/tests/framework/adapters/cf9/PublicProxyMakerTest.cfc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/PluginDemoTests/InvalidMarkupTest.cfc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 13 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/eclipse/snippets/mxunit/helpers/cfquerysim.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | cfquerysim 4 | 5 | 6 | 7 | 8 | q 9 | ]]> 10 | 14 | 15 | ]]> 16 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/README.txt: -------------------------------------------------------------------------------- 1 | MXUnit is a unit test framework for CFML. 2 | 3 | Main website: http://mxunit.org 4 | 5 | Docs, etc: http://wiki.mxunit.org 6 | 7 | Bugs and enhancements: http://jira.mxunit.org 8 | 9 | SVN: http://mxunit.googlecode.com/svn/mxunit/trunk 10 | 11 | MXUnit Google Group (to get help): http://groups.google.com/group/mxunit 12 | 13 | Version Info: This is a nightly build of the 2.0.3 stream, built on 09/09/2011 -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/eclipse/snippets/mxunit/helpers/injectProperty.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | injectProperty 4 | 5 | 6 | ]]> 7 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/eclipse/snippets/mxunit/helpers/test-time override function.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | test-time override function 4 | 5 | 6 | 7 | 8 | ]]> 9 | ]]> 10 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/eclipse/snippets/mxunit/new test function.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | new test function 4 | 5 | 6 | 7 | 8 | ]]> 9 | ]]> 11 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/tests/framework/fixture/DataProviderFixture.cfc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | function double(param1){ 5 | return param1 * 2; 6 | } 7 | 8 | function queryEcho(q) { 9 | return q.recordCount; 10 | } 11 | 12 | 13 | 14 | 15 | 16 | q 17 | col1,col2,col3,col4 18 | 1|1.2|1.3|1.4 19 | 2|2.2|2.3|2.4 20 | 3|3.2|3.3|3.4 21 | 22 | 23 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/tests/mightymock/AbstractMockTest.cfc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | function testAbstractMockMetaData(){ 5 | //debug( getMetaData(mock) ); 6 | } 7 | 8 | function setUp(){ 9 | mock = createObject('component' ,'mxunit.framework.mightymock.AbstractMock'); 10 | } 11 | 12 | 13 | function tearDown(){ 14 | } 15 | 16 | 17 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/framework/decorators/AlphabeticallyOrderedTestsDecorator.cfc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/tests/bugs/105ExtendedTest.cfc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | should display two tests 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/tests/compatability/DoesNotHaveTestAtEndOrBegining.cfc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | function testSomething(){ 5 | fail("implement me ..."); 6 | } 7 | 8 | 9 | /* 10 | @BeforeTest/@AfterTest 11 | */ 12 | 13 | function setUp(){ 14 | 15 | } 16 | 17 | function tearDown(){ } 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/PluginDemoTests/weirderrordemos/BustedSetupTest.cfc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/PluginDemoTests/weirderrordemos/BustedTearDownTest.cfc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/eclipse/snippets/mxunit/helpers/querysim.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | querysim 4 | 5 | 6 | 7 | 8 | q 9 | $${column names separated by commas} 10 | $${row of data separated by pipes} 11 | 12 | ]]> 13 | 15 | 16 | ]]> 17 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/eclipse/snippets/mxunit/new test error path function cfscript.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | new test error path function cfscript 4 | 5 | 10 | 11 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/tests/framework/fixture/Mocking.cfc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | mymock = mock("mxunit.framework.Assert"); 6 | assertIsTypeOf(mymock,"mxunit.framework.Assert"); 7 | mymock.mockMethod("getHashCode").returns("Hello!"); 8 | assertEquals("Hello!",mymock.getHashCode("")); 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/PluginDemoTests/weirderrordemos/BustedConstructorTest.cfc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/samples/MyComponent.cfc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/tests/samples/MyComponent.cfc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /wwwroot/css/modules/siteTitle.css: -------------------------------------------------------------------------------- 1 | 2 | a.m-siteTitle { 3 | color: #333333 ; 4 | display: block ; 5 | font-family: "Yanone Kaffeesatz" ; 6 | font-size: 34px ; 7 | height: 39px ; 8 | line-height: 39px ; 9 | text-decoration: none ; 10 | } 11 | 12 | a.m-siteTitle span.primary { 13 | display: inline-block ; 14 | font-weight: 700 ; 15 | text-transform: uppercase ; 16 | } 17 | 18 | a.m-siteTitle span.secondary { 19 | color: #CCCCCC ; 20 | display: inline-block ; 21 | font-weight: 200 ; 22 | margin-left: 4px ; 23 | } 24 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/tests/bugs/105.cfc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | We just want this test to run and will extend if later 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/samples/tests/myTestSuite.cfm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | DTS = createObject("component","mxunit.runner.DirectoryTestSuite"); 5 | excludes = ""; 6 | results = DTS.run( 7 | directory = "c:\inetpub\wwwroot\mxunit\samples\tests\", 8 | componentPath = "mxunit.samples.tests", 9 | recurse = "true", 10 | excludes = "#excludes#" 11 | ); 12 | 13 | 14 | #results.getResultsOutput(URL.output)# 15 | 16 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/PluginDemoTests/ThrowsAnErrorTest.cfc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/tests/mightymock/CaseSensitivtyTest.cfc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | function mockShouldBeCaseInsensitive(){ 5 | m = $('bar'); 6 | m.foo('bar').returns(true); 7 | 8 | m.foo('bar'); 9 | m.foo('Bar'); 10 | m.fOo('BaR'); 11 | m.fOO('bAr'); 12 | m.verifyTimes(4).foo('bar'); 13 | } 14 | 15 | 16 | function setUp(){ 17 | 18 | } 19 | 20 | function tearDown(){ 21 | 22 | } 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /wwwroot/controllers/account/index.cfm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | // Param the second-level event. 5 | param name="request.event[ 2 ]" type="string" default="edit"; 6 | 7 | 8 | // Route the request based on the current event. 9 | switch (request.event[ 2 ]){ 10 | 11 | case "changePassword": 12 | include "changePassword.cfm"; 13 | break; 14 | 15 | case "edit": 16 | include "edit.cfm"; 17 | break; 18 | 19 | // The provided event could not be matched. 20 | default: 21 | throw( type="InvalidEvent" ); 22 | break; 23 | 24 | } 25 | 26 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/eclipse/snippets/mxunit/new test error path function.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | new test error path function 4 | 5 | 6 | 7 | 8 | ]]> 9 | 10 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/eclipse/snippets/readme.txt: -------------------------------------------------------------------------------- 1 | ----------------------------------------------- 2 | Instructions for installing the mxunit snippets 3 | ----------------------------------------------- 4 | 5 | 6 | 1) in Eclipse: go to Window -- Preferences -- CFEclipse 7 | 2) copy the path to the snippets directory 8 | 3) open that path on your file system 9 | 4) copy the snippets/mxunit directory into the snippets directory that you just opened 10 | 5) optionally, copy the contents of snippets/mxunit/keyCombos.properties into your existing keyCombos.properties file -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/tests/bugs/fixture/122/GoodTest.cfc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/tests/bugs/fixture/122/ParseErrorTest.cfc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/tests/mightymock/fixture/ParentSpyObject.cfc: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/eclipse/dictionary/readme.txt: -------------------------------------------------------------------------------- 1 | 2 | 1) open /plugins/org.cfeclipse.cfml_/dictionary/ 3 | 2) copy mxunit.xml into that directory 4 | 3) open dictionaryconfig.xml 5 | 4) underneath the "" lines, add: 6 | 7 | 8 | 9 | 5) restart eclipse 10 | 11 | Then, inside any test cases, typing the function names for public and package functions from TestCase and the Assert* cfcs will pop up function support. For example, type "assertEquals(" 12 | 13 | and the argument popups will appear. -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/eclipse/snippets/mxunit/assert/try catch error path.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | try catch error path 4 | 5 | 6 | 7 | 8 | 9 | ]]> 10 | 13 | 14 | 15 | 16 | 17 | ]]> 18 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/resources/theme/footer.cfm: -------------------------------------------------------------------------------- 1 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/tests/framework/fixture/MyCFC.cfc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/PluginDemoTests/SubDir/AnotherSubDir/AnotherTest.cfc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/tests/mightymock/MockDebugTest.cfc: -------------------------------------------------------------------------------- 1 | 2 | 3 | function testDebug(){ 4 | assertIsTypeOf( mockBug, 'mxunit.framework.mightymock.MockDebug'); 5 | } 6 | 7 | 8 | 9 | function dumpMockBugs() { 10 | m = $('snicker'); 11 | m.foo().returns(); 12 | m.bar(123).throws('eek-a-mouse'); 13 | a = [1,2,3,4,5]; 14 | m.foobar('asd').returns(a); 15 | 16 | debug( mockBug.debug(m,true) ); 17 | } 18 | 19 | 20 | function setUp() { 21 | mockBug = createObject('component', 'mxunit.framework.mightymock.MockDebug'); 22 | 23 | 24 | 25 | } 26 | 27 | -------------------------------------------------------------------------------- /wwwroot/css/modules/siteNavigation.css: -------------------------------------------------------------------------------- 1 | 2 | ul.m-siteNavigation { 3 | background-color: #CCCCCC ; 4 | font-size: 16px ; 5 | height: 35px ; 6 | line-height: 36px ; 7 | list-style-type: none ; 8 | margin: 0px 0px 0px 0px ; 9 | overflow: hidden ; 10 | padding: 0px 0px 0px 0px ; 11 | } 12 | 13 | ul.m-siteNavigation li.navItem { 14 | float: left ; 15 | } 16 | 17 | ul.m-siteNavigation li.rightNavItem { 18 | float: right ; 19 | } 20 | 21 | ul.m-siteNavigation a { 22 | display: block ; 23 | padding: 0px 20px 0px 20px ; 24 | text-decoration: none ; 25 | } 26 | 27 | ul.m-siteNavigation li.activeNavItem a { 28 | background-color: #333333 ; 29 | color: #FFFFFF ; 30 | } 31 | -------------------------------------------------------------------------------- /wwwroot/views/security/resetPassword.cfm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 |

12 | New Password: 13 | 14 |

15 | 16 |

17 | Re-Type Password: 18 | 19 |

20 | 21 |

22 | 23 |

24 | 25 |
26 | 27 | 28 |
29 |
-------------------------------------------------------------------------------- /wwwroot/controllers/security/login.cfm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | // Param the form values. 5 | param name="form.submitted" type="boolean" default="false"; 6 | 7 | // Check to see if the form has been submitted. 8 | if (form.submitted){ 9 | 10 | // Now that the user is authenticated, forward the user to 11 | // the homepage. 12 | location( url="./index.cfm", addToken="false" ); 13 | 14 | } 15 | 16 | // Populate the view data for view rendering. 17 | include "/views/security/login.cfm"; 18 | 19 | // Populate the view data for layout rendering. 20 | request.viewData.title = "Please Login"; 21 | request.viewData.activeNavItem = "signIn"; 22 | include "/layouts/security.cfm"; 23 | 24 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/PluginDemoTests/SomeObject.cfc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/tests/ant/commitSvnTest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/tests/mightymock/fixture/FileDeleter.cfc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 10 | 11 | -------------------------------------------------------------------------------- /wwwroot/controllers/account/edit.cfm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | // Param the form values. 5 | param name="form.submitted" type="boolean" default="false"; 6 | 7 | // Check to see if the form has been submitted. 8 | if (form.submitted){ 9 | 10 | // Now that the user has updated their account, redirect them back to the 11 | // default page. 12 | location( url="./index.cfm", addToken="false" ); 13 | 14 | } 15 | 16 | // Populate the view data for view rendering. 17 | include "/views/account/edit.cfm"; 18 | 19 | // Populate the view data for layout rendering. 20 | request.viewData.title = "Your Profile"; 21 | request.viewData.activeNavItem = "profile"; 22 | include "/layouts/standard.cfm"; 23 | 24 | -------------------------------------------------------------------------------- /wwwroot/controllers/tasks/edit.cfm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | // Param the form values. 5 | param name="form.submitted" type="boolean" default="false"; 6 | 7 | // Check to see if the form has been submitted. 8 | if (form.submitted){ 9 | 10 | // Now that the user has updated the task, redirect them back to the 11 | // list of tasks. 12 | location( url="./index.cfm?event=tasks", addToken="false" ); 13 | 14 | } 15 | 16 | // Populate the view data for view rendering. 17 | include "/views/tasks/edit.cfm"; 18 | 19 | // Populate the view data for layout rendering. 20 | request.viewData.title = "Task Details"; 21 | request.viewData.activeNavItem = "tasks"; 22 | include "/layouts/standard.cfm"; 23 | 24 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/PluginDemoTests/CFScriptExpectedExceptionTest.cfc: -------------------------------------------------------------------------------- 1 | component extends="mxunit.framework.TestCase" { 2 | 3 | /** 4 | * @mxunit:expectedException MyCustomException 5 | */ 6 | function thisShouldFail_BecauseExpectedExceptionIsNotThrown(){ 7 | throw("hi mom!", "SomeOtherKindOfException"); 8 | } 9 | 10 | /** 11 | * @mxunit:expectedException MyCustomException 12 | */ 13 | function thisShouldPass_BecauseExpectedExceptionIsThrown(){ 14 | throw("hi mom!", "MyCustomException"); 15 | } 16 | 17 | /** 18 | * @mxunit:expectedException MyCustom.Exception 19 | */ 20 | function thisShouldPass_BecauseExpectedExceptionIsThrown2(){ 21 | throw("hi mom!", "MyCustom.Exception"); 22 | } 23 | } -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/tests/ant/build.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | Running antunit tests 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/tests/framework/AssertionChainingTest.cfc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | function testAssertMethodChainAndPrint(){ 6 | 7 | println('Added method chaining for assert() only.'); 8 | print('Not sure what value it has unless someone is instantiating Assert separately.'); 9 | 10 | assert(true, "should be true") 11 | .assert(1 eq 1, "better be true") 12 | .assert('asd' is 'asd', "should be true"); 13 | 14 | } 15 | 16 | 17 | 18 | function setUp(){ 19 | 20 | } 21 | 22 | function tearDown(){ 23 | 24 | } 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /wwwroot/controllers/account/changePassword.cfm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | // Param the form values. 5 | param name="form.submitted" type="boolean" default="false"; 6 | 7 | // Check to see if the form has been submitted. 8 | if (form.submitted){ 9 | 10 | // Now that the user has updated their password, redirect them back to the 11 | // default page. 12 | location( url="./index.cfm", addToken="false" ); 13 | 14 | } 15 | 16 | // Populate the view data for view rendering. 17 | include "/views/account/changePassword.cfm"; 18 | 19 | // Populate the view data for layout rendering. 20 | request.viewData.title = "Change Password"; 21 | request.viewData.activeNavItem = "profile"; 22 | include "/layouts/standard.cfm"; 23 | 24 | -------------------------------------------------------------------------------- /wwwroot/controllers/security/forgotPassword.cfm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | // Param the form values. 5 | param name="form.submitted" type="boolean" default="false"; 6 | 7 | // Check to see if the form has been submitted. 8 | if (form.submitted){ 9 | 10 | // The user will be sent a "password reset" email with a link 11 | // to a page that will collection a new password. 12 | location( url="./index.cfm?event=security.login", addToken="false" ); 13 | 14 | } 15 | 16 | // Populate the view data for view rendering. 17 | include "/views/security/forgotPassword.cfm"; 18 | 19 | // Populate the view data for layout rendering. 20 | request.viewData.title = "Forgot Your Password"; 21 | include "/layouts/security.cfm"; 22 | 23 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/eclipse/snippets/mxunit/new MXUnit TestCase cfscript.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | new MXUnit TestCase cfscript 4 | 5 | 28 | 29 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/tests/bugs/93.cfc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | _93 = createObject("component","mxunit.tests.bugs.fixture.93Sample"); 6 | debug(_93.printTrace()); 7 | 8 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /wwwroot/tests/server/runner.cfm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | // Set up our test suite. 5 | testSuite = new mxunit.framework.TestSuite().TestSuite(); 6 | 7 | // Add the test sepcification for our Task model. 8 | testSuite.addAll( "specs.TaskTest" ); 9 | testSuite.addAll( "specs.AccountTest" ); 10 | 11 | // Run the tests that have been added to the test suite. This 12 | // will include all of the methods in the test specifications. 13 | results = testSuite.run(); 14 | 15 | // Output the test results as HTML. Pass in the webroot to the 16 | // MXUnit folder so that the rendering can properly set the CSS 17 | // and JavaScript paths. 18 | writeOutput( 19 | results.getHtmlResults( "./mxunit/" ) 20 | ); 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /wwwroot/controllers/security/resetPassword.cfm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | // Param the form values. 5 | param name="form.submitted" type="boolean" default="false"; 6 | 7 | // Check to see if the form has been submitted. 8 | if (form.submitted){ 9 | 10 | // Now that the user has chosen a new password, redirect them 11 | // back to the login screen where they can make use of it. 12 | location( url="./index.cfm?event=security.login", addToken="false" ); 13 | 14 | } 15 | 16 | // Populate the view data for view rendering. 17 | include "/views/security/resetPassword.cfm"; 18 | 19 | // Populate the view data for layout rendering. 20 | request.viewData.title = "Choose A New Password"; 21 | include "/layouts/security.cfm"; 22 | 23 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/PluginDemoTests/ComplexExceptionTypeErrorTest.cfc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/tests/framework/fixture/TestAssertComponent.cfc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 8 | 9 | 10 | 11 | 12 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/framework/Test.cfc: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 8 | 9 | 10 | 11 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /wwwroot/controllers/security/createAccount.cfm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | // Param the form values. 5 | param name="form.submitted" type="boolean" default="false"; 6 | 7 | // Check to see if the form has been submitted. 8 | if (form.submitted){ 9 | 10 | // Now that the user has created an account, log the user into 11 | // the system and then forward them to the homepage. 12 | location( url="./index.cfm", addToken="false" ); 13 | 14 | } 15 | 16 | // Populate the view data for view rendering. 17 | include "/views/security/createAccount.cfm"; 18 | 19 | // Populate the view data for layout rendering. 20 | request.viewData.title = "Create An Account"; 21 | request.viewData.activeNavItem = "createAccount"; 22 | include "/layouts/security.cfm"; 23 | 24 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/PluginDemoTests/SubDir/CFUnitStyleTest.cfc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/tests/framework/fixture/decorators/StoreTestNameDecorator.cfc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | request.test = arguments; 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/PluginDemoTests/SubDir/AnotherSubDir/SomeOtherTest.cfc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/PluginDemoTests/SingleMethodTest.cfc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/tests/framework/fixture/decorators/IgnoreFunnyFunctionsDecorator.cfc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/framework/decorators/TransactionRollbackDecorator.cfc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/mxunit-TestSuiteTemplate.cfm: -------------------------------------------------------------------------------- 1 | 9 | 10 | 11 | testSuite = createObject("component","mxunit.framework.TestSuite").TestSuite(); //TestSuite() is the constructor 12 | testSuite.addAll("path.to.myTest"); 13 | testSuite.addAll("path.to.myOtherTest"); 14 | //Create mxunit.framework.TestResult object 15 | results = testSuite.run(); 16 | 17 | 18 | 19 | #results.getHtmlResults()# -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/samples/mocking/TheComponent.cfc: -------------------------------------------------------------------------------- 1 | 2 | 3 | theCollaborator = createObject('component','TheCollaborator'); 4 | 5 | function init(){ 6 | return this; 7 | } 8 | 9 | 10 | function setCollaborator(collaborator){ 11 | theCollaborator = collaborator; 12 | } 13 | 14 | function callLoggerALot(){ 15 | var i = 1; 16 | var arbitrary = 0; 17 | for(i; i <= 25; i++){ 18 | arbitrary = hash(i); 19 | theCollaborator.logStuff(); 20 | } 21 | } 22 | 23 | function getUserAsStruct(id){ 24 | var temp = theCollaborator.getUser(id); 25 | var user = {}; 26 | user['id'] = temp.id; 27 | user['name'] = temp.name; 28 | user['email'] = temp.email; 29 | return user; 30 | } 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/framework/javaloader/tags/directory.cfm: -------------------------------------------------------------------------------- 1 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/tests/framework/VersionReaderTest.cfc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/tests/bugs/149Test.cfc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | function AssertNotequalsFailureMessageShouldBeMeaningful() { 6 | try{ 7 | assertNotEquals(1,1); 8 | } 9 | catch(mxunit.exception.AssertionFailedError e){ 10 | debug(e); 11 | assert(find('These values should not be the same', e.message) , 'partial expected failure message not found' ); 12 | } 13 | 14 | } 15 | 16 | function AsserEqualsFailureMessageShouldBeMeaningful() { 17 | try{ 18 | assertEquals(1,2); 19 | } 20 | catch(mxunit.exception.AssertionFailedError e){ 21 | assert(find('These values should be the same', e.message) , 'partial expected failure message not found' ); 22 | } 23 | 24 | } 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/resources/jquery/spark.cfm: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 13 | 14 | 15 |
16 | Testing Header 17 |
18 | Loading.. 19 |
20 | Testing Footer 21 |
22 | 23 | 24 | -------------------------------------------------------------------------------- /wwwroot/controllers/security/index.cfm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | // Param the second-level event. 5 | param name="request.event[ 2 ]" type="string" default="login"; 6 | 7 | 8 | // Route the request based on the current event. 9 | switch (request.event[ 2 ]){ 10 | 11 | case "createAccount": 12 | include "createAccount.cfm"; 13 | break; 14 | 15 | case "forgotPassword": 16 | include "forgotPassword.cfm"; 17 | break; 18 | 19 | case "login": 20 | include "login.cfm"; 21 | break; 22 | 23 | case "logout": 24 | include "logout.cfm"; 25 | break; 26 | 27 | case "passwordResetSent": 28 | include "passwordResetSent.cfm"; 29 | break; 30 | 31 | case "resetPassword": 32 | include "resetPassword.cfm"; 33 | break; 34 | 35 | // The provided event could not be matched. 36 | default: 37 | throw( type="InvalidEvent" ); 38 | break; 39 | 40 | } 41 | 42 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/buildprops/scripts/http_doc_gen.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @author bill 3 | * 4 | * This Rhino/JS script invokes doc/build.cfm which generates static html api stuff. 5 | * The anonymous function below is not really necessary, but illustrates 6 | * how you can structure logic to support Ant tasks. It's also nice to develop OO 7 | * constructs, iterators, and exception handling. 8 | * 9 | */ 10 | importPackage(java.net,java.io); 11 | 12 | (function(){ 13 | var inputLine, url; 14 | 15 | print( 'Generating MXUnit API docs.' ); 16 | url = new URL('http://' + project.getProperty('server') + ':' + project.getProperty('port') + '/mxunit/doc/build.cfm'); 17 | input = new BufferedReader( new InputStreamReader(url.openStream()) ); 18 | 19 | while ((inputLine = input.readLine()) != null) 20 | print(inputLine); 21 | input.close(); 22 | 23 | })(); 24 | 25 | -------------------------------------------------------------------------------- /wwwroot/controllers/tasks/index.cfm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | /* 5 | // Check to see if the user is logged-in - only an authorized 6 | // user can access this controller. 7 | if (!session.user.isLoggedIn()){ 8 | 9 | // Stop processing this route. 10 | throw( type="Unauthorized" ); 11 | 12 | } 13 | */ 14 | 15 | 16 | // Param the second-level event. This will determine which action 17 | // is being performed in this controller. 18 | param name="request.event[ 2 ]" type="string" default="list"; 19 | 20 | 21 | // Route the request based on the current event. 22 | switch (request.event[ 2 ]){ 23 | 24 | case "delete": 25 | include "delete.cfm"; 26 | break; 27 | 28 | case "edit": 29 | include "edit.cfm"; 30 | break; 31 | 32 | case "list": 33 | include "list.cfm"; 34 | break; 35 | 36 | // The provided event could not be matched. 37 | default: 38 | throw( type="InvalidEvent" ); 39 | break; 40 | 41 | } 42 | 43 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/samples/tests/MyComponentTest.cfc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/samples/SimpleRunSkeleton.cfm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |

#dir#

5 | 6 | 7 | 8 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | #results.getResultsOutput(URL.output)# -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/doc/colddoc/strategy/api/resources/templates/allclasses-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | All Classes 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | All Classes 18 | 19 |
20 | 21 | 22 | 23 | 30 | 31 |
24 | 25 | #name# 26 |
27 |
28 |
29 |
32 | 33 | 34 | 35 |
-------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/tests/framework/fixture/fixturetests/SomeRandomTest.cfc: -------------------------------------------------------------------------------- 1 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | assertTrue(true); 15 | 16 | 17 | 18 | 19 | 20 | assertTrue(false,"Intentional failure"); 21 | 22 | 23 | 24 | 25 | 26 | assertTrue(true); 27 | 28 | 29 | 30 | 31 | 32 | assertTrue(true); 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/samples/mocking/TheCollaborator.cfc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | select * 15 | from qData 16 | where id = #arguments.id# 17 | 18 | 19 | 20 | 21 | 23 | 24 | data 25 | id,name,email 26 | 1|bill|bill@bill.com 27 | 2|marc|marc@marc.com 28 | 3|ted|ted@ted.com 29 | 4|joe|joe@joe.com 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/tests/framework/fixture/fixturetests/AnotherRandomTests.cfc: -------------------------------------------------------------------------------- 1 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | assertTrue(true); 15 | 16 | 17 | 18 | 19 | 20 | assertTrue(false,"Intentional failure"); 21 | 22 | 23 | 24 | 25 | 26 | assertTrue(true); 27 | 28 | 29 | 30 | 31 | 32 | assertTrue(true); 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/tests/framework/fixture/TestWithExpectedExceptionAttributes.cfc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/framework/mightymock/MockFactory.cfc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | return this; 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/mxunit-TestCase-Template.cfc: -------------------------------------------------------------------------------- 1 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/runner/runner.js: -------------------------------------------------------------------------------- 1 | ;(function($) { 2 | examples = { 3 | TestCase: { 4 | test: 'mxunit.tests.framework.AssertTest', 5 | componentPath: '' 6 | }, 7 | TestSuite: { 8 | test: 'mxunit.tests.framework.fixture.ATestSuite', 9 | componentPath: '' 10 | }, 11 | Directory: { 12 | test: '/mxunit/tests/samples', 13 | componentPath: 'mxunit.tests.samples' 14 | } 15 | }; 16 | 17 | $test = $('#test'); 18 | $componentPath = $('#componentPath'); 19 | 20 | $examples = $('

Examples: TestCase TestSuite Directory

'); 21 | 22 | $('a', $examples).click(function() { 23 | option = examples[$(this).html()]; 24 | 25 | $test.val(option.test); 26 | $componentPath.val(option.componentPath); 27 | 28 | return false; 29 | }); 30 | 31 | $('#btnRun').before( $examples ); 32 | 33 | $('#btnClear').click( function(){ 34 | $('.mxunitResults').html(''); 35 | } ); 36 | })(jQuery); 37 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/tests/bugs/fixture/test-with_hyphen.cfc: -------------------------------------------------------------------------------- 1 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/tests/bugs/run-me/test-with_hyphen.cfc: -------------------------------------------------------------------------------- 1 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/ant/stylesheets/antmanual.css: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | * 17 | */ 18 | body { 19 | background-image:url(/images/beta.png) 20 | } 21 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/tests/bugs/fixture/test_with_underscore.cfc: -------------------------------------------------------------------------------- 1 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/tests/bugs/run-me/test_with_underscore.cfc: -------------------------------------------------------------------------------- 1 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/tests/framework/fixture/mxunit-TestCase-Template.cfc: -------------------------------------------------------------------------------- 1 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/PluginDemoTests/run.cfm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | #results.getResultsOutput(url.output)# 28 | 29 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/eclipse/snippets/mxunit/testrunner/Directory Test Suite Skeleton.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Directory Test Suite Skeleton 4 | 5 | 6 | 7 | 8 |

#dir#

9 | 10 | 11 | 12 | 19 | 20 | 21 | #results.getResultsOutput(URL.output)# ]]>
22 | 23 |
-------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/resources/jquery/tablesorter/blue/style.css: -------------------------------------------------------------------------------- 1 | /* tables */ 2 | table.tablesorter { 3 | font-family:arial; 4 | margin:10px 0pt 15px; 5 | font-size: 8pt; 6 | width: 100%; 7 | text-align: left; 8 | } 9 | table.tablesorter thead tr th, table.tablesorter tfoot tr th { 10 | background-color: #e6EEEE; 11 | border: 1px solid #FFF; 12 | font-size: 8pt; 13 | padding: 4px; 14 | } 15 | table.tablesorter thead tr .header { 16 | background-image: url(bg.gif); 17 | background-repeat: no-repeat; 18 | background-position: center right; 19 | cursor: pointer; 20 | } 21 | table.tablesorter tbody td { 22 | color: #3D3D3D; 23 | padding: 4px; 24 | vertical-align: top; 25 | } 26 | table.tablesorter thead tr .headerSortUp { 27 | background-image: url(asc.gif); 28 | } 29 | table.tablesorter thead tr .headerSortDown { 30 | background-image: url(desc.gif); 31 | } 32 | table.tablesorter thead tr .headerSortDown, table.tablesorter thead tr .headerSortUp { 33 | background-color: #8dbdd8; 34 | } 35 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/resources/jquery/tablesorter/green/style.css: -------------------------------------------------------------------------------- 1 | table.tablesorter { 2 | font-size: 12px; 3 | background-color: #eaeaea; 4 | width: 1024px; 5 | border: 1px solid #000; 6 | } 7 | table.tablesorter th { 8 | text-align: left; 9 | padding: 5px; 10 | background-color: #545050; 11 | color:whitesmoke; 12 | } 13 | table.tablesorter td { 14 | padding: 5px; 15 | } 16 | table.tablesorter .even { 17 | background-color: #3D3D3D; 18 | } 19 | table.tablesorter .odd { 20 | background-color: #6E6E6E; 21 | } 22 | table.tablesorter .header { 23 | background-image: url(default.png); 24 | background-repeat:no-repeat; 25 | cursor: pointer; 26 | border: 1px inset silver; 27 | padding-left: 32px; 28 | padding-top: 8px; 29 | height: 32px; 30 | 31 | } 32 | table.tablesorter .headerSortDown { 33 | background-image: url(up.png); 34 | background-repeat:no-repeat; 35 | } 36 | 37 | table.tablesorter .headerSortUp { 38 | background-image: url(down.png); 39 | background-repeat:no-repeat; 40 | } -------------------------------------------------------------------------------- /wwwroot/css/layouts/master.css: -------------------------------------------------------------------------------- 1 | 2 | /* Base styles for this layout. */ 3 | 4 | body { 5 | background-color: #F0F0F0 ; 6 | margin: 0px 0px 100px 0px ; 7 | padding: 0px 0px 0px 0px ; 8 | } 9 | 10 | h1 { 11 | border-bottom: 1px solid #CCCCCC ; 12 | font-size: 22px ; 13 | font-weight: 400 ; 14 | line-height: 27px ; 15 | margin: 10px 0px 30px 0px ; 16 | } 17 | 18 | input { 19 | border: 1px solid #999999 ; 20 | } 21 | 22 | 23 | 24 | /* Layout definition. */ 25 | 26 | div.l-siteWrapper { 27 | margin: 0px auto 0px auto ; 28 | width: 500px ; 29 | } 30 | 31 | div.l-siteContainerTop { 32 | background-color: #333333 ; 33 | font-size: 1px ; 34 | height: 5px ; 35 | overflow: hidden ; 36 | } 37 | 38 | div.l-siteContainer { 39 | background-color: #FFFFFF ; 40 | border: 1px solid #CCCCCC ; 41 | border-top-width: 0px ; 42 | } 43 | 44 | div.l-siteHeader { 45 | padding: 20px 20px 20px 20px ; 46 | } 47 | 48 | div.l-siteBody { 49 | padding: 20px 20px 20px 20px ; 50 | } 51 | 52 | div.l-siteOutro { 53 | padding: 25px 21px 0px 21px ; 54 | } -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/tests/framework/fixture/MyCFCTest.cfc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/tests/mightymock/fixture/MySpyObject.cfc: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | function callMockThis(param1){ 26 | var val = mockThis(param2); 27 | return val; 28 | } 29 | 30 | function mockThis(param2){ 31 | return arguments.param2; 32 | } 33 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/tests/framework/fixture/NewCFComponent.cfc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/tests/framework/TestDecoratorTest.cfc: -------------------------------------------------------------------------------- 1 | 3 | 4 | 6 | 7 | assertTrue(StructKeyExists(request, "test"), "Why is there no 'test' in the request scope?"); 8 | 9 | assertEquals("testDecoratorWrappingTest", request.test.methodName); 10 | 11 | assertTrue(StructIsEmpty(request.test.args), "How does args have data in it?"); 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/tests/mightymock/StateTransitionTest.cfc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | function testStateTransition(){ 6 | 7 | mock._$setState('idle'); 8 | 9 | mock._$setState('registering'); 10 | assertEquals( 'idle' , mock._$getPreviousState() ); 11 | assertEquals( 'registering' , mock._$getState() ); 12 | 13 | mock._$setState('executing'); 14 | assertEquals( 'registering' , mock._$getPreviousState() ); 15 | assertEquals( 'executing' , mock._$getState() ); 16 | 17 | 18 | mock._$setState('verifying'); 19 | assertEquals( 'executing' , mock._$getPreviousState() ); 20 | assertEquals( 'verifying' , mock._$getState() ); 21 | 22 | mock._$setState('idle'); 23 | assertEquals( 'verifying' , mock._$getPreviousState() ); 24 | assertEquals( 'idle' , mock._$getState() ); 25 | 26 | mock._$setState('error'); 27 | assertEquals( 'idle' , mock._$getPreviousState() ); 28 | assertEquals( 'error' , mock._$getState() ); 29 | } 30 | 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/eclipse/snippets/mxunit/new MXUnit TestCase.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | new MXUnit TestCase 4 | 5 | 6 | 7 | 8 | 9 | ]]> 10 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 |
]]> 28 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/tests/framework/HamcrestMatcherTest.cfc: -------------------------------------------------------------------------------- 1 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/tests/mightymock/PatternInvocationTest.cfc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | function semanticPatternsNeedToCoexist() { 5 | mock.reset(); 6 | mock.foo(bar='foo').returns(true); 7 | mock.foo('foo').returns(true); 8 | assert( mock.foo('foo') ); 9 | assert( mock.foo(bar='foo') ); 10 | 11 | } 12 | 13 | function shouldBeAbleToVerifyBothePatternAndLiteral(){ 14 | mock.foo('{+}').returns(true); 15 | actual = mock.foo('asd'); 16 | debug( mock.debugMock() ); 17 | //To Do: Should be able to do this, to: 18 | // mock.verify().foo('asd'); 19 | } 20 | 21 | 22 | function peepPatternExec(){ 23 | mock.foo('{string}').returns(true); 24 | actual = mock.foo('asd'); 25 | mock.foo('asd'); 26 | debug( mock.debugMock() ); 27 | assert(actual); 28 | mock.verify(2).foo('{string}'); 29 | } 30 | 31 | 32 | 33 | 34 | 35 | function setUp(){ 36 | mock.reset(); 37 | } 38 | 39 | function tearDown(){ 40 | 41 | } 42 | 43 | 44 | 45 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/doc/api/mxunit/framework/ext/package-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | mxunit.framework.ext 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | mxunit.framework.ext 21 | 22 | 23 | 24 | 33 |
25 | Classes  26 | 27 | 28 |
29 | AssertionExtensionTemplate 30 | 31 | 32 |
34 | 35 | 36 | 37 | -------------------------------------------------------------------------------- /wwwroot/views/security/forgotPassword.cfm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 |

8 | Forgot Your Passowrd? 9 |

10 | 11 |

12 | Enter your email address below and we'll send you a reset-password confirmation. 13 |

14 | 15 |
16 | 17 | 18 | 19 | 20 |
21 | 22 |
23 | 24 | 27 | 28 | 29 | 30 |
31 | 32 |
33 | 34 |
35 | 36 | 39 | 40 |
41 | 42 |
43 | 44 |

45 | Oops, take me 46 | back to the login form. 47 |

48 | 49 | 50 |
51 |
-------------------------------------------------------------------------------- /wwwroot/layouts/security.cfm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/tests/mightymock/fixture/MyComponent.cfc: -------------------------------------------------------------------------------- 1 | 2 | 3 | aSimpleVar = 'simple var'; 4 | this.bar = 'bar'; 5 | collaborator = ''; 6 | 7 | helper = createObject('component','Helper'); 8 | 9 | 10 | function invokeHelper(){ 11 | return helper.helpMe(); 12 | } 13 | 14 | function getInjectedSpyVar(){ 15 | return MYSPYVAR; 16 | } 17 | 18 | function setCollaborator(col){ 19 | collaborator = col; 20 | } 21 | 22 | function dependOnSomething(message){ 23 | return collaborator.echo(foo()); 24 | } 25 | 26 | function dependOnSomethingWithInstanceData(){ 27 | return collaborator.getMyVar(); 28 | } 29 | 30 | function dependOnSomethingElse(message){ 31 | return collaborator.add(1,2); 32 | } 33 | 34 | 35 | function dependOnParams(a){ 36 | return collaborator.echo('asd'); 37 | } 38 | 39 | function getSomeStuff(){ 40 | return 'stuff'; 41 | } 42 | 43 | 44 | 45 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/framework/mightymock/MightyMockFactory.cfc: -------------------------------------------------------------------------------- 1 | 2 | 3 | mocks = []; 4 | 5 | 6 | function init(){ 7 | return this; 8 | } 9 | 10 | 11 | 12 | function create(){ 13 | //create basic mock with no name info 14 | if(arguments.size() eq 0 ) return createObject('component','MightyMock').init(); 15 | //create basic mock with a name for reference/debugging 16 | if(arguments.size() eq 1 ) return createObject('component','MightyMock').init(arguments[1]); 17 | //create type-safe mock. 18 | if(arguments.size() eq 2 ) return createObject('component','MightyMock').init(arguments[1],arguments[2]); 19 | //create a type-safe mock and a spy 20 | //if(arguments.size() eq 3 ) return createObject('component','MightyMock').init(arguments[1],arguments[2],arguments[3]); 21 | } 22 | 23 | function createSpy(name) { 24 | return createObject('component','MightyMock').createSpy(arguments.name); 25 | } 26 | 27 | function listMocks(){ 28 | return arrayToList(mocks); 29 | } 30 | 31 | 32 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/doc/api/mxunit/framework/adapters/cf9/package-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | mxunit.framework.adapters.cf9 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | mxunit.framework.adapters.cf9 21 | 22 | 23 | 24 | 33 |
25 | Classes  26 | 27 | 28 |
29 | PublicProxyMaker 30 | 31 | 32 |
34 | 35 | 36 | 37 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/doc/colddoc/strategy/api/resources/templates/package-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | #arguments.package# 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | #arguments.package# 21 | 22 | 23 | 24 | 33 |
25 | Classes  26 | 27 | 28 |
29 | #name# 30 |
31 | 32 |
34 | 35 | 36 | 37 |
-------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/samples/tests/TestCaseSkeletonTest.cfc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/ant/README.txt: -------------------------------------------------------------------------------- 1 | 01-25-08 Using Ant with MXUnit. 2 | 3 | Source is available here: http://mxunit.googlecode.com/svn/org.mxunit.ant.idea/ 4 | Get the updated ANT doc here: http://wiki.mxunit.org/display/default/Ant+Task+Doc 5 | 6 | Overview: 7 | Used best for running groups of tests, test suites, and directories of 8 | tests. Writes test results in XML, JUnitXML, or HTML to a specified 9 | location. This is particularly useful for generating JUnit style 10 | reports, using Ant's task. 11 | 12 | This handles BASIC as well as NTML authentication as well as SSL. 13 | 14 | This assumes a basic knowledge of Ant. 15 | 16 | Dependencies: This assumes you have Ant installed. If not, please 17 | download the latest version from http://ant.apache.org/. 18 | 19 | The stylesheets in this package are the same as those in JUnit. Just a 20 | few slight modifications/branding were made. 21 | 22 | Usage: See sample-build.xml for usage. 23 | 24 | Examples: 25 | 26 | 27 | Enjoy ... 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/resources/jquery/tipsy/stylesheets/tipsy.css: -------------------------------------------------------------------------------- 1 | .tipsy { padding: 5px; font-size: 10px; position: absolute; z-index: 100000; } 2 | .tipsy-inner { padding: 5px 8px 4px 8px; background-color: black; color: white; max-width: 200px; text-align: center; } 3 | .tipsy-inner { border-radius: 3px; -moz-border-radius:3px; -webkit-border-radius:3px; } 4 | .tipsy-arrow { position: absolute; background: url('../images/tipsy.gif') no-repeat top left; width: 9px; height: 5px; } 5 | .tipsy-n .tipsy-arrow { top: 0; left: 50%; margin-left: -4px; } 6 | .tipsy-nw .tipsy-arrow { top: 0; left: 10px; } 7 | .tipsy-ne .tipsy-arrow { top: 0; right: 10px; } 8 | .tipsy-s .tipsy-arrow { bottom: 0; left: 50%; margin-left: -4px; background-position: bottom left; } 9 | .tipsy-sw .tipsy-arrow { bottom: 0; left: 10px; background-position: bottom left; } 10 | .tipsy-se .tipsy-arrow { bottom: 0; right: 10px; background-position: bottom left; } 11 | .tipsy-e .tipsy-arrow { top: 50%; margin-top: -4px; right: 0; width: 5px; height: 9px; background-position: top right; } 12 | .tipsy-w .tipsy-arrow { top: 50%; margin-top: -4px; left: 0; width: 5px; height: 9px; } 13 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/MIT-License.txt: -------------------------------------------------------------------------------- 1 | The MIT License 2 | 3 | Copyright (c) 2010 MXUnit.org 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/tests/bugs/Bug115.cfc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | try{ 8 | assertEquals(1,2, "my message"); 9 | } 10 | catch(any e){ 11 | actual = e.getMessage(); 12 | } 13 | expected = "my message::[1] NOT EQUAL TO [2]"; 14 | debug(expected); 15 | debug(actual); 16 | assertEquals(expected, actual, "Failure message outputs should be the same"); 17 | 18 | 19 | 20 | 21 | 22 | 23 | pub = makePublic(this,"normalizeArguments"); 24 | args = structNew(); 25 | args.expected = 1; 26 | args.actual = 2; 27 | args.message ="my message"; 28 | newArgs = pub.normalizeArguments("equals",args); 29 | debug(newArgs); 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | -------------------------------------------------------------------------------- /wwwroot/layouts/standard.cfm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 |
    15 | 18 | 21 | 24 |
25 | 26 | 27 |
28 |
29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /wwwroot/views/account/edit.cfm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 |

8 | Your Profile 9 |

10 | 11 |
12 | 13 | 14 | 15 | 16 |
17 | 18 |
19 | 20 | 23 | 24 | 25 | 26 |
27 | 28 |
29 | 30 | 33 | 34 | 35 | 36 |
37 | 38 |
39 | 40 |
41 | 42 | 45 | 46 |
47 | 48 |
49 | 50 |

51 | Looking to change your password? 52 |

53 | 54 | 55 |
56 |
-------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/tests/framework/TestTest.cfc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/framework/decorators/OrderedTestDecorator.cfc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | var methods = getTarget().getRunnableMethods(); 6 | var i = 1; 7 | var order = 0; 8 | var tests = arrayNew(1); 9 | var test = ""; 10 | var BubbleSort = createObject("Component","mxunit.utils.BubbleSort"); 11 | var sortedTests = arrayNew(1); 12 | var returnArray = arrayNew(1); 13 | 14 | for(i = 1; i LTE arrayLen(methods); i = i + 1){ 15 | test = structNew(); 16 | test.order = getAnnotation(methods[i],"order"); 17 | test.name = methods[i]; 18 | 19 | arrayAppend(tests,test); 20 | } 21 | 22 | sortedTests = BubbleSort.sortArrayOfStructs(tests,"order",true); 23 | 24 | for(i = 1; i LTE arrayLen(sortedTests); i = i + 1){ 25 | arrayAppend(returnArray,sortedTests[i].name); 26 | } 27 | 28 | return returnArray; 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/tests/runner/HTMLRunnerTest.cfc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | runner.run(test="mxunit.tests.framework.AssertTest",output="html"); 8 | 9 | 10 | 11 | 12 | 13 | 14 | assertIsTypeOf(runner,"mxunit.runner.HtmlRunner"); 15 | 16 | 17 | 18 | 19 | 20 | 21 | //fail("not implemented"); 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | runner = createObject("component","mxunit.runner.HtmlRunner").HtmlRunner(); 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /wwwroot/views/account/changePassword.cfm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 |

8 | Change Your Password 9 |

10 | 11 |
12 | 13 | 14 | 15 | 16 |
17 | 18 |
19 | 20 | 23 | 24 | 25 | 26 |
27 | 28 |
29 | 30 | 33 | 34 | 35 | 36 |
37 | 38 |
39 | 40 |
41 | 42 | 45 | 46 |
47 | 48 |
49 | 50 |

51 | Oops, take me back to my profile. 52 |

53 | 54 | 55 |
56 |
-------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/framework/adapters/cf9/PublicProxyMaker.cfc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /wwwroot/index.cfm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | // Param the default, top-level route. This will determine the 6 | // controller that is invoked if no other event is defined. 7 | param name="request.event[ 1 ]" type="string" default="tasks"; 8 | 9 | 10 | // When processing the request, wrap the controller routing in a 11 | // Try/Catch since the internal controllers may raise exceptions 12 | // that require us to redirect the user. 13 | try { 14 | 15 | // Route the request based on the current event. 16 | switch (request.event[ 1 ]){ 17 | 18 | case "account": 19 | include "/controllers/account/index.cfm"; 20 | break; 21 | 22 | case "security": 23 | include "/controllers/security/index.cfm"; 24 | break; 25 | 26 | case "tasks": 27 | include "/controllers/tasks/index.cfm"; 28 | break; 29 | 30 | // The provided event could not be matched. 31 | default: 32 | throw( type="InvalidEvent" ); 33 | break; 34 | 35 | } 36 | 37 | // Catch any unauthorized exceptions. 38 | } catch( Unauthorized error ){ 39 | 40 | // If the user is not authorized to access the given module, 41 | // redirect them to the login. 42 | location( url="./index.cfm?event=security.login", addToken=false ); 43 | 44 | } 45 | 46 | 47 | 48 | 49 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/framework/VersionReader.cfc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /wwwroot/css/modules/taskList.css: -------------------------------------------------------------------------------- 1 | 2 | form.m-taskList { 3 | font-size: 16px ; 4 | margin-bottom: 30px ; 5 | } 6 | 7 | form.m-taskList ol.tasks { 8 | list-style-type: none ; 9 | margin: 0px 0px 0px 0px ; 10 | padding: 0px 0px 0px 0px ; 11 | } 12 | 13 | form.m-taskList li.task { 14 | background-color: #F0F0F0 ; 15 | border: 1px solid #CCCCCC ; 16 | margin: 0px 0px 10px 0px ; 17 | position: relative ; 18 | } 19 | 20 | form.m-taskList li.task input.isComplete { 21 | position: absolute ; 22 | left: 6px ; 23 | top: 13px ; 24 | } 25 | 26 | form.m-taskList li.task a.view { 27 | display: block ; 28 | height: 47px ; 29 | line-height: 47px ; 30 | margin-left: 35px ; 31 | overflow: hidden ; 32 | padding-right: 45px ; 33 | position: relative ; 34 | text-decoration: none ; 35 | } 36 | 37 | form.m-taskList li.task span.description { 38 | display: block ; 39 | overflow: hidden ; 40 | text-overflow: ellipsis ; 41 | white-space: nowrap ; 42 | } 43 | 44 | form.m-taskList li.task span.arrow { 45 | background-color: #FFFFFF ; 46 | border-radius: 12.5px 12.5px 12.5px 12.5px ; 47 | font-size: 18px ; 48 | font-weight: bold ; 49 | height: 25px ; 50 | line-height: 25px ; 51 | position: absolute ; 52 | right: 11px ; 53 | text-align: center ; 54 | text-indent: 3px ; 55 | top: 11px ; 56 | width: 25px ; 57 | } -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/tests/mightymock/FileDeleterTest.cfc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | function testSingleLiteralParameter(){ 6 | nuMock.sendNotifications('asd'); 7 | //debug( nuMock.debugMock() ); 8 | nuMock.verify().sendNotifications('asd'); 9 | } 10 | 11 | function testMultipleArguments(){ 12 | nuMock.sendNotifications("{string}","{string}","{string}","{string}").returns(); 13 | nuMock.sendNotifications('asd','lkj','xyz','foo'); 14 | nuMock.sendNotifications('fgh','ghj','ghjghjghj','ghjghjghjgh8jghjghj'); 15 | nuMock.sendNotifications('ruioty','fg','ghjghjghj','ghjghjghjghj7ghjghj'); 16 | nuMock.sendNotifications('dffgg','ghj','ghjghjghj','ghjghjgh6jghjghjghj'); 17 | nuMock.sendNotifications('uio','ghj','ghj4ghjghj','gh5jghjghjghjghlljghj'); 18 | //debug( nuMock.debugMock() ); 19 | nuMock.verifyTimes(5).sendNotifications("{string}","{string}","{string}","{string}"); 20 | } 21 | 22 | 23 | 24 | function setUp(){ 25 | nuMock = $('mxunit.tests.mightymock.fixture.FileDeleter',true); 26 | nuMock.sendNotifications('asd').returns(); 27 | } 28 | 29 | function tearDown(){ 30 | nuMock.reset(); 31 | } 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/runner/HtmlRunner.cfc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | var dirrunner = ""; 12 | var results = ""; 13 | 14 | if (refind("[\\/]+", arguments.test)) { 15 | if( arguments.componentPath is ""){ 16 | writeoutput("WARNING: Please supply componentPath when running a directory of tests"); 17 | return; 18 | } 19 | 20 | dirrunner = createObject("component","DirectoryTestSuite"); 21 | 22 | results = dirrunner.run(test,componentPath,false); 23 | 24 | writeoutput(results.getResultsOutput("rawhtml")); 25 | } else { 26 | localTest = createObject("component", arguments.test); 27 | 28 | localTest.runTestRemote(output="rawhtml"); 29 | } 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/tests/framework/QueryTestResultTest.cfc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | //debug(q.getQueryResults()); 7 | assertIsQuery(q.getQueryResults()); 8 | assertEquals(q.getQueryResults().recordcount,4,"Should return 21 rows - but should use something more static that AssertTest"); 9 | 10 | 11 | 12 | 13 | 14 | //debug(q); 15 | assertEquals(q.testRuns, 4,"Should return 4 rows"); 16 | assertEquals(q.successes, 3,"Should 3 successes"); 17 | assertEquals(q.failures, 1,"Should 1 failure"); 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | suite = createObject("component","mxunit.framework.TestSuite").TestSuite(); 26 | suite.addAll("mxunit.tests.framework.fixture.fixturetests.SomeRandomTest"); 27 | results = suite.run(); 28 | q = createObject("component","mxunit.framework.QueryTestResult").QueryTestResult(results); 29 | 30 | 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /wwwroot/tests/server/Application.cfc: -------------------------------------------------------------------------------- 1 | component 2 | output = "false" 3 | hint = "I provide a testing silo for sever-side tests." 4 | { 5 | 6 | 7 | // Define the application settings. 8 | this.name = hash( getCurrentTemplatePath() ); 9 | this.applicationTimeout = createTimeSpan( 0, 0, 5, 0 ); 10 | 11 | // Disable session management since our Model doesn't need to 12 | // know about our sessions - anything that is supposed to be 13 | // persisted accross requests, we can create for our tests. 14 | this.sessionManagement = false; 15 | 16 | // Get the root directory for this sub-app; this will be used to 17 | // calculate our mappings. 18 | this.rootDirectory = getDirectoryFromPath( getCurrentTemplatePath() ); 19 | 20 | 21 | // Set up our mappings for the models directory of our top-level 22 | // application since our specs (test specifications) need to 23 | // instantiate our models. 24 | this.mappings[ "/models" ] = (this.rootDirectory & "../../models/"); 25 | 26 | // Set up the MXUnit mapping since components within the MXUnit 27 | // framework need to self-reference. 28 | this.mappings[ "/mxunit" ] = (this.rootDirectory & "mxunit/"); 29 | 30 | // Set up the specs mapping so that the test specifications can be 31 | // referenced from within the MXUnit framework. 32 | this.mappings[ "/specs" ] = (this.rootDirectory & "specs/"); 33 | 34 | 35 | } -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/doc/api/mxunit/framework/javaloader/package-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | mxunit.framework.javaloader 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | mxunit.framework.javaloader 21 | 22 | 23 | 24 | 39 |
25 | Classes  26 | 27 | 28 |
29 | JavaCompiler 30 | 31 |
32 | JavaLoader 33 | 34 |
35 | JavaProxy 36 | 37 | 38 |
40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/samples/MyTestSuite.cfm: -------------------------------------------------------------------------------- 1 | 11 | 12 | 13 | 14 | testSuite = createObject("component","mxunit.framework.TestSuite").TestSuite(); 15 | testSuite.addAll("mxunit.samples.MyComponentTest"); 16 | testSuite.addAll("mxunit.samples.MyOtherComponentTest"); //Identical to above 17 | //add explicit test cased (don't start with 'test'). 18 | //Note you can add more than one at a time as a list 19 | testSuite.add("mxunit.samples.MyOtherComponentTest","aTestFunctionThatDoesNotBeginWithTest,anotherTestFunctionThatDoesNotBeginWithTest"); 20 | results = testSuite.run(); 21 | 22 | 23 | #results.getResultsOutput(URL.output)# 24 |


25 |

Using CFDUMP against mxunit.TestResult.getResults() method

26 | 27 | 28 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/doc/colddoc/strategy/api/resources/templates/overview-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Overview 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 24 | 25 |
23 | #arguments.projectTitle#
26 | 27 | 28 | 29 | 45 | 46 |
All Classes 30 |

31 | 32 | Packages 33 |
34 | 35 | 36 | 37 | #package# 38 |
39 |
40 | 41 | 42 |
43 | 44 |

47 | 48 |

49 |   50 | 51 | 52 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/doc/api/mxunit/runner/package-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | mxunit.runner 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | mxunit.runner 21 | 22 | 23 | 24 | 42 |
25 | Classes  26 | 27 | 28 |
29 | DirectoryTestSuite 30 | 31 |
32 | HtmlRunner 33 | 34 |
35 | HttpAntRunner 36 | 37 |
38 | RunnerUtils 39 | 40 | 41 |
43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /wwwroot/views/security/login.cfm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 |

8 | Please Sign In 9 |

10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 |
18 | 19 |
20 | 21 | 24 | 25 | 26 | 27 |
28 | 29 |
30 | 31 | 34 | 35 | 36 | 37 |
38 | Forgot password 39 |
40 | 41 |
42 | 43 |
44 | 45 |
46 | 47 | 50 | 51 |
52 | 53 | 54 |
55 | 56 |

57 | Don't have an account? 58 | Create one in 15 seconds. 59 |

60 | 61 | 62 |
63 | 64 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/tests/ant/svnUpdateTest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/PluginDemoTests/DoubleMethodTest.cfc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | #blah# 24 | 25 | doublemethodtest 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/tests/framework/fixture/fixturetests/AnotherRandomTest.cfc: -------------------------------------------------------------------------------- 1 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | assertTrue(true); 15 | 16 | 17 | 18 | 19 | 20 | assertTrue(false,"Intentional failure"); 21 | 22 | 23 | 24 | 25 | 26 | assertTrue(true); 27 | 28 | 29 | 30 | 31 | 32 | assertTrue(true); 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/generator/main.css: -------------------------------------------------------------------------------- 1 | body { 2 | font-family: Verdana, Arial, Helvetica, sans-serif; 3 | background-color: ##EDEDEB; 4 | margin:0px; 5 | border:0px; 6 | } 7 | 8 | input, select { 9 | background-color: #ffffff; 10 | } 11 | 12 | h1 { 13 | background-image: url("no-bugs.gif"); 14 | background-repeat: no-repeat; 15 | background-color: #eeeeee; 16 | color: ##002F2F; 17 | margin:0px; 18 | padding: 20px 5px 20px 80px; 19 | font-family: Georgia, "Times New Roman", Times, serif; 20 | } 21 | 22 | h2 { 23 | background-color: #046380; 24 | color: #ffffff; 25 | border:0px; 26 | margin:0px; 27 | padding:5px 5px 5px 15px; 28 | } 29 | 30 | h3 { 31 | padding: 5px 5px 5px 15px; 32 | } 33 | 34 | th { 35 | padding: 5px; 36 | text-align: left; 37 | background-color: #EFECCA; 38 | } 39 | 40 | td { 41 | text-align: left; 42 | background-color: #eee; 43 | padding: 3px; 44 | } 45 | 46 | p, table { 47 | padding: 15px; 48 | font-size: 9pt; 49 | } 50 | 51 | 52 | .button { 53 | background-color: #cc0000; 54 | color: #ffffff; 55 | font-weight: bold; 56 | padding: 5px; 57 | margin: 2px; 58 | } 59 | 60 | li { 61 | color: #000000; 62 | font-family: Verdana, Arial, Helvetica, sans-serif; 63 | font-size: 10pt; 64 | } 65 | 66 | a { 67 | color:#046380; 68 | text-decoration: none; 69 | } 70 | a:hover { 71 | text-decoration: underline; 72 | } -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/framework/mightymock/todo: -------------------------------------------------------------------------------- 1 | Valid To Dos as of December 5, 2009 2 | 3 | - Debug output should be more descriptive and readable, Raw debug data available 4 | via verbose flag. 5 | 6 | - Normalize arguments. Should be able to reasonably define a method with or 7 | without named arguments, and invoke it as named or positional. See 8 | how the engines do it. 9 | 10 | - add invocation record for both pattern and literal that were executed. This 11 | should allow verification of either. 12 | 13 | - mock should record all invocations and store literal parameters 14 | - verifying by pattern should also be possible 15 | e.g., 16 | register: 17 | mock.foo(1,2).returns(); 18 | mock.foo(4,5).return(); 19 | actual exec: 20 | mock.foo(1,2); 21 | mock.foo(1,2); 22 | mock.foo(4,5); 23 | 24 | verify: 25 | mock.verifyTimes(3).foo('{numeric}','{numeric}'); 26 | 27 | And vice versa: 28 | mock..foo('{numeric}','{numeric}').returns(); 29 | 30 | actual exec: 31 | mock.foo(1,2); 32 | mock.foo(1,2); 33 | mock.foo(4,5); 34 | 35 | verify: 36 | mock.verifyTimes(2).foo(1,2); 37 | mock.verifyTimes(1).foo(4,5); 38 | 39 | - DONE -verbose . maybe should persist actual literal arguments in addition to hash 40 | - 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/samples/DirectoryTestSuiteSample.cfm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 |

#dir#

7 | 8 | 9 | 10 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | #results.getResultsOutput(URL.output)# 25 | 26 | 27 | 28 | 29 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/PluginDemoTests/PrivateMethodTest.cfc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/tests/mightymock/MockifyTest.cfc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | function testMockify() { 6 | mockifyThis = createObject('component','mxunit.tests.mightymock.fixture.Mockify'); 7 | 8 | mocker = $(); 9 | 10 | cfc= mocker.mockify(mockifyThis.foo, 'bar' );//.returns('bar'); 11 | //debug(cfc); 12 | //debug( cfc.getClass().getName()); 13 | udf = createObject('java','coldfusion.runtime.UDFMethod'); 14 | 15 | filter = createObject('java','coldfusion.filter.FusionFilter'); 16 | ctx = createObject('java','coldfusion.filter.FusionContext'); 17 | //debug(udf); 18 | //debug(mockifyThis.foo.getMethodAttributes()); 19 | //debug(filter); 20 | //debug(ctx); 21 | 22 | //debug(mockifyThis.foo.getClass().getSuperclass().getName()); 23 | //debug(mockifyThis.foo.getClass().getSimpleName()); 24 | //debug(mockifyThis.foo.getSuperScope()); 25 | //debug(mockifyThis.foo.getPagePath()); 26 | 27 | 28 | 29 | //debug( getMetaData(mockifyThis.foo) ); 30 | 31 | // debug( getPageContext().getServletConfig().getServletContext() ); 32 | 33 | //result = mockifyThis.foo(); 34 | // assertEquals( 'bar', result ); 35 | 36 | } 37 | 38 | 39 | 40 | function setUp(){ 41 | 42 | } 43 | 44 | function tearDown(){ 45 | 46 | } 47 | 48 | 49 | 50 | 51 | 52 | 53 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/tests/mightymock/BasicMXUnitIntegrationTest.cfc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | function setUp(){ 7 | myMock = mock("s.s.s"); 8 | myMock.one().returns(); 9 | myMock.two().returns(); 10 | myMock.three().returns(); 11 | myMock.four().returns(); 12 | myMock.one(); 13 | myMock.two(); 14 | myMock.three(); 15 | myMock.four(); 16 | 17 | } 18 | 19 | function tearDown(){ 20 | myMock.reset(); 21 | } 22 | 23 | function smoke(){ 24 | myMock.verify().two(); 25 | 26 | } 27 | 28 | 29 | function testOrderedExpectationRange(){ 30 | order = ''; 31 | order = orderedExpectation(myMock); 32 | order.one().four().verify(); 33 | //debug( myMock.debugMock() ); 34 | } 35 | 36 | 37 | function testOrderedExpectationWorks(){ 38 | order = orderedExpectation(myMock); 39 | order.one().two().three().verify(); 40 | } 41 | 42 | 43 | function testOrderedExpectationIsAlive(){ 44 | order = orderedExpectation(myMock); 45 | } 46 | 47 | 48 | 49 | 50 | order = ''; 51 | order = orderedExpectation(myMock); 52 | try{ 53 | order.four().one().verify(); 54 | } 55 | catch(mxunit.exception.AssertionFailedError e){} 56 | 57 | 58 | 59 | -------------------------------------------------------------------------------- /wwwroot/views/security/createAccount.cfm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 |

8 | Create An Account 9 |

10 | 11 |
12 | 13 | 14 | 15 | 16 |
17 | 18 |
19 | 20 | 23 | 24 | 25 | 26 |
27 | 28 |
29 | 30 | 33 | 34 | 35 | 36 |
37 | 38 |
39 | 40 | 43 | 44 | 45 | 46 |
47 | 48 |
49 | 50 |
51 | 52 | 55 | 56 |
57 | 58 |
59 | 60 |

61 | Already have an account? 62 | Back to login. 63 |

64 | 65 | 66 |
67 |
-------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/tests/run.cfm: -------------------------------------------------------------------------------- 1 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | #results.getResultsOutput(url.output)# 34 | 35 | 36 |
37 | 38 |
39 |
40 | 41 |
42 | 43 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/tests/framework/HtmlTestResultTest.cfc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | htmlTestResult = createobject("component",'mxunit.framework.HtmlTestResult'); 5 | 6 | 7 | 8 | 9 | #htmlTestResult.printResources("/mxunit", expectedTitle)# 10 | #expectedTitle#", headers), "The HTML title tag is missing or incorrect.") /> 11 | 12 | 13 | 14 | 15 | #htmlTestResult.printResources(expectedRootPath)# 16 | 17 | 18 | 19 | 20 | 21 | #htmlTestResult.printResources(expectedRootPath)# 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/generator/templates/FailNewTagStyle.xslt: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | <cfcomponent name="Test" extends="mxunit.framework.TestCase"> 8 | <!--- Begin specific tests ---> 9 | 10 | 11 | <cffunction name="test" access="public" returnType="void"> 12 | 13 | <cfset fail("Test test not implemented")> 14 | 15 | </cffunction> 16 | 17 | 18 | <!--- setup and teardown ---> 19 | 20 | 21 | </cfcomponent> 22 | 23 | 24 | 25 | 26 | 27 | <cffunction name="setUp" returntype="void" access="public"> 28 | 29 | <cfset this.myComp = createObject("component","")> 30 | 31 | </cffunction> 32 | 33 | 34 | 35 | <cffunction name="tearDown" returntype="void" access="public"> 36 | <!--- Any code needed to return your environment to normal goes here ---> 37 | </cffunction> 38 | 39 | 40 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/generator/templates/FailNew.xslt: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | <cfcomponent name="Test" extends="mxunit.framework.TestCase"> 8 | <!--- Begin specific tests ---> 9 | 10 | 11 | <cffunction name="test" access="public" returnType="void"> 12 | <cfscript> 13 | assertFalse(true,"Test not implemented"); 14 | </cfscript> 15 | </cffunction> 16 | 17 | 18 | <!--- setup and teardown ---> 19 | 20 | 21 | </cfcomponent> 22 | 23 | 24 | 25 | 26 | 27 | <cffunction name="setUp" returntype="void" access="public"> 28 | <cfscript> 29 | this.myComp = createObject("component",""); 30 | </cfscript> 31 | </cffunction> 32 | 33 | 34 | 35 | <cffunction name="tearDown" returntype="void" access="public"> 36 | <!--- Any code needed to return your environment to normal goes here ---> 37 | </cffunction> 38 | 39 | 40 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/generator/templates/SucceedNew.xslt: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | <cfcomponent name="Test" extends="mxunit.framework.TestCase"> 8 | <!--- Begin specific tests ---> 9 | 10 | 11 | <cffunction name="test" access="public" returnType="void"> 12 | <cfscript> 13 | assertFalse(false,"Test not implemented"); 14 | </cfscript> 15 | </cffunction> 16 | 17 | 18 | <!--- setup and teardown ---> 19 | 20 | 21 | </cfcomponent> 22 | 23 | 24 | 25 | 26 | 27 | <cffunction name="setUp" returntype="void" access="public"> 28 | <cfscript> 29 | this.myComp = createObject("component",""); 30 | </cfscript> 31 | </cffunction> 32 | 33 | 34 | 35 | <cffunction name="tearDown" returntype="void" access="public"> 36 | <!--- Any code needed to return your environment to normal goes here ---> 37 | </cffunction> 38 | 39 | 40 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/framework/QueryTestResult.cfc: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | var i = 1; 24 | var q = queryNew( StructKeyList(this.testResults[i]) ); 25 | for (i = 1; i lte arraylen(this.testResults); i = i + 1){ 26 | queryAddRow(q); 27 | for(test in this.testResults[i]){ 28 | querySetCell(q, test, this.testResults[i][test]); 29 | } 30 | } 31 | return q; 32 | 33 | 34 | 35 | 36 | 37 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/tests/mightymock/TypeParserTest.cfc: -------------------------------------------------------------------------------- 1 | 2 | 3 | matcher = createObject('component','mxunit.framework.mightymock.ArgumentMatcher'); 4 | 5 | 6 | function testType(){ 7 | type = matcher.getArgumentType( 123 ); 8 | assertEquals('{numeric}', type , 'numeric failue'); 9 | 10 | type = matcher.getArgumentType( now() ); 11 | assertEquals('{date}', type , 'date failue'); 12 | 13 | type = matcher.getArgumentType(testType); 14 | assertEquals('{udf}', type, 'udf failue'); 15 | 16 | type = matcher.getArgumentType( args ); 17 | assertEquals('{struct}', type, 'struct failue'); 18 | 19 | type = matcher.getArgumentType( a ); 20 | assertEquals('{array}', type, 'array failue'); 21 | 22 | type = matcher.getArgumentType( q ); 23 | assertEquals('{query}', type, 'query failue'); 24 | 25 | type = matcher.getArgumentType( x ); 26 | assertEquals('{xml}', type, 'xml failue'); 27 | 28 | type = matcher.getArgumentType(true); 29 | assertEquals('{boolean}', type, 'bool failue'); 30 | 31 | type = matcher.getArgumentType(this); 32 | assertEquals('{object}', type, 'cfc object failue'); 33 | 34 | type = matcher.getArgumentType(sys); 35 | assertEquals('{object}', type, 'java object failue'); 36 | 37 | 38 | assert (isBinary(toBinary(toBase64(mname))) , 'should be true'); 39 | /* 40 | type = matcher.getArgumentType( toBinary( toBase64(mname)) ); 41 | assertEquals('{binary}', type, 'binary failue'); 42 | */ 43 | } 44 | 45 | 46 | 47 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/tests/mightymock/BaseTest.cfc: -------------------------------------------------------------------------------- 1 | 2 | 3 | sys = createObject('java','java.lang.System'); 4 | mName = 'foo'; 5 | args = {a=[1,2,3],s='some value'}; 6 | id = '$' & sys.identityHashCode(mName) & '_' & sys.identityHashCode(args); 7 | a = [1,2,3,4]; 8 | q = queryNew('asd'); 9 | x = xmlnew(); 10 | x.xmlRoot = XmlElemNew(x,"MyRoot"); 11 | dummy = 'mxunit.tests.mightymock.fixture.Dummy'; 12 | mockery = 'mxunit.tests.mightymock.fixture.Mockery'; 13 | mock = createObject('component','mxunit.framework.mightymock.MightyMock').init(); 14 | s = {a=123,b='asd'}; 15 | 16 | mockFactory = createObject('component','mxunit.framework.mightymock.MightyMockFactory').init(); 17 | $ = mockFactory.create; //jQuery-like alias for multi-mock creation 18 | $$ = mockFactory.createSpy; //jQuery-like alias for multi-mock creation 19 | 20 | 21 | 22 | 23 | 24 | 25 | user 26 | id,f_name,l_name,group 27 | 1|pocito|mock|33 28 | 2|mighty|mock|33 29 | 3|mitee|mock|33 30 | 31 | 32 | 33 | user 34 | id,f_name,l_name,group 35 | 1|bobo|the assclown|22 36 | 2|mighty|mouse|22 37 | 3|pocito|mas|22 38 | 4|kwai chang|caine|22 39 | 40 | 41 | 42 | 43 | 44 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/samples/ScheduledRun.cfm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |

#dir#

9 | 10 | 11 | 12 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | #results.getResultsOutput(URL.output)# 30 | 31 | 32 | 33 | 34 | #recenthtml# 35 | 36 | 37 | 38 | 39 | 40 | #recenthtml# 41 | 42 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/samples/mocking/TheStubTest.cfc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | /* 5 | Demonstrates how to use MightyMock to stub out data provided by a 6 | collaborator. 7 | 8 | */ 9 | function stubUserTest(){ 10 | //The component under test needs data provided by the collaborator 11 | var comp = createObject('component','TheComponent'); 12 | 13 | //1. Create the mock 14 | var mock_collaborator = mock('mightymock.examples.TheCollaborator'); 15 | //2. Define behavior 16 | mock_collaborator.getUser(1).returns(stubData()); 17 | 18 | //3. Inject mock into component under test 19 | comp.setCollaborator(mock_collaborator); 20 | 21 | //4. Exercise the component under test 22 | actual = comp.getUserAsStruct(1); 23 | 24 | //Do some tests to verify our component under test does what it should 25 | assertEquals(1,actual.id); 26 | assertEquals('mocked_bill',actual.name); 27 | assertEquals('mocked_bill@bill.com', actual.email); 28 | 29 | } 30 | 31 | 32 | 33 | 34 | 35 | 40 | 41 | 42 | data 43 | id,name,email 44 | 1|mocked_bill|mocked_bill@bill.com 45 | 2|mocked_bill2|mocked_bill2@bill.com 46 | 47 | 48 | 49 | 50 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/PluginDemoTests/build.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 18 | 19 | 20 | 21 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/framework/mightymock/MockDebug.cfc: -------------------------------------------------------------------------------- 1 | 2 | 40 | 41 | 42 | 43 | function debug(mock,verbose){ 44 | var mockBug = {}; 45 | var registry = mock._$getRegistry(); 46 | structInsert(mockBug," MockName", mock.getMocked().name ); 47 | structInsert(mockBug, 'Mocked Methods', registry.getRegistry()); 48 | structInsert(mockBug, 'Invocation Records', registry.invocationRecord); 49 | structInsert(mockBug, 'Returns and Throws Data' , registry.registryDataMap); 50 | structInsert(mockBug, 'Method Arguments' , registry.argMap); 51 | return mockBug; 52 | } 53 | 54 | function printRegistryDebug(reg) { 55 | 56 | } 57 | 58 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/tests/samples/MyComponentTest.cfc: -------------------------------------------------------------------------------- 1 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | num = this.mycomp.add(1,1); 14 | addTrace("num == " & num ); 15 | assertEquals(num,2); 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | num = this.mycomp.add(1,1); 24 | addTrace("num == " & num ); 25 | assertEquals(num,3); 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | this.mycomp = createObject("component" ,"mxunit.samples.MyComponent"); 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/doc/api/mxunit/framework/decorators/package-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | mxunit.framework.decorators 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | mxunit.framework.decorators 21 | 22 | 23 | 24 | 42 |
25 | Classes  26 | 27 | 28 |
29 | AlphabeticallyOrderedTestsDecorator 30 | 31 |
32 | DataProviderDecorator 33 | 34 |
35 | OrderedTestDecorator 36 | 37 |
38 | TransactionRollbackDecorator 39 | 40 | 41 |
43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/framework/HamcrestAssert.cfc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/ant/stylesheets/style.css: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | * 17 | */ 18 | h2 { 19 | font-size: 200%; 20 | background-color: ffffff; 21 | } 22 | 23 | h3 { 24 | font-size: 130%; 25 | color: #ffffff; 26 | background-color: #525D76; 27 | } 28 | 29 | h4 { 30 | color: #ffffff; 31 | background-color: #828DA6; 32 | } 33 | 34 | td { 35 | background-color: eeeeee; 36 | color: 000000; 37 | } 38 | 39 | /* first row */ 40 | table tr:first-child td { 41 | background-color: cccccc; 42 | color: 000000; 43 | } 44 | 45 | /* or th as first row */ 46 | table th { 47 | background-color: cccccc; 48 | color: 000000; 49 | } 50 | 51 | pre { 52 | background-color: efefef; 53 | } 54 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/tests/bugs/bug126.cfc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | //itself 6 | assertIsTypeOf(this,"mxunit.tests.bugs.bug126"); 7 | //immediate parent 8 | assertIsTypeOf(this,"mxunit.framework.TestCase"); 9 | // grandparent 10 | assertIsTypeOf(this,"mxunit.framework.Assert"); 11 | //last of the mohicans 12 | assertIsTypeOf(this,"any"); 13 | 14 | 15 | 16 | 17 | 18 | //itself 19 | assertIsTypeOf(c,"mxunit.tests.bugs.fixture.93sample"); 20 | assertIsTypeOf(c,"any"); 21 | try{ 22 | assertIsTypeOf(c,"mxunit.framework.TestCase"); 23 | } catch(mxunit.exception.AssertionFailedError e){} 24 | 25 | 26 | 27 | 28 | 29 | assertIsTypeOf(webinf,"any"); 30 | try{ 31 | assertIsTypeOf(webinf,"mxunit.bogus.cfc.package.I'm not here"); 32 | } catch(mxunit.exception.AssertionFailedError e){ 33 | 34 | } 35 | 36 | 37 | 38 | 39 | 40 | 41 | c = createObject("component","mxunit.tests.bugs.fixture.93sample"); 42 | webinf = createObject("component","any");; 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/doc/api/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Generated Documentation (MXUnit 2.1.1) 8 | 9 | 20 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | <H2> 31 | Frame Alert</H2> 32 | 33 | <P> 34 | This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client. 35 | <BR> 36 | Link to<A HREF="overview-summary.html">Non-frame version.</A> 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/samples/MyComponentTest.cfc: -------------------------------------------------------------------------------- 1 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | var num = this.mycomp.add(1,1); 14 | addTrace("num == " & num ); 15 | assertEquals(num,2); 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | var num = this.mycomp.add(1,1); 24 | addTrace("num == " & num ); 25 | assertEquals(num,3,"Intentionally failing so you can see what a failure looks like."); 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | this.mycomp = createObject("component" ,"MyComponent"); 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/utils/BubbleSort.cfc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | var temp = ""; 8 | var sorted = true; 9 | var i = 1; 10 | var x = 1; 11 | var len = arrayLen(theArray); 12 | var value1 = ""; 13 | var value2 = ""; 14 | 15 | for(i = 1; i lte len; i = i + 1){ 16 | 17 | sorted = true; 18 | 19 | for(x = 1; x lte len - 1; x = x + 1){ 20 | 21 | if(isNumber){ 22 | if(isNumeric(theArray[x + 1][theKey])){ 23 | value1 = lsParseNumber(theArray[x + 1][theKey]); 24 | } 25 | else{ 26 | value1 = 9999; 27 | } 28 | 29 | if(isNumeric(theArray[x][theKey])){ 30 | value2 = lsParseNumber(theArray[x][theKey]); 31 | } 32 | else{ 33 | value2 = 9999; 34 | } 35 | } 36 | else{ 37 | value1 = theArray[x + 1][theKey]; 38 | value2 - theArray[x][theKey]; 39 | } 40 | 41 | if(value1 lt value2){ 42 | 43 | temp = theArray[x]; 44 | theArray[x] = theArray[x + 1]; 45 | theArray[x + 1] = temp; 46 | 47 | sorted = false; 48 | } 49 | } 50 | 51 | if(sorted){ 52 | break; 53 | } 54 | } 55 | 56 | return theArray; 57 | 58 | 59 | -------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/eclipse/snippets/mxunit/testrunner/Simple Scheduled Test Run Template.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Simple Scheduled Test Run Template 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 |

#dir#

13 | 14 | 15 | 16 | 23 | 24 | 25 | 26 | 27 | 28 | #results.getResultsOutput(URL.output)# 29 | 30 | 31 | 32 | 33 | #recenthtml# 34 | 35 | 36 | 37 | 38 | 39 | #recenthtml# 40 | 41 | ]]>
42 | 43 |
-------------------------------------------------------------------------------- /wwwroot/tests/server/mxunit/runner/index.cfm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 |
20 |
21 | 25 |
26 |
27 | 28 |
29 |
30 | 34 |
35 |
36 | 37 |
38 | 39 | 40 |
41 | 42 |
43 |
44 |
45 | 46 | 47 | 48 | 49 | 50 | 51 | --------------------------------------------------------------------------------