{"id":25575493,"url":"https://github.com/bigdullrock/fitnesse-spring","last_synced_at":"2026-05-08T17:36:08.923Z","repository":{"id":57717831,"uuid":"97526767","full_name":"bigdullrock/fitnesse-spring","owner":"bigdullrock","description":"Inject Spring classes into Fitnesse Fixtures.","archived":false,"fork":false,"pushed_at":"2018-11-15T14:59:52.000Z","size":534,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-02T16:39:58.499Z","etag":null,"topics":["fitnesse","spring","spring-boot"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bigdullrock.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-07-17T22:10:46.000Z","updated_at":"2021-03-23T19:13:13.000Z","dependencies_parsed_at":"2022-08-24T08:50:50.755Z","dependency_job_id":null,"html_url":"https://github.com/bigdullrock/fitnesse-spring","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bigdullrock/fitnesse-spring","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bigdullrock%2Ffitnesse-spring","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bigdullrock%2Ffitnesse-spring/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bigdullrock%2Ffitnesse-spring/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bigdullrock%2Ffitnesse-spring/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bigdullrock","download_url":"https://codeload.github.com/bigdullrock/fitnesse-spring/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bigdullrock%2Ffitnesse-spring/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32790642,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T08:22:46.396Z","status":"ssl_error","status_checked_at":"2026-05-08T08:22:45.650Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["fitnesse","spring","spring-boot"],"created_at":"2025-02-21T02:24:06.748Z","updated_at":"2026-05-08T17:36:08.916Z","avatar_url":"https://github.com/bigdullrock.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Spring injection within the Fitnesse framework.\n\n\n## Features\nCreate an applicationContext in a Suite.Setup page in Fitnesse. Once the initial applicationContext\nhas been created, it can be used to inject beans into Fitnesse fixtures.\n\n## Setup\n```gradle\ndependencies {\n    compile('com.bigdullrock:fitnesse-spring:1.0.0')\n}\n```\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003ecom.bigdullrock\u003c/groupId\u003e\n    \u003cartifactId\u003efitnesse-spring\u003c/artifactId\u003e\n    \u003cversion\u003e1.0.0\u003c/version\u003e\n    \u003cscope\u003etest\u003c/scope\u003e\n\u003c/dependency\u003e\n```\n\n## Usage\n* Add `SymbolTypes` to the plugin.properties file\n\n```text\nSymbolTypes = com.bigdullrock.fitnesse.symbolsInheritClasspathSymbolType\n```\n\n* Add the classpath to your Suite:\n\n```text\n!define TEST_SYSTEM {slim}\n!*\u003e Class path for these examples\n!inheritClasspath\n*!\n```\n\n* If running tests via Maven and using the `fitnesse-maven-classpath` plugin, use this `SymbolTypes`\n\n```text\nSymbolTypes = fitnesse.wikitext.widgets.MavenClasspathSymbolType\n```\n* And this classpath:\n\n```text\n!define TEST_SYSTEM {slim}\n!*\u003e Class path for these examples\n!pomFile /pom.xml@compile,test\n*!\n```\n\n* Now we need to import the SpringContextFactory and tell it where to scan for classes.\nAdd the following import and script either to a SuiteSetup page or to the test page directly:\n\n```text\n!*\u003e Suite Set Up For Scanning Base Packages\n\n!|import                        |\n|com.bigdullrock.fitnesse.spring|\n\n!|script                            |spring context factory      |test|\n|create spring context base packages|com.bigdullrock.fitnesse.sut     |\n*!\n```\n\n* OR\n\n```text\n!*\u003e Suite Set Up For Annotated Classes\n\n!|import                        |\n|com.bigdullrock.fitnesse.spring|\n\n!|script                                |spring context factory                       |test|\n|create spring context annotated classes|com.bigdullrock.fitnesse.sut.SystemUnderTestConfig|\n*!\n```\n\n* OR\n\n```text\n!*\u003e Suite Set Up For XML Files\n\n!|import                        |\n|com.bigdullrock.fitnesse.spring|\n\n!|script                                 |spring context factory     |test|\n|create spring context resource locations|classpath:applicationContext.xml|\n*!\n```\n\n* OR\n\n```text\n!*\u003e Suite Set Up For Spring Boot Application class\n\n!|import                        |\n|com.bigdullrock.fitnesse.spring|\n\n!|script              |spring boot context factory                       |test|\n|create spring context|com.bigdullrock.fitnesse.sut.SystemUnderTestApplication|\n*!\n```\n\n* Now add `@Autowired` annotations to fields and a constructor that wires the object.\n\n```java\nimport static com.bigdullrock.fitnesse.spring.SpringContextFactory.currentSpringContext;\n// or use the following import for Spring Boot applications\n// import static com.bigdullrock.fitnesse.spring.SpringBootContextFactory.currentSpringContext;\n\nimport org.springframework.beans.factory.annotation.Autowired;\n\npublic class ThingFixture {\n\n  @Autowired\n  private ThingDao ThingDao;\n\n  private long thingId;\n\n  public ThingFixture() {\n    currentSpringContext().autowire(this);\n  }\n\n  public Thing getThingByThingId() {\n    return thingDao.getThingByThingId(thingId);\n  }\n\n  public void setThingId(long thingId) {\n    this.thingId = thingId;\n  }\n}\n```\n\n## Special Thanks\nI copied a lot of this code from [Arnout Engelen](https://github.com/raboof/fitnesse-meetup-slimtables).\nIt looks like he made a code repository for a presentation he gave. I wanted to make that code into\na library and package it up for distribution.\n\n\n## License\nApache 2.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbigdullrock%2Ffitnesse-spring","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbigdullrock%2Ffitnesse-spring","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbigdullrock%2Ffitnesse-spring/lists"}