kode-konveyor / taskmarket Goto Github PK
View Code? Open in Web Editor NEWCurrent milestone: User management
License: Other
Current milestone: User management
License: Other
Behaviour: RegistrationController/store username
Annotations for the test cases:
@TestedBehaviour("store username")
@TestedService("RegistrationController")
The production code is at com.kodekonveyor.market.register.RegistrationController.java
The testcase base should be at com.kodekonveyor.market.register.RegistrationControllerTestBase.java
The testcase should probably be at com.kodekonveyor.market.register.RegistrationControllerStoreUsernameTest.java
store the authenticated username from the request
See
https://www.baeldung.com/get-user-in-spring-security
The service:
DTOs and Entities:
If you have questions, see the FAQ, or ask on the development slack channel or ask your mentor.
Behaviour: RegisterInterestController/storage
Annotations for the test cases:
@TestedBehaviour("storage")
@TestedService("RegisterInterestController")
The production code is at com.kodekonveyor.market.lead.RegisterInterestController.java
The testcase base should be at com.kodekonveyor.market.lead.RegisterInterestControllerTestBase.java
The testcase should probably be at com.kodekonveyor.market.lead.RegisterInterestControllerStorageTest.java
Store and retrieve Entities through Repositories
The service:
DTOs and Entities:
If you have questions, see the FAQ, or ask on the development slack channel or ask your mentor.
Behaviour: PaymentUpdateController/payment channels
Annotations for the test cases:
@TestedBehaviour("payment channels")
@TestedService("PaymentUpdateController")
The production code is at com.kodekonveyor.market.register.PaymentUpdateController.java
The testcase base should be at com.kodekonveyor.market.register.PaymentUpdateControllerTestBase.java
The testcase should probably be at com.kodekonveyor.market.register.PaymentUpdateControllerPaymentChannelsTest.java
supported payment channels
The following are the names and meanings of supported payment channels:
sepa: European bank transfer. needs SWIFT and BIC
paypal: needs paypal email
transferwise: transferwise. Needs data based on the target country/bank.
The service:
DTOs and Entities:
If you have questions, see the FAQ, or ask on the development slack channel or ask your mentor.
Behaviour: CreateProjectController/storage
Annotations for the test cases:
@TestedBehaviour("storage")
@TestedService("CreateProjectController")
The production code is at com.kodekonveyor.market.project.CreateProjectController.java
The testcase base should be at com.kodekonveyor.market.project.CreateProjectControllerTestBase.java
The testcase should probably be at com.kodekonveyor.market.project.CreateProjectControllerStorageTest.java
Store and retrieve Entities through Repositories
The service:
DTOs and Entities:
If you have questions, see the FAQ, or ask on the development slack channel or ask your mentor.
It is already implemented. Your task is to annotate the test class correctly and set the names right.
We pay 1 testcase for it.
Behaviour: RestResponseEntityExceptionHandler/exception handling
Annotations for the test cases:
@TestedBehaviour("exception handling")
@TestedService("RestResponseEntityExceptionHandler")
The production code is at com.kodekonveyor.market.RestResponseEntityExceptionHandler.java
The testcase base should be at com.kodekonveyor.market.RestResponseEntityExceptionHandlerTestBase.java
The testcase should probably be at com.kodekonveyor.market.RestResponseEntityExceptionHandlerExceptionHandlingTest.java
All exceptions explicitly thrown are converter to appropriate error messages.
The service:
RestResponseEntityExceptionHandler
DTOs and Entities:
If you have questions, see the FAQ, or ask on the development slack channel or ask your mentor.
When I login sometimes I got greeted as chandan.
Behaviour: ShowUserController/Show Her Data
Annotations for the test cases:
@TestedBehaviour("Show Her Data")
@TestedService("ShowUserController")
The production code is at com.kodekonveyor.market.register.ShowUserController.java
The testcase base should be at com.kodekonveyor.market.register.ShowUserControllerTestBase.java
The testcase should probably be at com.kodekonveyor.market.register.ShowUserControllerShowHerDataTest.java
The user is entitled to see all the data we are storing about her.
If no reference to a user, then we are talking about the currently logged in user
The service:
DTOs and Entities:
If you have questions, see the FAQ, or ask on the development slack channel or ask your mentor.
Behaviour: ListTasksController/List user's tasks
Annotations for the test cases:
@TestedBehaviour("List user's tasks")
@TestedService("ListTasksController")
The production code is at com.kodekonveyor.market.tasks.ListTasksController.java
The testcase base should be at com.kodekonveyor.market.tasks.ListTasksControllerTestBase.java
The testcase should probably be at com.kodekonveyor.market.tasks.ListTasksControllerListUser'sTasksTest.java
The tasks should be listed for a user in the following order:
The service:
DTOs and Entities:
TaskDTO, TaskListDTO, TaskEntity, TaskStatusEnum
TaskDTO, TaskListDTO, TaskEntity, TaskStatusEnum
If you have questions, see the FAQ, or ask on the development slack channel or ask your mentor.
It is already implemented. Your task is to annotate the test class correctly and set the names right.
We pay 1 testcase for it.
Behaviour: LoggerService/Logging
Annotations for the test cases:
@TestedBehaviour("Logging")
@TestedService("LoggerService")
The production code is at com.kodekonveyor.market.LoggerService.java
The testcase base should be at com.kodekonveyor.market.LoggerServiceTestBase.java
The testcase should probably be at com.kodekonveyor.market.LoggerServiceLoggingTest.java
The service:
DTOs and Entities:
If you have questions, see the FAQ, or ask on the development slack channel or ask your mentor.
It is already implemented. Your task is to annotate the test class correctly and set the names right.
We pay 1 testcase for it.
Behaviour: NotLoggedInException/authentication infrastructure
Annotations for the test cases:
@TestedBehaviour("authentication infrastructure")
@TestedService("NotLoggedInException")
The production code is at com.kodekonveyor.authentication.NotLoggedInException.java
The testcase base should be at com.kodekonveyor.authentication.NotLoggedInExceptionTestBase.java
The testcase should probably be at com.kodekonveyor.authentication.NotLoggedInExceptionAuthenticationInfrastructureTest.java
RemoteAuthenticationFilter is a authentication filter implementation to retrieve the auth0 authenticated user from apache
NotLoggedInException is an exception signalling unauthenticated condition
RemoteAuthentication is an Authentication implementation
The service:
DTOs and Entities:
If you have questions, see the FAQ, or ask on the development slack channel or ask your mentor.
Behaviour: ObtainOauth2TokenService/oauth2
Annotations for the test cases:
@TestedBehaviour("oauth2")
@TestedService("ObtainOauth2TokenService")
The production code is at com.kodekonveyor.authentication.ObtainOauth2TokenService.java
The testcase base should be at com.kodekonveyor.authentication.ObtainOauth2TokenServiceTestBase.java
The testcase should probably be at com.kodekonveyor.authentication.ObtainOauth2TokenServiceOauth2Test.java
github resources are obtained with the oauth2 token of user
The service:
DTOs and Entities:
If you have questions, see the FAQ, or ask on the development slack channel or ask your mentor.
Behaviour: CreateProjectController/compile output
Annotations for the test cases:
@TestedBehaviour("compile output")
@TestedService("CreateProjectController")
The production code is at com.kodekonveyor.market.project.CreateProjectController.java
The testcase base should be at com.kodekonveyor.market.project.CreateProjectControllerTestBase.java
The testcase should probably be at com.kodekonveyor.market.project.CreateProjectControllerCompileOutputTest.java
The results are returned in a newly created DTO.
All the relevant fields of the returned DTO are filled out properly.
The service:
DTOs and Entities:
If you have questions, see the FAQ, or ask on the development slack channel or ask your mentor.
Behaviour: ListLeadController/roles
Annotations for the test cases:
@TestedBehaviour("roles")
@TestedService("ListLeadController")
The production code is at com.kodekonveyor.market.lead.ListLeadController.java
The testcase base should be at com.kodekonveyor.market.lead.ListLeadControllerTestBase.java
The testcase should probably be at com.kodekonveyor.market.lead.ListLeadControllerRolesTest.java
Before attempting to do any operation, all controllers should make sure that the user have appropriate rights.
The service:
DTOs and Entities:
If you have questions, see the FAQ, or ask on the development slack channel or ask your mentor.
Behaviour: CreateProjectController/input validation
Annotations for the test cases:
@TestedBehaviour("input validation")
@TestedService("CreateProjectController")
The production code is at com.kodekonveyor.market.project.CreateProjectController.java
The testcase base should be at com.kodekonveyor.market.project.CreateProjectControllerTestBase.java
The testcase should probably be at com.kodekonveyor.market.project.CreateProjectControllerInputValidationTest.java
Check all fields of input DTOs in Controllers
The service:
DTOs and Entities:
If you have questions, see the FAQ, or ask on the development slack channel or ask your mentor.
Behaviour: PaymentUpdateController/accept contract
Annotations for the test cases:
@TestedBehaviour("accept contract")
@TestedService("PaymentUpdateController")
The production code is at com.kodekonveyor.market.register.PaymentUpdateController.java
The testcase base should be at com.kodekonveyor.market.register.PaymentUpdateControllerTestBase.java
The testcase should probably be at com.kodekonveyor.market.register.PaymentUpdateControllerAcceptContractTest.java
In registration the acceptance of the general contract rules should be ticked.
The service:
DTOs and Entities:
If you have questions, see the FAQ, or ask on the development slack channel or ask your mentor.
Behaviour: UpdateProjectModelController/update milestones
Annotations for the test cases:
@TestedBehaviour("update milestones")
@TestedService("UpdateProjectModelController")
The production code is at com.kodekonveyor.market.project.UpdateProjectModelController.java
The testcase base should be at com.kodekonveyor.market.project.UpdateProjectModelControllerTestBase.java
The testcase should probably be at com.kodekonveyor.market.project.UpdateProjectModelControllerUpdateMilestonesTest.java
Update the milestones of the project.
The service:
DTOs and Entities:
If you have questions, see the FAQ, or ask on the development slack channel or ask your mentor.
Behaviour: AddToRoleController/roles
Annotations for the test cases:
@TestedBehaviour("roles")
@TestedService("AddToRoleController")
The production code is at com.kodekonveyor.market.register.AddToRoleController.java
The testcase base should be at com.kodekonveyor.market.register.AddToRoleControllerTestBase.java
The testcase should probably be at com.kodekonveyor.market.register.AddToRoleControllerRolesTest.java
Before attempting to do any operation, all controllers should make sure that the user have appropriate rights.
The service:
DTOs and Entities:
If you have questions, see the FAQ, or ask on the development slack channel or ask your mentor.
Behaviour: AddToRoleController/registration needed
Annotations for the test cases:
@TestedBehaviour("registration needed")
@TestedService("AddToRoleController")
The production code is at com.kodekonveyor.market.register.AddToRoleController.java
The testcase base should be at com.kodekonveyor.market.register.AddToRoleControllerTestBase.java
The testcase should probably be at com.kodekonveyor.market.register.AddToRoleControllerRegistrationNeededTest.java
Any process step which entails working on a task can be done only if user legal info are already registered.
This can be checked by making sure the user is in the "can_be_payed" role.
The service:
DTOs and Entities:
If you have questions, see the FAQ, or ask on the development slack channel or ask your mentor.
Behaviour: UpdateTasksController/Logging
Annotations for the test cases:
@TestedBehaviour("Logging")
@TestedService("UpdateTasksController")
The production code is at com.kodekonveyor.market.tasks.UpdateTasksController.java
The testcase base should be at com.kodekonveyor.market.tasks.UpdateTasksControllerTestBase.java
The testcase should probably be at com.kodekonveyor.market.tasks.UpdateTasksControllerLoggingTest.java
The service:
DTOs and Entities:
TaskDTO, TaskListDTO, TaskEntity, TaskStatusEnum
If you have questions, see the FAQ, or ask on the development slack channel or ask your mentor.
Behaviour: ObtainOauth2TokenService/Obtain Oauth2 token
Annotations for the test cases:
@TestedBehaviour("Obtain Oauth2 token")
@TestedService("ObtainOauth2TokenService")
The production code is at com.kodekonveyor.authentication.ObtainOauth2TokenService.java
The testcase base should be at com.kodekonveyor.authentication.ObtainOauth2TokenServiceTestBase.java
The testcase should probably be at com.kodekonveyor.authentication.ObtainOauth2TokenServiceObtainOauth2TokenTest.java
Obtain the Oauth2 token for the logged in user
See https://developer.github.com/apps/building-oauth-apps/authorizing-oauth-apps/#web-application-flow
The service:
DTOs and Entities:
If you have questions, see the FAQ, or ask on the development slack channel or ask your mentor.
Behaviour: GetRepositoryTasksService/compile output
Annotations for the test cases:
@TestedBehaviour("compile output")
@TestedService("GetRepositoryTasksService")
The production code is at com.kodekonveyor.market.tasks.GetRepositoryTasksService.java
The testcase base should be at com.kodekonveyor.market.tasks.GetRepositoryTasksServiceTestBase.java
The testcase should probably be at com.kodekonveyor.market.tasks.GetRepositoryTasksServiceCompileOutputTest.java
The results are returned in a newly created DTO.
All the relevant fields of the returned DTO are filled out properly.
The service:
DTOs and Entities:
TaskDTO, TaskListDTO, TaskEntity, TaskStatusEnum
If you have questions, see the FAQ, or ask on the development slack channel or ask your mentor.
Behaviour: PaymentUpdateController/roles
Annotations for the test cases:
@TestedBehaviour("roles")
@TestedService("PaymentUpdateController")
The production code is at com.kodekonveyor.market.register.PaymentUpdateController.java
The testcase base should be at com.kodekonveyor.market.register.PaymentUpdateControllerTestBase.java
The testcase should probably be at com.kodekonveyor.market.register.PaymentUpdateControllerRolesTest.java
Before attempting to do any operation, all controllers should make sure that the user have appropriate rights.
The service:
DTOs and Entities:
If you have questions, see the FAQ, or ask on the development slack channel or ask your mentor.
Behaviour: PaymentUpdateController/registration needed
Annotations for the test cases:
@TestedBehaviour("registration needed")
@TestedService("PaymentUpdateController")
The production code is at com.kodekonveyor.market.register.PaymentUpdateController.java
The testcase base should be at com.kodekonveyor.market.register.PaymentUpdateControllerTestBase.java
The testcase should probably be at com.kodekonveyor.market.register.PaymentUpdateControllerRegistrationNeededTest.java
Any process step which entails working on a task can be done only if user legal info are already registered.
This can be checked by making sure the user is in the "can_be_payed" role.
The service:
DTOs and Entities:
If you have questions, see the FAQ, or ask on the development slack channel or ask your mentor.
It is already implemented. Your task is to annotate the test class correctly and set the names right.
We pay 1 testcase for it.
Behaviour: RemoteAuthenticationFilter/authentication infrastructure
Annotations for the test cases:
@TestedBehaviour("authentication infrastructure")
@TestedService("RemoteAuthenticationFilter")
The production code is at com.kodekonveyor.authentication.RemoteAuthenticationFilter.java
The testcase base should be at com.kodekonveyor.authentication.RemoteAuthenticationFilterTestBase.java
The testcase should probably be at com.kodekonveyor.authentication.RemoteAuthenticationFilterAuthenticationInfrastructureTest.java
RemoteAuthenticationFilter is a authentication filter implementation to retrieve the auth0 authenticated user from apache
NotLoggedInException is an exception signalling unauthenticated condition
RemoteAuthentication is an Authentication implementation
The service:
DTOs and Entities:
If you have questions, see the FAQ, or ask on the development slack channel or ask your mentor.
Behaviour: MarketUserCompilerService/roles
Annotations for the test cases:
@TestedBehaviour("roles")
@TestedService("MarketUserCompilerService")
The production code is at com.kodekonveyor.market.register.MarketUserCompilerService.java
The testcase base should be at com.kodekonveyor.market.register.MarketUserCompilerServiceTestBase.java
The testcase should probably be at com.kodekonveyor.market.register.MarketUserCompilerServiceRolesTest.java
Before attempting to do any operation, all controllers should make sure that the user have appropriate rights.
The service:
DTOs and Entities:
If you have questions, see the FAQ, or ask on the development slack channel or ask your mentor.
Behaviour: LoginController/redirect for login
Annotations for the test cases:
@TestedBehaviour("redirect for login")
@TestedService("LoginController")
The production code is at com.kodekonveyor.market.register.LoginController.java
The testcase base should be at com.kodekonveyor.market.register.LoginControllerTestBase.java
The testcase should probably be at com.kodekonveyor.market.register.LoginControllerRedirectForLoginTest.java
The login page redirects the user to the url received in the next parameter.
(All other aspects of the authentication are handled by apache, auth0, and the com.kodekonveyor.authentication module.)
The service:
DTOs and Entities:
If you have questions, see the FAQ, or ask on the development slack channel or ask your mentor.
Behaviour: UpdateTasksController/Get tasks from github
Annotations for the test cases:
@TestedBehaviour("Get tasks from github")
@TestedService("UpdateTasksController")
The production code is at com.kodekonveyor.market.tasks.UpdateTasksController.java
The testcase base should be at com.kodekonveyor.market.tasks.UpdateTasksControllerTestBase.java
The testcase should probably be at com.kodekonveyor.market.tasks.UpdateTasksControllerGetTasksFromGithubTest.java
Issues for one repository are gathered with GetRepositoryTasksService
Issues can be retrieved according to this documentation: https://developer.github.com/v3/issues/#list-repository-issues
The newly obtained tasks are saved in the repository
The status is set by the following rules:
The service:
DTOs and Entities:
TaskDTO, TaskListDTO, TaskEntity, TaskStatusEnum
If you have questions, see the FAQ, or ask on the development slack channel or ask your mentor.
It is already implemented. Your task is to annotate the test class correctly and set the names right.
We pay 1 testcase for it.
Behaviour: RemoteAuthentication/authentication infrastructure
Annotations for the test cases:
@TestedBehaviour("authentication infrastructure")
@TestedService("RemoteAuthentication")
The production code is at com.kodekonveyor.authentication.RemoteAuthentication.java
The testcase base should be at com.kodekonveyor.authentication.RemoteAuthenticationTestBase.java
The testcase should probably be at com.kodekonveyor.authentication.RemoteAuthenticationAuthenticationInfrastructureTest.java
RemoteAuthenticationFilter is a authentication filter implementation to retrieve the auth0 authenticated user from apache
NotLoggedInException is an exception signalling unauthenticated condition
RemoteAuthentication is an Authentication implementation
The service:
DTOs and Entities:
If you have questions, see the FAQ, or ask on the development slack channel or ask your mentor.
Behaviour: RegistrationController/store contract details
Annotations for the test cases:
@TestedBehaviour("store contract details")
@TestedService("RegistrationController")
The production code is at com.kodekonveyor.market.register.RegistrationController.java
The testcase base should be at com.kodekonveyor.market.register.RegistrationControllerTestBase.java
The testcase should probably be at com.kodekonveyor.market.register.RegistrationControllerStoreContractDetailsTest.java
create the user and store all the contract related user details
store everything the "User legal info" Business Object contains
The service:
DTOs and Entities:
If you have questions, see the FAQ, or ask on the development slack channel or ask your mentor.
Behaviour: ListLeadController/Logging
Annotations for the test cases:
@TestedBehaviour("Logging")
@TestedService("ListLeadController")
The production code is at com.kodekonveyor.market.lead.ListLeadController.java
The testcase base should be at com.kodekonveyor.market.lead.ListLeadControllerTestBase.java
The testcase should probably be at com.kodekonveyor.market.lead.ListLeadControllerLoggingTest.java
The service:
DTOs and Entities:
If you have questions, see the FAQ, or ask on the development slack channel or ask your mentor.
Behaviour: UpdateTasksController/roles
Annotations for the test cases:
@TestedBehaviour("roles")
@TestedService("UpdateTasksController")
The production code is at com.kodekonveyor.market.tasks.UpdateTasksController.java
The testcase base should be at com.kodekonveyor.market.tasks.UpdateTasksControllerTestBase.java
The testcase should probably be at com.kodekonveyor.market.tasks.UpdateTasksControllerRolesTest.java
Before attempting to do any operation, all controllers should make sure that the user have appropriate rights.
The service:
DTOs and Entities:
TaskDTO, TaskListDTO, TaskEntity, TaskStatusEnum
If you have questions, see the FAQ, or ask on the development slack channel or ask your mentor.
Behaviour: GetRepositoryTasksService/Logging
Annotations for the test cases:
@TestedBehaviour("Logging")
@TestedService("GetRepositoryTasksService")
The production code is at com.kodekonveyor.market.tasks.GetRepositoryTasksService.java
The testcase base should be at com.kodekonveyor.market.tasks.GetRepositoryTasksServiceTestBase.java
The testcase should probably be at com.kodekonveyor.market.tasks.GetRepositoryTasksServiceLoggingTest.java
The service:
DTOs and Entities:
TaskDTO, TaskListDTO, TaskEntity, TaskStatusEnum
If you have questions, see the FAQ, or ask on the development slack channel or ask your mentor.
Behaviour: ListTasksController/Logging
Annotations for the test cases:
@TestedBehaviour("Logging")
@TestedService("ListTasksController")
The production code is at com.kodekonveyor.market.tasks.ListTasksController.java
The testcase base should be at com.kodekonveyor.market.tasks.ListTasksControllerTestBase.java
The testcase should probably be at com.kodekonveyor.market.tasks.ListTasksControllerLoggingTest.java
The service:
DTOs and Entities:
TaskDTO, TaskListDTO, TaskEntity, TaskStatusEnum
TaskDTO, TaskListDTO, TaskEntity, TaskStatusEnum
If you have questions, see the FAQ, or ask on the development slack channel or ask your mentor.
Behaviour: CreateProjectController/Logging
Annotations for the test cases:
@TestedBehaviour("Logging")
@TestedService("CreateProjectController")
The production code is at com.kodekonveyor.market.project.CreateProjectController.java
The testcase base should be at com.kodekonveyor.market.project.CreateProjectControllerTestBase.java
The testcase should probably be at com.kodekonveyor.market.project.CreateProjectControllerLoggingTest.java
The service:
DTOs and Entities:
If you have questions, see the FAQ, or ask on the development slack channel or ask your mentor.
Behaviour: AddToRoleController/one role once
Annotations for the test cases:
@TestedBehaviour("one role once")
@TestedService("AddToRoleController")
The production code is at com.kodekonveyor.market.register.AddToRoleController.java
The testcase base should be at com.kodekonveyor.market.register.AddToRoleControllerTestBase.java
The testcase should probably be at com.kodekonveyor.market.register.AddToRoleControllerOneRoleOnceTest.java
the user is added to the role, if is not already member
The service:
DTOs and Entities:
If you have questions, see the FAQ, or ask on the development slack channel or ask your mentor.
Behaviour: ObtainOauth2TokenService/Logging
Annotations for the test cases:
@TestedBehaviour("Logging")
@TestedService("ObtainOauth2TokenService")
The production code is at com.kodekonveyor.authentication.ObtainOauth2TokenService.java
The testcase base should be at com.kodekonveyor.authentication.ObtainOauth2TokenServiceTestBase.java
The testcase should probably be at com.kodekonveyor.authentication.ObtainOauth2TokenServiceLoggingTest.java
The service:
DTOs and Entities:
If you have questions, see the FAQ, or ask on the development slack channel or ask your mentor.
It is already implemented. Your task is to annotate the test class correctly and set the names right.
We pay 1 testcase for it.
Behaviour: AuthenticatedUserService/authenticated user
Annotations for the test cases:
@TestedBehaviour("authenticated user")
@TestedService("AuthenticatedUserService")
The production code is at com.kodekonveyor.authentication.AuthenticatedUserService.java
The testcase base should be at com.kodekonveyor.authentication.AuthenticatedUserServiceTestBase.java
The testcase should probably be at com.kodekonveyor.authentication.AuthenticatedUserServiceAuthenticatedUserTest.java
The current authenticated user is returned by the service
The service:
DTOs and Entities:
If you have questions, see the FAQ, or ask on the development slack channel or ask your mentor.
It is already implemented. Your task is to annotate the test class correctly and set the names right.
We pay 1 testcase for it.
Behaviour: LoginController/redirect for login
Annotations for the test cases:
@TestedBehaviour("redirect for login")
@TestedService("LoginController")
The production code is at com.kodekonveyor.market.register.LoginController.java
The testcase base should be at com.kodekonveyor.market.register.LoginControllerTestBase.java
The testcase should probably be at com.kodekonveyor.market.register.LoginControllerRedirectForLoginTest.java
The login page redirects the user to the url received in the next parameter.
(All other aspects of the authentication are handled by apache, auth0, and the com.kodekonveyor.authentication module.)
The service:
DTOs and Entities:
If you have questions, see the FAQ, or ask on the development slack channel or ask your mentor.
Behaviour: UpdateProjectModelController/update milestones
Annotations for the test cases:
@TestedBehaviour("update milestones")
@TestedService("UpdateProjectModelController")
The production code is at com.kodekonveyor.market.project.UpdateProjectModelController.java
The testcase base should be at com.kodekonveyor.market.project.UpdateProjectModelControllerTestBase.java
The testcase should probably be at com.kodekonveyor.market.project.UpdateProjectModelControllerUpdateMilestonesTest.java
Update the milestones of the project.
The service:
DTOs and Entities:
If you have questions, see the FAQ, or ask on the development slack channel or ask your mentor.
Behaviour: GithubGetService/use github api
Annotations for the test cases:
@TestedBehaviour("use github api")
@TestedService("GithubGetService")
The production code is at com.kodekonveyor.technical.GithubGetService.java
The testcase base should be at com.kodekonveyor.technical.GithubGetServiceTestBase.java
The testcase should probably be at com.kodekonveyor.technical.GithubGetServiceUseGithubApiTest.java
use github api using token authentication
You should set the "Authorization" header to "token my_access_token" as described in https://developer.github.com/changes/2020-02-14-deprecating-password-auth/
See https://www.baeldung.com/httpclient-custom-http-header for setting the header.
for access token you generate one at https://github.com/settings/tokens with "repo" scope, and put it to the "issuetoken" environment variable.
In Linux you can use your .bashrc to set the environment variable. You can use the command line
curl -H "Authorization: token $issuetoken" https://api.github.com/repos/kode-konveyor/taskmarket/issues/74
to check your environment.
This service should be integration tested instead of unit testing:
The service:
DTOs and Entities:
If you have questions, see the FAQ, or ask on the development slack channel or ask your mentor.
Behaviour: UpdateTasksService/update tasks
Annotations for the test cases:
@TestedBehaviour("update tasks")
@TestedService("UpdateTasksService")
The production code is at com.kodekonveyor.market.tasks.UpdateTasksService.java
The testcase base should be at com.kodekonveyor.market.tasks.UpdateTasksServiceTestBase.java
The testcase should probably be at com.kodekonveyor.market.tasks.UpdateTasksServiceUpdateTasksTest.java
Task Description:
The tasks are updated by the project manager as part of updating the project model.
This is called from UpdateProjectModelController, and implemented in UpdateTasksService.
Current tasks are gathered using GetRepositoryTasksService
Github issue descriptions have a beginning and ending delimiter line.
The actual task description is always between the delimiter.
The history and diff is put after the ending delimiter.
For each tasks in the tasks parameter:
The task name is <serviceName>/<behaviourName>.
If a github issue has no corresponding task in the list, it is marked with the "not in model" label (if it does not already have it)
End of Task Description
Diff:
+this
-that
The service:
DTOs and Entities:
TaskDTO, TaskListDTO, TaskEntity, TaskStatusEnum
If you have questions, see the FAQ, or ask on the development slack channel or ask your mentor.
Behaviour: RegisterInterestController/input validation
Annotations for the test cases:
@TestedBehaviour("input validation")
@TestedService("RegisterInterestController")
The production code is at com.kodekonveyor.market.lead.RegisterInterestController.java
The testcase base should be at com.kodekonveyor.market.lead.RegisterInterestControllerTestBase.java
The testcase should probably be at com.kodekonveyor.market.lead.RegisterInterestControllerInputValidationTest.java
Check all fields of input DTOs in Controllers
The service:
DTOs and Entities:
If you have questions, see the FAQ, or ask on the development slack channel or ask your mentor.
Behaviour: RegistrationController/check regime validity
Annotations for the test cases:
@TestedBehaviour("check regime validity")
@TestedService("RegistrationController")
The production code is at com.kodekonveyor.market.register.RegistrationController.java
The testcase base should be at com.kodekonveyor.market.register.RegistrationControllerTestBase.java
The testcase should probably be at com.kodekonveyor.market.register.RegistrationControllerCheckRegimeValidityTest.java
check validity of payment regime
These are the names and meanings of different payment regimes:
restofworld: Anyone else, issuing bills
The service:
DTOs and Entities:
If you have questions, see the FAQ, or ask on the development slack channel or ask your mentor.
Behaviour: GetRepositoryTasksService/Get tasks from github
Annotations for the test cases:
@TestedBehaviour("Get tasks from github")
@TestedService("GetRepositoryTasksService")
The production code is at com.kodekonveyor.market.tasks.GetRepositoryTasksService.java
The testcase base should be at com.kodekonveyor.market.tasks.GetRepositoryTasksServiceTestBase.java
The testcase should probably be at com.kodekonveyor.market.tasks.GetRepositoryTasksServiceGetTasksFromGithubTest.java
Issues for one repository are gathered with GetRepositoryTasksService
Issues can be retrieved according to this documentation: https://developer.github.com/v3/issues/#list-repository-issues
The newly obtained tasks are saved in the repository
The status is set by the following rules:
The service:
DTOs and Entities:
TaskDTO, TaskListDTO, TaskEntity, TaskStatusEnum
If you have questions, see the FAQ, or ask on the development slack channel or ask your mentor.
Behaviour: RegisterInterestController/input validation
Annotations for the test cases:
@TestedBehaviour("input validation")
@TestedService("RegisterInterestController")
The production code is at com.kodekonveyor.market.lead.RegisterInterestController.java
The testcase base should be at com.kodekonveyor.market.lead.RegisterInterestControllerTestBase.java
The testcase should probably be at com.kodekonveyor.market.lead.RegisterInterestControllerInputValidationTest.java
Check all fields of input DTOs in Controllers
The service:
DTOs and Entities:
If you have questions, see the FAQ, or ask on the development slack channel or ask your mentor.
In ProjectEntity, There should be a boolean public field called "isPublic" to know whether the project is closed or open.
Behaviour: RegistrationController/store contract details
Annotations for the test cases:
@TestedBehaviour("store contract details")
@TestedService("RegistrationController")
The production code is at com.kodekonveyor.market.register.RegistrationController.java
The testcase base should be at com.kodekonveyor.market.register.RegistrationControllerTestBase.java
The testcase should probably be at com.kodekonveyor.market.register.RegistrationControllerStoreContractDetailsTest.java
create the user and store all the contract related user details
store everything the "User legal info" Business Object contains
The service:
DTOs and Entities:
If you have questions, see the FAQ, or ask on the development slack channel or ask your mentor.
Behaviour: CreateProjectController/roles
Annotations for the test cases:
@TestedBehaviour("roles")
@TestedService("CreateProjectController")
The production code is at com.kodekonveyor.market.project.CreateProjectController.java
The testcase base should be at com.kodekonveyor.market.project.CreateProjectControllerTestBase.java
The testcase should probably be at com.kodekonveyor.market.project.CreateProjectControllerRolesTest.java
Before attempting to do any operation, all controllers should make sure that the user have appropriate rights.
The service:
DTOs and Entities:
If you have questions, see the FAQ, or ask on the development slack channel or ask your mentor.
Behaviour: ListLeadController/storage
Annotations for the test cases:
@TestedBehaviour("storage")
@TestedService("ListLeadController")
The production code is at com.kodekonveyor.market.lead.ListLeadController.java
The testcase base should be at com.kodekonveyor.market.lead.ListLeadControllerTestBase.java
The testcase should probably be at com.kodekonveyor.market.lead.ListLeadControllerStorageTest.java
Store and retrieve Entities through Repositories
The service:
DTOs and Entities:
If you have questions, see the FAQ, or ask on the development slack channel or ask your mentor.
Behaviour: RegisterInterestController/storage
Annotations for the test cases:
@TestedBehaviour("storage")
@TestedService("RegisterInterestController")
The production code is at com.kodekonveyor.market.lead.RegisterInterestController.java
You should probably start at com.kodekonveyor.market.lead.RegisterInterestControllerTests.java
Store and retrieve Entities through Repositories
The service:
DTOs and Entities:
If you have questions, see the FAQ, ask on the Telegram channel or ask your mentor.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.