Skip to content

Redefine responsibilities of WorkspaceServiceTest #177

Closed
@zacanbrcom

Description

@zacanbrcom

Description

As a SE, I would like to adjust the unit test of the WorkspaceServiceTest to reflect the updated responsibility it have within the server.
The effort will be focus to remove unit test and activities that deals with the file-system that are now managed by the FileSystemService.
Using Mockito provide a mock version of WorkspaceService for testing purpose and address the related code smells defined below:

The following classes may be affected:

  • WorkspaceServiceTest
  • MockWorkspaceService
  • CobolWorkspaceServiceImpl

Subtasks status:

  • Address code smells and get rid of CobolWorkspaceService
  • Use Mockito to get rid of the Mock classes used during the test (as MockWorkspaceService)

Acceptance Criteria

  • Code coverage is not affected and still met the quality gate
  • no unit test are failing and the result are meaningful
  • no more code smell are showed for the classes defined above

Definition of Done

  • The story is implemented according to the description.
  • Unit testing done (Preferably by TDD approach, coverage should be at least 70%).
  • Code review done by at least one other team member.
  • Manual testing is done.
  • Documentation is added and reviewed (if needed).
  • The pull request is approved.
  • The story is merged into the development branch.
  • Tests are performed on the development branch.

Technical details

This is the place for any implementation-related notes

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions