Results 1 to 2 of 2
  1. #1
    lo2 is offline Member
    Join Date
    Nov 2012
    Rep Power

    Default Getting this war.: Resource Path Location Type No connection specified for project.

    Hi there I have tried to do a test using the JUnit, which as far as I understand is Java testing unit. I have followed a video tutorial, so I am a bit in the dark as to why it does not work as it should, I have tested my methods and constructor via assertEqual.

    The warning I get is as follows:

    Description Resource Path Location Type
    No connection specified for project. No database-specific validation will be performed. TotalBeginner JPA Problem

    Here is the source code:

    Java Code:
    package org.totalbeginnger.tutorial;
    import static org.junit.Assert.*;
    public class PersonTest {
    	// assertEquals is a static method, therefore one does not have write
    	// method. before it
    	public void testPerson() {
    		Person p1 = new Person();
    		assertEquals("unkown name", p1.getName());
    		assertEquals(3, p1.getMaxiumumBooks());
    	public void testSetName() {
    		Person p2 = new Person();
    		assertEquals("Freddy", p2.getName());
    	public void testSetMaxiumumBooks() {
    		Person p3 = new Person();
    		assertEquals(10, p3.getMaxiumumBooks());
    I really hope you can help me out! :)
    Last edited by lo2; 11-24-2012 at 05:41 PM.

  2. #2
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Rep Power

    Default Re: Getting this war.: Resource Path Location Type No connection specified for projec

    What's Person?
    Looks like it's a JPA entity?
    Please do not ask for code as refusal often offends.

    ** This space for rent **

Similar Threads

  1. Replies: 3
    Last Post: 10-03-2012, 10:47 AM
  2. Replies: 0
    Last Post: 05-01-2011, 08:50 PM
  3. How to use resource (.res) file in your java me project
    By Basit781 in forum CLDC and MIDP
    Replies: 3
    Last Post: 11-24-2010, 05:58 AM
  4. [SOLVED] SVN project's build path problem
    By er_zhong in forum Eclipse
    Replies: 0
    Last Post: 04-14-2009, 05:03 PM
  5. Replies: 1
    Last Post: 04-08-2009, 10:31 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts