Skip to content
This repository has been archived by the owner on Jan 14, 2019. It is now read-only.

Refactor parameters logic #189

Closed
1 of 2 tasks
baev opened this issue Apr 15, 2014 · 5 comments
Closed
1 of 2 tasks

Refactor parameters logic #189

baev opened this issue Apr 15, 2014 · 5 comments
Assignees
Milestone

Comments

@baev
Copy link
Member

baev commented Apr 15, 2014

  • Think about parameters in model
  • Think about syntax-sugar for attaching parameters to test
@baev baev added this to the 1.4 milestone Apr 15, 2014
@baev baev self-assigned this May 12, 2014
@vania-pooh
Copy link
Contributor

As discussed with @baev. One of possible solutions is to add the following:

public class A {
    @Parameter(names={"Param1", "Param2"}, description="Free form description")
    public A(String param1, Integer param2){
        //Implementation
    }
}

Names property of @parameter annotation is an array of strings. Its length should be equal to number of arguments of the annotated method.

@lanwen
Copy link
Contributor

lanwen commented May 23, 2014

What for you need names arr? Do you want to use aspectj to catch the value?

@vania-pooh
Copy link
Contributor

Yes, I just logged what we discussed with @baev to not forget about it. Please discuss with him the implementation details.

@vania-pooh
Copy link
Contributor

@baev seems to contradict to #286. Shouldn't we close this?

@vania-pooh
Copy link
Contributor

Summon @baev.

@baev baev closed this as completed Jul 9, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants