Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
2-Stratego 2-Stratego
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3
    • Issues 3
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • CSSE376 Team 2-Stratego
  • 2-Stratego2-Stratego
  • Issues
  • #7

Closed
Open
Created Mar 23, 2016 by Alexander James Granowski@granowajOwner

BoardTest doesn't clean up after itself

The BoardTest class creates a TextFile.txt whenever the tests are run. Having a JUnit test interact with the filesystem is not something that should happen.

I propose that these test use an OutputStream rather than a filename, like in this example:

final ByteArrayOutputStream out = new ByteArrayOutputStream();
final PrintStream printStream = new PrintStream(out);
stack.readInput(printStream, in);
assertEquals("253", out.toString());
Assignee
Assign to
Milestone 2
Milestone
Milestone 2 (Past due)
Assign milestone
Time tracking