File tree Expand file tree Collapse file tree 3 files changed +2
-12
lines changed
orm/src/test/java/org/hibernate/search/test/worker Expand file tree Collapse file tree 3 files changed +2
-12
lines changed Original file line number Diff line number Diff line change 23
23
*/
24
24
package org .hibernate .search .test .worker ;
25
25
26
- import org .apache .lucene .analysis .StopAnalyzer ;
27
26
import org .jboss .byteman .contrib .bmunit .BMRule ;
28
27
import org .jboss .byteman .contrib .bmunit .BMUnitRunner ;
29
28
import org .junit .Test ;
30
29
import org .junit .runner .RunWith ;
31
30
32
31
import org .hibernate .cfg .Configuration ;
33
- import org .hibernate .search .Environment ;
34
32
35
33
/**
36
34
* @author Emmanuel Bernard
@@ -51,8 +49,6 @@ public void testConcurrency() throws Exception {
51
49
@ Override
52
50
protected void configure (Configuration cfg ) {
53
51
super .configure ( cfg );
54
- cfg .setProperty ( "hibernate.search.default.directory_provider" , "ram" );
55
- cfg .setProperty ( Environment .ANALYZER_CLASS , StopAnalyzer .class .getName () );
56
52
cfg .setProperty ( "hibernate.search.worker.scope" , "transaction" );
57
53
cfg .setProperty ( "hibernate.search.default.worker.execution" , "async" );
58
54
cfg .setProperty ( "hibernate.search.default.worker.thread_pool.size" , "1" );
Original file line number Diff line number Diff line change 25
25
26
26
import org .hibernate .cfg .Configuration ;
27
27
import org .hibernate .search .Environment ;
28
- import org .apache .lucene .analysis .StopAnalyzer ;
29
28
30
29
/**
31
30
* @author Emmanuel Bernard
@@ -34,9 +33,7 @@ public class SyncWorkerTest extends WorkerTestCase {
34
33
35
34
protected void configure (Configuration cfg ) {
36
35
super .configure ( cfg );
37
- cfg .setProperty ( "hibernate.search.default.directory_provider" , "ram" );
38
- cfg .setProperty ( Environment .ANALYZER_CLASS , StopAnalyzer .class .getName () );
39
36
cfg .setProperty ( Environment .WORKER_SCOPE , "transaction" );
40
- cfg .setProperty ( Environment . WORKER_PREFIX , "sync" );
37
+ cfg .setProperty ( "hibernate.search.default.worker.execution" , "sync" );
41
38
}
42
39
}
Original file line number Diff line number Diff line change 23
23
*/
24
24
package org .hibernate .search .test .worker ;
25
25
26
- import java .io .File ;
27
26
import java .util .concurrent .ExecutorService ;
28
27
import java .util .concurrent .Executors ;
29
28
import java .util .concurrent .TimeUnit ;
@@ -217,9 +216,7 @@ public void run() {
217
216
218
217
protected void configure (org .hibernate .cfg .Configuration cfg ) {
219
218
super .configure ( cfg );
220
- File sub = getBaseIndexDir ();
221
- cfg .setProperty ( "hibernate.search.default.indexBase" , sub .getAbsolutePath () );
222
- cfg .setProperty ( "hibernate.search.Clock.directory_provider" , "filesystem" );
219
+ cfg .setProperty ( "hibernate.search.default.directory_provider" , "ram" );
223
220
cfg .setProperty ( Environment .ANALYZER_CLASS , StopAnalyzer .class .getName () );
224
221
cfg .setProperty ( "hibernate.show_sql" , "false" );
225
222
cfg .setProperty ( "hibernate.format_sql" , "false" );
You can’t perform that action at this time.
0 commit comments