Re: assertThrows(myObject).methodCall()

David Saff <[email protected]> Thu, 14 Jul 2011 10:52:40 -0500
Newsgroups gmane.comp.java.junit.devel
Message-ID <CACj8BuPOmyHWpRCL3wyrZdGxjbGjCzDMiCCeMVHVTPXGMOyE0g@mail.gmail.com>
Actually, junit.contrib will have the Apache license, so that won't be
a problem.  It may be a problem if we ever wanted to "promote" any of
the code into JUnit core, but the odds are we wouldn't, with the
external dependency, anyway.  Thanks,

   David

On Tue, Jul 12, 2011 at 1:50 AM, Thomas Mueller
<[email protected]> wrote:
> Hi,
>
> I started writing the class proxy generator. So far my code writes a
> <ClassName>Proxy.java file, which is then compiled (and loaded using a
> custom classloader). The source code detour works well and is simple
> (240 lines, http://code.google.com/p/h2database/source/browse/trunk/h2/src/test/org/h2/test/utils/ProxyCodeGenerator.java),
> but obviously requires a Java compiler (either the JDK, or the Eclipse
> compiler; by the way Javac 1.5 requires "method(..) throws
> *RuntimeException*" which is funny). The next step is to generate the
> bytecode directly.
>
> Would it be an option to re-use the Apache Harmony proxy generator
> source code? Not "as is", but as a starting point. JUnit is "Common
> Public License - v 1.0", is using the Apache license for this part an
> option? If not, I could implement the bytecode generator myself (from
> scratch), but that would be more work. Or I could search for another
> project with a better license.
>
> Regards,
> Thomas
>

------------------------------------------------------------------------------
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on "Lean Startup 
Secrets Revealed." This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev