mirror of
https://github.com/querydsl/querydsl.git
synced 2026-07-03 21:07:49 +08:00
small renamings
This commit is contained in:
parent
9db19e3bba
commit
c24d22ba57
@ -1,14 +1,16 @@
|
||||
package com.mysema.query.lucene.session.impl;
|
||||
|
||||
/**
|
||||
* Helps to make sure the resources are released as they should.
|
||||
* Helps to make sure the resources are released as they should be.
|
||||
*
|
||||
* @author laim
|
||||
*/
|
||||
public interface ReleaseListener {
|
||||
|
||||
void lease(LuceneSearcher searcher);
|
||||
|
||||
void release(LuceneSearcher searcher);
|
||||
|
||||
void close(LuceneWriterImpl writer);
|
||||
|
||||
}
|
||||
|
||||
@ -47,7 +47,7 @@ public class LuceneSessionFactoryTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testBasicQuery() {
|
||||
public void BasicQuery() {
|
||||
|
||||
addData(sessionFactory);
|
||||
|
||||
@ -70,7 +70,7 @@ public class LuceneSessionFactoryTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testFlush() {
|
||||
public void Flush() {
|
||||
LuceneSession session = sessionFactory.openSession(false);
|
||||
createDocuments(session);
|
||||
session.flush();
|
||||
@ -99,46 +99,46 @@ public class LuceneSessionFactoryTest {
|
||||
}
|
||||
|
||||
@Test(expected=SessionNotBoundException.class)
|
||||
public void testCurrentSession() {
|
||||
public void CurrentSession() {
|
||||
sessionFactory.getCurrentSession();
|
||||
}
|
||||
|
||||
@Test(expected = SessionReadOnlyException.class)
|
||||
public void testReadonly() {
|
||||
public void Readonly() {
|
||||
LuceneSession session = sessionFactory.openSession(true);
|
||||
session.beginOverwrite();
|
||||
}
|
||||
|
||||
@Test(expected = SessionClosedException.class)
|
||||
public void testSessionClosedCreate() {
|
||||
public void SessionClosedCreate() {
|
||||
LuceneSession session = sessionFactory.openSession(false);
|
||||
session.close();
|
||||
session.createQuery();
|
||||
}
|
||||
|
||||
@Test(expected = SessionClosedException.class)
|
||||
public void testSessionClosedAppend() {
|
||||
public void SessionClosedAppend() {
|
||||
LuceneSession session = sessionFactory.openSession(false);
|
||||
session.close();
|
||||
session.beginAppend();
|
||||
}
|
||||
|
||||
@Test(expected = SessionClosedException.class)
|
||||
public void testSessionClosedFlush() {
|
||||
public void SessionClosedFlush() {
|
||||
LuceneSession session = sessionFactory.openSession(false);
|
||||
session.close();
|
||||
session.flush();
|
||||
}
|
||||
|
||||
@Test(expected = SessionClosedException.class)
|
||||
public void testSessionClosedClosed() {
|
||||
public void SessionClosedClosed() {
|
||||
LuceneSession session = sessionFactory.openSession(false);
|
||||
session.close();
|
||||
session.close();
|
||||
}
|
||||
|
||||
@Test(expected = SessionClosedException.class)
|
||||
public void testSessionClosedOverwrite() {
|
||||
public void SessionClosedOverwrite() {
|
||||
LuceneSession session = sessionFactory.openSession(false);
|
||||
session.close();
|
||||
session.beginOverwrite();
|
||||
@ -180,7 +180,7 @@ public class LuceneSessionFactoryTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testResourcesAreReleased() throws IOException {
|
||||
public void ResourcesAreReleased() throws IOException {
|
||||
|
||||
ReleaseCounter counter = new ReleaseCounter();
|
||||
|
||||
|
||||
@ -40,29 +40,29 @@ public class LuceneTransactionalHandlerTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testEmpty() {
|
||||
public void Empty() {
|
||||
txTest.empty();
|
||||
assertEquals(1, txTest.count());
|
||||
}
|
||||
|
||||
@Test(expected = SessionNotBoundException.class)
|
||||
public void testNoAnnotation() {
|
||||
public void NoAnnotation() {
|
||||
txTest.noAnnotation();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testAnnotation() {
|
||||
public void Annotation() {
|
||||
txTest.annotation();
|
||||
assertEquals(1, txTest.count());
|
||||
}
|
||||
|
||||
@Test(expected = SessionReadOnlyException.class)
|
||||
public void testReadOnly() {
|
||||
public void ReadOnly() {
|
||||
txTest.readOnly();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testWriting() {
|
||||
public void Writing() {
|
||||
txTest.writing();
|
||||
|
||||
LuceneQuery q = sessionFactory.openSession(true).createQuery();
|
||||
@ -70,7 +70,7 @@ public class LuceneTransactionalHandlerTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testMultifactories() {
|
||||
public void Multifactories() {
|
||||
|
||||
LuceneSessionFactory sf1 = new LuceneSessionFactoryImpl(new RAMDirectory());
|
||||
LuceneSessionFactory sf2 = new LuceneSessionFactoryImpl(new RAMDirectory());
|
||||
|
||||
Loading…
Reference in New Issue
Block a user