[JBoss JIRA] (FORGE-2144) Adding powermock rule into the test will cause forge to be unable to find it
by Matej Briskar (JIRA)
Matej Briskar created FORGE-2144:
------------------------------------
Summary: Adding powermock rule into the test will cause forge to be unable to find it
Key: FORGE-2144
URL: https://issues.jboss.org/browse/FORGE-2144
Project: Forge
Issue Type: Bug
Reporter: Matej Briskar
Powermock is a framework for mocking static methods (this is a tricky thing to do). By default you will run it using @RunWith annotation, however since the arquillian has it's own @RunWith(Arquillian.class) annotation, it provides an option to use the mocking using the junit.Rule. This, however, makes the tests fail.
--
This message was sent by Atlassian JIRA
(v6.3.8#6338)
10 years, 2 months
[JBoss JIRA] (FORGE-1538) No TAB completion when cd ../ to another class
by Daniel Cunha (JIRA)
[ https://issues.jboss.org/browse/FORGE-1538?page=com.atlassian.jira.plugin... ]
Daniel Cunha reassigned FORGE-1538:
-----------------------------------
Assignee: Daniel Cunha
> No TAB completion when cd ../ to another class
> ----------------------------------------------
>
> Key: FORGE-1538
> URL: https://issues.jboss.org/browse/FORGE-1538
> Project: Forge
> Issue Type: Sub-task
> Components: UI - Shell
> Affects Versions: 2.0.0.Final
> Reporter: Antonio Goncalves
> Assignee: Daniel Cunha
> Fix For: 2.x Future
>
>
> Let's say I have the {{Book}} and {{Musician}} entity. When I'm on {{Book}} to go to {{Musician}} I can :
> {code}
> [Book.java]$ cd ../Musician.java
> [Musician.java]$
> {code}
> Unfortunatelly there is not TAB completion
> {code}
> [Book.java]$ cd ../ TAB
> [Book.java]$ cd ../Mu TAB
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.8#6338)
10 years, 2 months
[JBoss JIRA] (ROASTER-44) Support writing of nested annotation arrays
by Matt Benson (JIRA)
[ https://issues.jboss.org/browse/ROASTER-44?page=com.atlassian.jira.plugin... ]
Matt Benson commented on ROASTER-44:
------------------------------------
After further discussion on IRC between myself, [~gastaldi] and [~lincolnthree], we have decided the intermediate interface is not necessary and that this can be handled by the addition to {{AnnotationSource}}:
{code}
/**
* Add an annotation value.
* @return the nested {@link AnnotationSource}
* @see #addAnnotationValue(String)
*/
AnnotationSource<O> addAnnotationValue();
/**
* Add a named annotation value. When there is no existing annotation or annotation array value for {@code name}, a
* single unwrapped annotation value will be created (as with {@link #setAnnotationValue(String)}); otherwise an
* unwrapped annotation value will be promoted to an array and a new element will be added.
*
* @param name
* @return the nested {@link AnnotationSource}
*/
AnnotationSource<O> addAnnotationValue(String name);
AnnotationSource<O> removeAnnotationValue(Annotation<O> element);
AnnotationSource<O> removeAnnotationValue(String name, Annotation<O> element);
{code}
> Support writing of nested annotation arrays
> -------------------------------------------
>
> Key: ROASTER-44
> URL: https://issues.jboss.org/browse/ROASTER-44
> Project: Roaster
> Issue Type: Feature Request
> Components: API, JDT
> Affects Versions: 2.9.0.Final
> Reporter: George Gastaldi
> Fix For: 2.x Future
>
>
> Roaster should allow annotation nesting, like:
> {code}
> @NamedQueries({
> @NamedQuery(name="Customer.findAll", query="select C from Customer C"),
> @NamedQuery(name="Customer.findByName", query="select C from Customer C where C.name = :name"),
> @NamedQuery(name="Customer.findById", query="select C from Customer C where C.id = :id")
> })
> @Entity
> public class Customer {...}
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.8#6338)
10 years, 2 months
[JBoss JIRA] (ROASTER-44) Support writing of nested annotation arrays
by George Gastaldi (JIRA)
[ https://issues.jboss.org/browse/ROASTER-44?page=com.atlassian.jira.plugin... ]
George Gastaldi commented on ROASTER-44:
----------------------------------------
The interface looks nice. I think we also need a {{removeValue(AnnotationSource)}} method in {{AnnotationArraySource}}
> Support writing of nested annotation arrays
> -------------------------------------------
>
> Key: ROASTER-44
> URL: https://issues.jboss.org/browse/ROASTER-44
> Project: Roaster
> Issue Type: Feature Request
> Components: API, JDT
> Affects Versions: 2.9.0.Final
> Reporter: George Gastaldi
> Fix For: 2.x Future
>
>
> Roaster should allow annotation nesting, like:
> {code}
> @NamedQueries({
> @NamedQuery(name="Customer.findAll", query="select C from Customer C"),
> @NamedQuery(name="Customer.findByName", query="select C from Customer C where C.name = :name"),
> @NamedQuery(name="Customer.findById", query="select C from Customer C where C.id = :id")
> })
> @Entity
> public class Customer {...}
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.8#6338)
10 years, 2 months
[JBoss JIRA] (ROASTER-44) Support writing of nested annotation arrays
by Matt Benson (JIRA)
[ https://issues.jboss.org/browse/ROASTER-44?page=com.atlassian.jira.plugin... ]
Matt Benson commented on ROASTER-44:
------------------------------------
Okay, I think to manage something this relatively complex warrants a new interface. What about something like:
1.
{code}
interface AnnotationArray<O> {
Annotation<O>[] getValues();
}
interface AnnotationArraySource<O> extends AnnotationArray<O> {
void setName(String className);
AnnotationSource<O>[] getValues();
AnnotationSource<O> addValue();
}
{code}
2. modify {{Annotation}}:
{code}
@Deprecated
Annotation<O>[] getAnnotationArrayValue();
@Deprecated
Annotation<O>[] getAnnotationArrayValue(String name);
AnnotationArray<O> getAnnotationArray();
AnnotationArray<O> getAnnotationArray(String name);
{code}
3. modify {{AnnotationSource}}:
{code}
@Deprecated
AnnotationSource<O>[] getAnnotationArrayValue();
@Deprecated
AnnotationSource<O>[] getAnnotationArrayValue(String name);
AnnotationArraySource<O> getAnnotationArray();
AnnotationArraySource<O> getAnnotationArray(String name);
{code}
> Support writing of nested annotation arrays
> -------------------------------------------
>
> Key: ROASTER-44
> URL: https://issues.jboss.org/browse/ROASTER-44
> Project: Roaster
> Issue Type: Feature Request
> Components: API, JDT
> Affects Versions: 2.9.0.Final
> Reporter: George Gastaldi
> Fix For: 2.x Future
>
>
> Roaster should allow annotation nesting, like:
> {code}
> @NamedQueries({
> @NamedQuery(name="Customer.findAll", query="select C from Customer C"),
> @NamedQuery(name="Customer.findByName", query="select C from Customer C where C.name = :name"),
> @NamedQuery(name="Customer.findById", query="select C from Customer C where C.id = :id")
> })
> @Entity
> public class Customer {...}
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.8#6338)
10 years, 2 months
[JBoss JIRA] (ROASTER-44) Support writing of nested annotation arrays
by George Gastaldi (JIRA)
[ https://issues.jboss.org/browse/ROASTER-44?page=com.atlassian.jira.plugin... ]
George Gastaldi updated ROASTER-44:
-----------------------------------
Fix Version/s: 2.x Future
(was: 2.0.0.Final)
> Support writing of nested annotation arrays
> -------------------------------------------
>
> Key: ROASTER-44
> URL: https://issues.jboss.org/browse/ROASTER-44
> Project: Roaster
> Issue Type: Feature Request
> Components: API, JDT
> Affects Versions: 2.9.0.Final
> Reporter: George Gastaldi
> Fix For: 2.x Future
>
>
> Roaster should allow annotation nesting, like:
> {code}
> @NamedQueries({
> @NamedQuery(name="Customer.findAll", query="select C from Customer C"),
> @NamedQuery(name="Customer.findByName", query="select C from Customer C where C.name = :name"),
> @NamedQuery(name="Customer.findById", query="select C from Customer C where C.id = :id")
> })
> @Entity
> public class Customer {...}
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.8#6338)
10 years, 2 months
[JBoss JIRA] (ROASTER-44) Support writing of nested annotation arrays
by Matt Benson (JIRA)
[ https://issues.jboss.org/browse/ROASTER-44?page=com.atlassian.jira.plugin... ]
Matt Benson updated ROASTER-44:
-------------------------------
Summary: Support writing of nested annotation arrays (was: Support writing of nested annotations)
> Support writing of nested annotation arrays
> -------------------------------------------
>
> Key: ROASTER-44
> URL: https://issues.jboss.org/browse/ROASTER-44
> Project: Roaster
> Issue Type: Feature Request
> Components: API, JDT
> Affects Versions: 2.9.0.Final
> Reporter: George Gastaldi
> Fix For: 2.0.0.Final
>
>
> Roaster should allow annotation nesting, like:
> {code}
> @NamedQueries({
> @NamedQuery(name="Customer.findAll", query="select C from Customer C"),
> @NamedQuery(name="Customer.findByName", query="select C from Customer C where C.name = :name"),
> @NamedQuery(name="Customer.findById", query="select C from Customer C where C.id = :id")
> })
> @Entity
> public class Customer {...}
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.8#6338)
10 years, 2 months