Re: What version of JUnit, again?

From: Dave Cramer <pg(at)fastcrypt(dot)com>
To: David Ventimiglia <dventimi(at)gmail(dot)com>
Cc: List <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: What version of JUnit, again?
Date: 2014-08-04 00:07:37
Message-ID: CADK3HH+U4XOH2HuqLBtxk5Ji+J1QjrkHHiZrDM9+YA_A34Cuww@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Pretty sure I use 3.8.2

Can you provide me with the errors you are getting ?

Dave Cramer

dave.cramer(at)credativ(dot)ca
http://www.credativ.ca

On 3 August 2014 16:53, David Ventimiglia <dventimi(at)gmail(dot)com> wrote:

> Hi,
>
> I'm a little confused as to what version of JUnit I'm supposed to be using
> in order to build/test the Postgresql JDBC driver. This page says that
> "JUnit at least 3.7 is needed."
>
> http://jdbc.postgresql.org/development/development.html
>
> But, there's a big between JUnit 3.8 and earlier and JUnit 4. The former
> has components in packages junit.framework while the latter has components
> in org.junit and so test that directly import on or the other of those
> packages are sensitive to the version of JUnit you're using.
>
> An example of such a test is SingleCertValidatingFactoryTest.java in
> pgjdbc/org/postgresql/test/ssl directory (presumably other tests are like
> this).
>
> On the other hand, the pgjdbc Ant build.xml file specifies JUnit 3.8.2.:
>
> <artifact:dependencies pathId="dependency.classpath" useScope="test">
> <dependency groupId="junit" artifactId="junit" version="3.8.2"
> scope="test"/>
> </artifact:dependencies>
>
> Presumably, this is why running `ant test' in pgjdbc fails for me with
> compilation errors. I confess, I'm not an expert with Ant and Maven, so
> maybe I've done something wrong. But, exactly waht version of JUnit should
> I be using? Thanks!
>
> Best,
> David Ventimiglia
>

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message David Ventimiglia 2014-08-04 00:15:08 Re: What version of JUnit, again?
Previous Message David Ventimiglia 2014-08-03 20:53:15 What version of JUnit, again?