File tree Expand file tree Collapse file tree
dspace-api/src/main/java/org/dspace/metrics
dspace-server-webapp/src/test/java/org/dspace/app/rest Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3030import org .dspace .authorize .AuthorizeException ;
3131import org .dspace .core .Constants ;
3232import org .dspace .core .Context ;
33- import org .dspace .core .Context .Mode ;
3433import org .dspace .discovery .IndexingService ;
3534import org .dspace .discovery .SearchService ;
3635import org .dspace .eperson .EPerson ;
Original file line number Diff line number Diff line change @@ -517,7 +517,7 @@ public void findLinkedEntitiesMetricsTest() throws Exception {
517517 .withMetricType ("wosCitation" )
518518 // without a metric count "null"
519519 .isLast (true ).build ();
520-
520+ context . commit ();
521521 context .restoreAuthSystemState ();
522522
523523 String [] args = new String []{"update-metrics-in-solr" };
@@ -612,6 +612,7 @@ public void findLinkedEntitiesMetricsAndEmbeddedViewAndDownloadsMetricsTest() th
612612 .withMetricType ("wosCitation" )
613613 // without a metric count "null"
614614 .isLast (true ).build ();
615+ context .commit ();
615616 context .restoreAuthSystemState ();
616617 //save all metrics on solr search core
617618 String [] args = new String []{"update-metrics-in-solr" };
@@ -702,6 +703,7 @@ public void findLinkedEntitiesMetricsWithViewAndDownloadsMetricsTest() throws Ex
702703 .withRank (30.0 )
703704 .isLast (true ).build ();
704705 context .restoreAuthSystemState ();
706+ context .commit ();
705707 //save all metrics on solr search core
706708 String [] args = new String []{"update-metrics-in-solr" };
707709 TestDSpaceRunnableHandler handler = new TestDSpaceRunnableHandler ();
You can’t perform that action at this time.
0 commit comments