You are viewing a plain text version of this content. The canonical link for it is here.
Posted to npanday-commits@incubator.apache.org by "Matthias Weßendorf (Created JIRA)" <ji...@apache.org> on 2012/01/10 10:22:38 UTC
[jira] [Created] (NPANDAY-529) create internalsVisibleTo parameter
list for the compiler plugin
create internalsVisibleTo parameter list for the compiler plugin
----------------------------------------------------------------
Key: NPANDAY-529
URL: https://issues.apache.org/jira/browse/NPANDAY-529
Project: NPanday
Issue Type: Bug
Components: Maven Plugins
Affects Versions: 1.4-incubating
Reporter: Matthias Weßendorf
Assignee: Matthias Weßendorf
Sometimes it is needed to "expose" internal interfaces (for mocking/testing)
NMock is not allowing to create mocks out of internal interfaces:
In order archive it, we need to have the following on the AssemblyInfo.cs file
{code}
[assembly: InternalsVisibleTo("Mocks")]
[assembly: InternalsVisibleTo("MockObjects")]
{code}
However, since this is not always needed, it should be a parameter list in the pom.xml config section
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Closed] (NPANDAY-529) create internalsVisibleTo parameter
list for the compiler plugin
Posted by "Matthias Weßendorf (Closed JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/NPANDAY-529?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Matthias Weßendorf closed NPANDAY-529.
--------------------------------------
Resolution: Fixed
Ok, closing it for now
using an additional "AssemblyInfo" file (e.g. Blah.cs) works fine...
{code}
using System.Reflection;
using System.Runtime.CompilerServices;
[assembly: InternalsVisibleTo("Mocks")]
[assembly: InternalsVisibleTo("MockObjects")]
{code}
> create internalsVisibleTo parameter list for the compiler plugin
> ----------------------------------------------------------------
>
> Key: NPANDAY-529
> URL: https://issues.apache.org/jira/browse/NPANDAY-529
> Project: NPanday
> Issue Type: Bug
> Components: Maven Plugins
> Affects Versions: 1.4-incubating
> Reporter: Matthias Weßendorf
> Assignee: Matthias Weßendorf
> Attachments: NPANDAY-529, NPANDAY-529_appenedALL.patch
>
>
> Sometimes it is needed to "expose" internal interfaces (for mocking/testing)
> NMock is not allowing to create mocks out of internal interfaces:
> In order archive it, we need to have the following on the AssemblyInfo.cs file
> {code}
> [assembly: InternalsVisibleTo("Mocks")]
> [assembly: InternalsVisibleTo("MockObjects")]
> {code}
> However, since this is not always needed, it should be a parameter list in the pom.xml config section
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (NPANDAY-529) create internalsVisibleTo
parameter list for the compiler plugin
Posted by "Matthias Weßendorf (Commented JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/NPANDAY-529?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13183316#comment-13183316 ]
Matthias Weßendorf commented on NPANDAY-529:
--------------------------------------------
tghanks for the feedback! I was not aware of having multiple AssemblyInfo.cs files!
I will try it
> create internalsVisibleTo parameter list for the compiler plugin
> ----------------------------------------------------------------
>
> Key: NPANDAY-529
> URL: https://issues.apache.org/jira/browse/NPANDAY-529
> Project: NPanday
> Issue Type: Bug
> Components: Maven Plugins
> Affects Versions: 1.4-incubating
> Reporter: Matthias Weßendorf
> Assignee: Matthias Weßendorf
> Attachments: NPANDAY-529, NPANDAY-529_appenedALL.patch
>
>
> Sometimes it is needed to "expose" internal interfaces (for mocking/testing)
> NMock is not allowing to create mocks out of internal interfaces:
> In order archive it, we need to have the following on the AssemblyInfo.cs file
> {code}
> [assembly: InternalsVisibleTo("Mocks")]
> [assembly: InternalsVisibleTo("MockObjects")]
> {code}
> However, since this is not always needed, it should be a parameter list in the pom.xml config section
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (NPANDAY-529) create internalsVisibleTo parameter
list for the compiler plugin
Posted by "Matthias Weßendorf (Updated JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/NPANDAY-529?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Matthias Weßendorf updated NPANDAY-529:
---------------------------------------
Attachment: NPANDAY-529_appenedALL.patch
updated patch
> create internalsVisibleTo parameter list for the compiler plugin
> ----------------------------------------------------------------
>
> Key: NPANDAY-529
> URL: https://issues.apache.org/jira/browse/NPANDAY-529
> Project: NPanday
> Issue Type: Bug
> Components: Maven Plugins
> Affects Versions: 1.4-incubating
> Reporter: Matthias Weßendorf
> Assignee: Matthias Weßendorf
> Attachments: NPANDAY-529, NPANDAY-529_appenedALL.patch
>
>
> Sometimes it is needed to "expose" internal interfaces (for mocking/testing)
> NMock is not allowing to create mocks out of internal interfaces:
> In order archive it, we need to have the following on the AssemblyInfo.cs file
> {code}
> [assembly: InternalsVisibleTo("Mocks")]
> [assembly: InternalsVisibleTo("MockObjects")]
> {code}
> However, since this is not always needed, it should be a parameter list in the pom.xml config section
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (NPANDAY-529) create internalsVisibleTo parameter
list for the compiler plugin
Posted by "Matthias Weßendorf (Resolved JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/NPANDAY-529?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Matthias Weßendorf resolved NPANDAY-529.
----------------------------------------
Resolution: Won't Fix
> create internalsVisibleTo parameter list for the compiler plugin
> ----------------------------------------------------------------
>
> Key: NPANDAY-529
> URL: https://issues.apache.org/jira/browse/NPANDAY-529
> Project: NPanday
> Issue Type: Bug
> Components: Maven Plugins
> Affects Versions: 1.4-incubating
> Reporter: Matthias Weßendorf
> Assignee: Matthias Weßendorf
> Attachments: NPANDAY-529, NPANDAY-529_appenedALL.patch
>
>
> Sometimes it is needed to "expose" internal interfaces (for mocking/testing)
> NMock is not allowing to create mocks out of internal interfaces:
> In order archive it, we need to have the following on the AssemblyInfo.cs file
> {code}
> [assembly: InternalsVisibleTo("Mocks")]
> [assembly: InternalsVisibleTo("MockObjects")]
> {code}
> However, since this is not always needed, it should be a parameter list in the pom.xml config section
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Reopened] (NPANDAY-529) create internalsVisibleTo parameter
list for the compiler plugin
Posted by "Matthias Weßendorf (Reopened JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/NPANDAY-529?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Matthias Weßendorf reopened NPANDAY-529:
----------------------------------------
> create internalsVisibleTo parameter list for the compiler plugin
> ----------------------------------------------------------------
>
> Key: NPANDAY-529
> URL: https://issues.apache.org/jira/browse/NPANDAY-529
> Project: NPanday
> Issue Type: Bug
> Components: Maven Plugins
> Affects Versions: 1.4-incubating
> Reporter: Matthias Weßendorf
> Assignee: Matthias Weßendorf
> Attachments: NPANDAY-529, NPANDAY-529_appenedALL.patch
>
>
> Sometimes it is needed to "expose" internal interfaces (for mocking/testing)
> NMock is not allowing to create mocks out of internal interfaces:
> In order archive it, we need to have the following on the AssemblyInfo.cs file
> {code}
> [assembly: InternalsVisibleTo("Mocks")]
> [assembly: InternalsVisibleTo("MockObjects")]
> {code}
> However, since this is not always needed, it should be a parameter list in the pom.xml config section
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (NPANDAY-529) create internalsVisibleTo
parameter list for the compiler plugin
Posted by "Lars Corneliussen (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/NPANDAY-529?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13183195#comment-13183195 ]
Lars Corneliussen commented on NPANDAY-529:
-------------------------------------------
Should that be generically solved, or rather a specific parameter?
> create internalsVisibleTo parameter list for the compiler plugin
> ----------------------------------------------------------------
>
> Key: NPANDAY-529
> URL: https://issues.apache.org/jira/browse/NPANDAY-529
> Project: NPanday
> Issue Type: Bug
> Components: Maven Plugins
> Affects Versions: 1.4-incubating
> Reporter: Matthias Weßendorf
> Assignee: Matthias Weßendorf
>
> Sometimes it is needed to "expose" internal interfaces (for mocking/testing)
> NMock is not allowing to create mocks out of internal interfaces:
> In order archive it, we need to have the following on the AssemblyInfo.cs file
> {code}
> [assembly: InternalsVisibleTo("Mocks")]
> [assembly: InternalsVisibleTo("MockObjects")]
> {code}
> However, since this is not always needed, it should be a parameter list in the pom.xml config section
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (NPANDAY-529) create internalsVisibleTo parameter
list for the compiler plugin
Posted by "Matthias Weßendorf (Updated JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/NPANDAY-529?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Matthias Weßendorf updated NPANDAY-529:
---------------------------------------
Attachment: NPANDAY-529
> create internalsVisibleTo parameter list for the compiler plugin
> ----------------------------------------------------------------
>
> Key: NPANDAY-529
> URL: https://issues.apache.org/jira/browse/NPANDAY-529
> Project: NPanday
> Issue Type: Bug
> Components: Maven Plugins
> Affects Versions: 1.4-incubating
> Reporter: Matthias Weßendorf
> Assignee: Matthias Weßendorf
> Attachments: NPANDAY-529
>
>
> Sometimes it is needed to "expose" internal interfaces (for mocking/testing)
> NMock is not allowing to create mocks out of internal interfaces:
> In order archive it, we need to have the following on the AssemblyInfo.cs file
> {code}
> [assembly: InternalsVisibleTo("Mocks")]
> [assembly: InternalsVisibleTo("MockObjects")]
> {code}
> However, since this is not always needed, it should be a parameter list in the pom.xml config section
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (NPANDAY-529) create internalsVisibleTo
parameter list for the compiler plugin
Posted by "Matthias Weßendorf (Commented JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/NPANDAY-529?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13183225#comment-13183225 ]
Matthias Weßendorf commented on NPANDAY-529:
--------------------------------------------
Hi,
I will looking to this now
> create internalsVisibleTo parameter list for the compiler plugin
> ----------------------------------------------------------------
>
> Key: NPANDAY-529
> URL: https://issues.apache.org/jira/browse/NPANDAY-529
> Project: NPanday
> Issue Type: Bug
> Components: Maven Plugins
> Affects Versions: 1.4-incubating
> Reporter: Matthias Weßendorf
> Assignee: Matthias Weßendorf
>
> Sometimes it is needed to "expose" internal interfaces (for mocking/testing)
> NMock is not allowing to create mocks out of internal interfaces:
> In order archive it, we need to have the following on the AssemblyInfo.cs file
> {code}
> [assembly: InternalsVisibleTo("Mocks")]
> [assembly: InternalsVisibleTo("MockObjects")]
> {code}
> However, since this is not always needed, it should be a parameter list in the pom.xml config section
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (NPANDAY-529) create internalsVisibleTo
parameter list for the compiler plugin
Posted by "Matthias Weßendorf (Commented JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/NPANDAY-529?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13183260#comment-13183260 ]
Matthias Weßendorf commented on NPANDAY-529:
--------------------------------------------
the following configuration:
{code}
<assemblyAttributes>
<InternalsVisibleTo>BLAH;FOOP;Mocks;MockObjects</InternalsVisibleTo>
<SomethingElse>Howdy</SomethingElse>
</assemblyAttributes>
{code}
results in the snippet from an assemblyInfo.cs:
{code}
...
[assembly: InternalsVisibleTo("BLAH")]
[assembly: InternalsVisibleTo("FOOP")]
[assembly: InternalsVisibleTo("Mocks")]
[assembly: InternalsVisibleTo("MockObjects")]
[assembly: SomethingElse("Howdy")]
...
{code}
> create internalsVisibleTo parameter list for the compiler plugin
> ----------------------------------------------------------------
>
> Key: NPANDAY-529
> URL: https://issues.apache.org/jira/browse/NPANDAY-529
> Project: NPanday
> Issue Type: Bug
> Components: Maven Plugins
> Affects Versions: 1.4-incubating
> Reporter: Matthias Weßendorf
> Assignee: Matthias Weßendorf
>
> Sometimes it is needed to "expose" internal interfaces (for mocking/testing)
> NMock is not allowing to create mocks out of internal interfaces:
> In order archive it, we need to have the following on the AssemblyInfo.cs file
> {code}
> [assembly: InternalsVisibleTo("Mocks")]
> [assembly: InternalsVisibleTo("MockObjects")]
> {code}
> However, since this is not always needed, it should be a parameter list in the pom.xml config section
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (NPANDAY-529) create internalsVisibleTo
parameter list for the compiler plugin
Posted by "Lars Corneliussen (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/NPANDAY-529?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13183289#comment-13183289 ]
Lars Corneliussen commented on NPANDAY-529:
-------------------------------------------
I'm not sure how helpful that is. [assembly: *] can be i whatever file; you can just add a file "InternalsVisibleTo.cs" and place them there...
Thing is, your solution is generic, but very limitted; what with multiple parameters? bool/int/Enum-type parameters?
> create internalsVisibleTo parameter list for the compiler plugin
> ----------------------------------------------------------------
>
> Key: NPANDAY-529
> URL: https://issues.apache.org/jira/browse/NPANDAY-529
> Project: NPanday
> Issue Type: Bug
> Components: Maven Plugins
> Affects Versions: 1.4-incubating
> Reporter: Matthias Weßendorf
> Assignee: Matthias Weßendorf
> Attachments: NPANDAY-529, NPANDAY-529_appenedALL.patch
>
>
> Sometimes it is needed to "expose" internal interfaces (for mocking/testing)
> NMock is not allowing to create mocks out of internal interfaces:
> In order archive it, we need to have the following on the AssemblyInfo.cs file
> {code}
> [assembly: InternalsVisibleTo("Mocks")]
> [assembly: InternalsVisibleTo("MockObjects")]
> {code}
> However, since this is not always needed, it should be a parameter list in the pom.xml config section
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira