samples/livedb/test/org/apidesign/livedb/example/LiveDBTest.java
author Jaroslav Tulach <jtulach@netbeans.org>
Tue, 01 Jun 2010 12:08:47 +0200
changeset 355 d1e7424dc988
child 357 837370f791ba
permissions -rw-r--r--
Example of Annotation Processor that generates a db access class
jtulach@355
     1
/*
jtulach@355
     2
 * To change this template, choose Tools | Templates
jtulach@355
     3
 * and open the template in the editor.
jtulach@355
     4
 */
jtulach@355
     5
jtulach@355
     6
package org.apidesign.livedb.example;
jtulach@355
     7
jtulach@355
     8
import junit.framework.TestCase;
jtulach@355
     9
jtulach@355
    10
/**
jtulach@355
    11
 *
jtulach@355
    12
 * @author Jaroslav Tulach <jtulach@netbeans.org>
jtulach@355
    13
 */
jtulach@355
    14
public class LiveDBTest extends TestCase {
jtulach@355
    15
    
jtulach@355
    16
    public LiveDBTest(String testName) {
jtulach@355
    17
        super(testName);
jtulach@355
    18
    }
jtulach@355
    19
jtulach@355
    20
    public void testSomeMethod() {
jtulach@355
    21
        DBAccess db = new DBAccess();
jtulach@355
    22
        db.jarda = "Ahoj";
jtulach@355
    23
        assertEquals("Ahoj", db.jarda);
jtulach@355
    24
    }
jtulach@355
    25
jtulach@355
    26
}