File tree Expand file tree Collapse file tree
src/test/java/org/scijava/table Expand file tree Collapse file tree Original file line number Diff line number Diff line change 100100 <license .copyrightOwners>Board of Regents of the University of
101101Wisconsin-Madison, and Friedrich Miescher Institute for Biomedical Research.</license .copyrightOwners>
102102
103+ <scijava-common .version>2.81.0</scijava-common .version>
104+
103105 <!-- NB: Deploy releases to the SciJava Maven repository. -->
104106 <releaseProfiles >deploy-to-scijava</releaseProfiles >
105107 </properties >
Original file line number Diff line number Diff line change 3030package org .scijava .table ;
3131
3232import org .scijava .io .AbstractIOPlugin ;
33- import org .scijava .io .IOPlugin ;
34- import org .scijava .plugin .Plugin ;
3533
3634@ SuppressWarnings ("rawtypes" )
37- @ Plugin (type = IOPlugin .class )
3835public class FakeTableIOPlugin extends AbstractIOPlugin <Table > {
3936
4037 @ Override
Original file line number Diff line number Diff line change 3939import org .junit .Before ;
4040import org .junit .Test ;
4141import org .scijava .Context ;
42+ import org .scijava .io .IOPlugin ;
43+ import org .scijava .plugin .PluginInfo ;
44+ import org .scijava .plugin .PluginService ;
4245import org .scijava .table .io .DefaultTableIOService ;
4346import org .scijava .table .io .TableIOService ;
4447
4548public class TableIOServiceTest {
4649
4750 private Context context ;
4851
52+ @ SuppressWarnings ("rawtypes" )
4953 @ Before
5054 public void setUp () {
5155 context = new Context ();
56+ PluginInfo <IOPlugin > info = PluginInfo .create (FakeTableIOPlugin .class ,
57+ IOPlugin .class );
58+ context .service (PluginService .class ).addPlugin (info );
5259 }
5360
5461 @ After
You can’t perform that action at this time.
0 commit comments