Commit in hps-java/src on MAIN | |||
main/java/org/lcsim/hps/conditions/ConditionsRecord.java | +3 | -5 | 1.2 -> 1.3 |
/DatabaseConditionsReader.java | +5 | -1 | 1.15 -> 1.16 |
/AbstractConditionsLoader.java | -40 | 1.1 removed | |
/ConditionsLoader.java | -57 | 1.2 removed | |
main/java/org/lcsim/hps/conditions/ecal/EcalConditionsConverter.java | +73 | added 1.1 | |
/EcalConditionsLoader.java | -78 | 1.6 removed | |
main/java/org/lcsim/hps/conditions/svt/SvtConditionsConverter.java | +72 | added 1.1 | |
/SvtConditionsLoader.java | -79 | 1.8 removed | |
test/java/org/lcsim/hps/conditions/ecal/EcalConditionsConverterTest.java | +34 | added 1.1 | |
/EcalConditionsLoaderTest.java | -36 | 1.4 removed | |
test/java/org/lcsim/hps/conditions/svt/SvtConditionsConverterTest.java | +43 | added 1.1 | |
/SvtConditionsLoaderTest.java | -43 | 1.4 removed | |
+230 | -339 |
remove ConditionsLoaders and use standard converter classes instead
diff -u -r1.2 -r1.3 --- ConditionsRecord.java 4 Oct 2013 06:02:19 -0000 1.2 +++ ConditionsRecord.java 9 Oct 2013 21:00:29 -0000 1.3 @@ -1,23 +1,21 @@
package org.lcsim.hps.conditions;
-import java.io.Serializable;
import java.sql.Blob; import java.sql.Connection; import java.sql.ResultSet; import java.sql.SQLException;
-import java.sql.Statement;
import java.util.Date; import org.lcsim.conditions.CachedConditions; import org.lcsim.conditions.ConditionsManager; /**
- * This class represents a single record from the primary conditions data table - * that defines validity for a conditions set.
+ * This class represents a single record from the primary conditions data table, + * which defines the run validity range for a specific conditions set.
* * @author Jeremy McCormick <[log in to unmask]> */
-public class ConditionsRecord implements Serializable {
+public class ConditionsRecord {
int id; int runStart;
diff -u -r1.15 -r1.16 --- DatabaseConditionsReader.java 4 Oct 2013 06:02:19 -0000 1.15 +++ DatabaseConditionsReader.java 9 Oct 2013 21:00:29 -0000 1.16 @@ -18,6 +18,7 @@
import org.lcsim.hps.conditions.svt.PulseParametersConverter; import org.lcsim.hps.conditions.svt.SvtCalibrationConverter; import org.lcsim.hps.conditions.svt.SvtChannelMapConverter;
+import org.lcsim.hps.conditions.svt.SvtConditionsConverter;
import org.lcsim.hps.conditions.svt.SvtGainConverter; /**
@@ -45,7 +46,7 @@
* </p> * * @author Jeremy McCormick <[log in to unmask]>
- * @version $Id: DatabaseConditionsReader.java,v 1.15 2013/10/04 06:02:19 jeremy Exp $
+ * @version $Id: DatabaseConditionsReader.java,v 1.16 2013/10/09 21:00:29 jeremy Exp $
*/ public class DatabaseConditionsReader extends ConditionsReader {
@@ -221,6 +222,9 @@
// SVT and ECAL bad channels. Same converter can be used. manager.registerConditionsConverter(new BadChannelConverter());
+ // SVT combined conditions. + manager.registerConditionsConverter(new SvtConditionsConverter()); +
// ECAL channel map. manager.registerConditionsConverter(new EcalChannelMapConverter());
diff -N AbstractConditionsLoader.java --- AbstractConditionsLoader.java 4 Oct 2013 06:02:19 -0000 1.1 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,40 +0,0 @@
-package org.lcsim.hps.conditions; - -import org.lcsim.conditions.ConditionsManager; - -/** - * This is an abstract class for conditions data loaders. - * Users should call {@link #load()} to have the loader - * create local objects from conditions data in the database. - * The interface for getting back the data is (for now) - * defined by each sub-class. - * - * @author Jeremy McCormick <[log in to unmask]> - * - */ -public abstract class AbstractConditionsLoader { - - /** The current conditions manager. */ - protected ConditionsManager manager = null; - - /** - * Class constructor. - * @param manager The current conditions manager. - */ - public AbstractConditionsLoader(ConditionsManager manager) { - this.manager = manager; - } - - /** - * Load conditions. - */ - public abstract void load(); - - /** - * Setup required components before load is called. - * This is optionally implemented by child classes - * and is not called automatically. - */ - public void setup() { - } -}
\ No newline at end of file
diff -N ConditionsLoader.java --- ConditionsLoader.java 4 Oct 2013 06:02:19 -0000 1.2 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,57 +0,0 @@
-package org.lcsim.hps.conditions; - -import org.lcsim.hps.conditions.ecal.EcalConditions; -import org.lcsim.hps.conditions.ecal.EcalConditionsLoader; -import org.lcsim.hps.conditions.svt.SvtConditions; -import org.lcsim.hps.conditions.svt.SvtConditionsLoader; -import org.lcsim.conditions.ConditionsManager; - -/** - * This class loads both SVT and ECAL conditions. - * @author Jeremy McCormick <[log in to unmask]> - */ -public class ConditionsLoader extends AbstractConditionsLoader { - - SvtConditions svtConditions = null; - EcalConditions ecalConditions = null; - - /** - * Class constructor. - * @param manager The current conditions manager. - */ - ConditionsLoader(ConditionsManager manager) { - super(manager); - } - - /** - * Load the conditions. - */ - public void load() { - - // Load SVT conditions. - SvtConditionsLoader loaderSvt = new SvtConditionsLoader(manager); - loaderSvt.load(); - svtConditions = loaderSvt.getSvtConditions(); - - // Load ECAL conditions. - EcalConditionsLoader loaderEcal = new EcalConditionsLoader(manager); - loaderEcal.load(); - ecalConditions = loaderEcal.getEcalConditions(); - } - - /** - * Get the loaded SvtConditions. - * @return The SVT conditions or null if not loaded. - */ - public SvtConditions getSvtConditions() { - return svtConditions; - } - - /** - * Get the loaded EcalConditions. - * @return The ECAL conditions or null if not loaded. - */ - public EcalConditions getEcalConditions() { - return ecalConditions; - } -}
diff -N EcalConditionsConverter.java --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ EcalConditionsConverter.java 9 Oct 2013 21:00:30 -0000 1.1 @@ -0,0 +1,73 @@
+package org.lcsim.hps.conditions.ecal; + +import static org.lcsim.hps.conditions.ConditionsConstants.ECAL_BAD_CHANNELS; +import static org.lcsim.hps.conditions.ConditionsConstants.ECAL_CALIBRATIONS; +import static org.lcsim.hps.conditions.ConditionsConstants.ECAL_CHANNELS; +import static org.lcsim.hps.conditions.ConditionsConstants.ECAL_GAINS; + +import java.util.Map.Entry; + +import org.lcsim.conditions.ConditionsManager; +import org.lcsim.hps.conditions.ChannelCollection; +import org.lcsim.hps.conditions.DatabaseConditionsConverter; + +/** + * This class loads all ecal conditions into an {@link EcalConditions} object + * from the database, based on the current run number known by the conditions manager. + * @author Jeremy McCormick <[log in to unmask]> + */ +public class EcalConditionsConverter extends DatabaseConditionsConverter<EcalConditions> { + + /** + * Load ECal conditions into the <code>conditions</code> instance variable. + */ + public EcalConditions getData(ConditionsManager manager, String name) { + + // Create new, empty conditions object to fill with data. + EcalConditions conditions = new EcalConditions(); + + // Get the channel information from the database. + EcalChannelMap channelMap = manager.getCachedConditions(EcalChannelMap.class, ECAL_CHANNELS).getCachedData(); + + // Set the channel map. + conditions.setChannelMap(channelMap); + + // Add gains. + EcalGainCollection gains = manager.getCachedConditions(EcalGainCollection.class, ECAL_GAINS).getCachedData(); + for (Entry<Integer,EcalGain> entry : gains.entrySet()) { + EcalChannel channel = channelMap.get(entry.getKey()); + EcalGain gain = entry.getValue(); + conditions.getChannelConstants(channel).setGain(gain); + } + + // Add bad channels. + ChannelCollection badChannels = manager.getCachedConditions( + ChannelCollection.class, ECAL_BAD_CHANNELS).getCachedData(); + for (Integer badChannel : badChannels) { + EcalChannel channel = channelMap.get(badChannel); + conditions.getChannelConstants(channel).setBadChannel(true); + } + + // Add calibrations including pedestal and noise values. + EcalCalibrationCollection calibrations = + manager.getCachedConditions(EcalCalibrationCollection.class, ECAL_CALIBRATIONS).getCachedData(); + for (Entry<Integer,EcalCalibration> entry : calibrations.entrySet()) { + EcalChannel channel = channelMap.get(entry.getKey()); + EcalCalibration calibration = entry.getValue(); + conditions.getChannelConstants(channel).setCalibration(calibration); + } + + // Return the conditions object to caller. + return conditions; + } + + /** + * Get the type handled by this converter. + * @return The type handled by this converter. + */ + public Class<EcalConditions> getType() { + return EcalConditions.class; + } + + +}
diff -N EcalConditionsLoader.java --- EcalConditionsLoader.java 4 Oct 2013 06:02:19 -0000 1.6 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,78 +0,0 @@
-package org.lcsim.hps.conditions.ecal; - -import static org.lcsim.hps.conditions.ConditionsConstants.ECAL_BAD_CHANNELS; -import static org.lcsim.hps.conditions.ConditionsConstants.ECAL_CALIBRATIONS; -import static org.lcsim.hps.conditions.ConditionsConstants.ECAL_CHANNELS; -import static org.lcsim.hps.conditions.ConditionsConstants.ECAL_GAINS; - -import java.util.Map.Entry; - -import org.lcsim.conditions.ConditionsManager; -import org.lcsim.hps.conditions.AbstractConditionsLoader; -import org.lcsim.hps.conditions.ChannelCollection; - -/** - * This class loads all ecal conditions into an {@link EcalConditions} object. - * @author Jeremy McCormick <[log in to unmask]> - */ -public class EcalConditionsLoader extends AbstractConditionsLoader { - - /** The conditions object that will be constructed. */ - private EcalConditions conditions = null; - - /** - * Class constructor. - * @param manager The current conditions manager. - */ - public EcalConditionsLoader(ConditionsManager manager) { - super(manager); - } - - /** - * Load ECal conditions into the <code>conditions</code> instance variable. - */ - public void load() { - - // Reset conditions object. - conditions = new EcalConditions(); - - // Get the channel information from the database. - EcalChannelMap channelMap = manager.getCachedConditions(EcalChannelMap.class, ECAL_CHANNELS).getCachedData(); - - // Set the channel map. - conditions.setChannelMap(channelMap); - - // Add gains. - EcalGainCollection gains = manager.getCachedConditions(EcalGainCollection.class, ECAL_GAINS).getCachedData(); - for (Entry<Integer,EcalGain> entry : gains.entrySet()) { - EcalChannel channel = channelMap.get(entry.getKey()); - EcalGain gain = entry.getValue(); - conditions.getChannelConstants(channel).setGain(gain); - } - - // Add bad channels. - ChannelCollection badChannels = manager.getCachedConditions( - ChannelCollection.class, ECAL_BAD_CHANNELS).getCachedData(); - for (Integer badChannel : badChannels) { - EcalChannel channel = channelMap.get(badChannel); - conditions.getChannelConstants(channel).setBadChannel(true); - } - - // Add calibrations including pedestal and noise values. - EcalCalibrationCollection calibrations = - manager.getCachedConditions(EcalCalibrationCollection.class, ECAL_CALIBRATIONS).getCachedData(); - for (Entry<Integer,EcalCalibration> entry : calibrations.entrySet()) { - EcalChannel channel = channelMap.get(entry.getKey()); - EcalCalibration calibration = entry.getValue(); - conditions.getChannelConstants(channel).setCalibration(calibration); - } - } - - /** - * Get the ecal conditions object that was loaded. - * @return The ecal conditions object or null if not loaded yet. - */ - public EcalConditions getEcalConditions() { - return conditions; - } -}
diff -N SvtConditionsConverter.java --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ SvtConditionsConverter.java 9 Oct 2013 21:00:30 -0000 1.1 @@ -0,0 +1,72 @@
+package org.lcsim.hps.conditions.svt; + +import static org.lcsim.hps.conditions.ConditionsConstants.SVT_BAD_CHANNELS; +import static org.lcsim.hps.conditions.ConditionsConstants.SVT_CALIBRATIONS; +import static org.lcsim.hps.conditions.ConditionsConstants.SVT_CHANNELS; +import static org.lcsim.hps.conditions.ConditionsConstants.SVT_GAINS; +import static org.lcsim.hps.conditions.ConditionsConstants.SVT_PULSE_PARAMETERS; + +import java.util.Map.Entry; + +import org.lcsim.conditions.ConditionsManager; +import org.lcsim.hps.conditions.ChannelCollection; +import org.lcsim.hps.conditions.DatabaseConditionsConverter; + +/** + * This class creates an {@link SvtConditions} object from the database, + * based on the current run number known by the conditions manager. + */ +public class SvtConditionsConverter extends DatabaseConditionsConverter<SvtConditions> { + + /** + * Load and return the composite SVT conditions object. + * @param manager The current conditions manager. + * @param name The conditions key, which is ignored for now. + */ + public SvtConditions getData(ConditionsManager manager, String name) { + + // Get the SVT channel map. + SvtChannelMap channels = manager.getCachedConditions(SvtChannelMap.class, SVT_CHANNELS).getCachedData(); + + // Reset the conditions object. + SvtConditions conditions = new SvtConditions(channels); + + // Add calibrations by channel. + SvtCalibrationCollection calibrations = manager.getCachedConditions(SvtCalibrationCollection.class, SVT_CALIBRATIONS).getCachedData(); + for (Entry<Integer,SvtCalibration> entry : calibrations.entrySet()) { + SvtChannel channel = conditions.getChannelMap().get(entry.getKey()); + conditions.getChannelConstants(channel).setCalibration(entry.getValue()); + } + + // Add pulse parameters by channel. + PulseParametersCollection pulseParameters = manager.getCachedConditions(PulseParametersCollection.class, SVT_PULSE_PARAMETERS).getCachedData(); + for (Entry<Integer,PulseParameters> entry : pulseParameters.entrySet()) { + SvtChannel channel = conditions.getChannelMap().get(entry.getKey()); + conditions.getChannelConstants(channel).setPulseParameters(entry.getValue()); + } + + // Add bad channels. + ChannelCollection badChannels = manager.getCachedConditions(ChannelCollection.class, SVT_BAD_CHANNELS).getCachedData(); + for (Integer badChannel : badChannels) { + SvtChannel channel = conditions.getChannelMap().get(badChannel); + conditions.getChannelConstants(channel).setBadChannel(true); + } + + // Add gains by channel. + SvtGainCollection gains = manager.getCachedConditions(SvtGainCollection.class, SVT_GAINS).getCachedData(); + for (Entry<Integer,SvtGain> entry : gains.entrySet()) { + SvtChannel channel = conditions.getChannelMap().get(entry.getKey()); + conditions.getChannelConstants(channel).setGain(entry.getValue()); + } + + return conditions; + } + + /** + * Get the type handled by this converter. + * @return The type handled by this converter. + */ + public Class<SvtConditions> getType() { + return SvtConditions.class; + } +}
diff -N SvtConditionsLoader.java --- SvtConditionsLoader.java 4 Oct 2013 06:02:19 -0000 1.8 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,79 +0,0 @@
-package org.lcsim.hps.conditions.svt; - -import static org.lcsim.hps.conditions.ConditionsConstants.SVT_BAD_CHANNELS; -import static org.lcsim.hps.conditions.ConditionsConstants.SVT_CALIBRATIONS; -import static org.lcsim.hps.conditions.ConditionsConstants.SVT_CHANNELS; -import static org.lcsim.hps.conditions.ConditionsConstants.SVT_GAINS; -import static org.lcsim.hps.conditions.ConditionsConstants.SVT_PULSE_PARAMETERS; - -import java.util.Map.Entry; - -import org.lcsim.conditions.ConditionsManager; -import org.lcsim.hps.conditions.AbstractConditionsLoader; -import org.lcsim.hps.conditions.ChannelCollection; - -/** - * This class creates an {@link SvtConditions} object from the conditions database, - * based on the current run number known by the conditions manager. - */ -public class SvtConditionsLoader extends AbstractConditionsLoader { - - // Object to be returned to caller. - private SvtConditions conditions = null; - - /** - * Class constructor. - * @param manager The current conditions manager. - */ - public SvtConditionsLoader(ConditionsManager manager) { - super(manager); - } - - /** - * Load the SVT conditions. - */ - public void load() { - - // Get the SVT channel map. - SvtChannelMap channels = manager.getCachedConditions(SvtChannelMap.class, SVT_CHANNELS).getCachedData(); - - // Reset the conditions object. - conditions = new SvtConditions(channels); - - // Add calibrations by channel. - SvtCalibrationCollection calibrations = manager.getCachedConditions(SvtCalibrationCollection.class, SVT_CALIBRATIONS).getCachedData(); - for (Entry<Integer,SvtCalibration> entry : calibrations.entrySet()) { - SvtChannel channel = conditions.getChannelMap().get(entry.getKey()); - conditions.getChannelConstants(channel).setCalibration(entry.getValue()); - } - - // Add pulse parameters by channel. - PulseParametersCollection pulseParameters = manager.getCachedConditions(PulseParametersCollection.class, SVT_PULSE_PARAMETERS).getCachedData(); - for (Entry<Integer,PulseParameters> entry : pulseParameters.entrySet()) { - SvtChannel channel = conditions.getChannelMap().get(entry.getKey()); - conditions.getChannelConstants(channel).setPulseParameters(entry.getValue()); - } - - // Add bad channels. - ChannelCollection badChannels = manager.getCachedConditions(ChannelCollection.class, SVT_BAD_CHANNELS).getCachedData(); - for (Integer badChannel : badChannels) { - SvtChannel channel = conditions.getChannelMap().get(badChannel); - conditions.getChannelConstants(channel).setBadChannel(true); - } - - // Add gains by channel. - SvtGainCollection gains = manager.getCachedConditions(SvtGainCollection.class, SVT_GAINS).getCachedData(); - for (Entry<Integer,SvtGain> entry : gains.entrySet()) { - SvtChannel channel = conditions.getChannelMap().get(entry.getKey()); - conditions.getChannelConstants(channel).setGain(entry.getValue()); - } - } - - /** - * Get the SVT conditions. - * @return The SVT conditions or null if not loaded yet. - */ - public SvtConditions getSvtConditions() { - return conditions; - } -}
diff -N EcalConditionsConverterTest.java --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ EcalConditionsConverterTest.java 9 Oct 2013 21:00:30 -0000 1.1 @@ -0,0 +1,34 @@
+package org.lcsim.hps.conditions.ecal; + +import junit.framework.TestCase; + +import org.lcsim.conditions.ConditionsManager; +import org.lcsim.conditions.ConditionsManager.ConditionsNotFoundException; +import org.lcsim.util.loop.LCSimConditionsManagerImplementation; + +public class EcalConditionsConverterTest extends TestCase { + + /** An example detector from hps-detectors. */ + private static final String detectorName = "HPS-conditions-test"; + + /** The run number of the conditions set in the database. */ + private static final int runNumber = 777; + + public void test() { + + // Setup the conditions manager. + ConditionsManager.setDefaultConditionsManager(new LCSimConditionsManagerImplementation()); + ConditionsManager manager = ConditionsManager.defaultInstance(); + try { + manager.setDetector(detectorName, runNumber); + } catch (ConditionsNotFoundException e) { + throw new RuntimeException(e); + } + + // Test that the manager gets ECAL conditions. + EcalConditions conditions = manager.getCachedConditions(EcalConditions.class, null).getCachedData(); + assertNotNull(conditions); + System.out.println("Printing ECAL conditions ..."); + System.out.println(conditions); + } +}
\ No newline at end of file
diff -N EcalConditionsLoaderTest.java --- EcalConditionsLoaderTest.java 4 Oct 2013 06:02:19 -0000 1.4 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,36 +0,0 @@
-package org.lcsim.hps.conditions.ecal; - -import junit.framework.TestCase; - -import org.lcsim.conditions.ConditionsManager; -import org.lcsim.conditions.ConditionsManager.ConditionsNotFoundException; -import org.lcsim.util.loop.LCSimConditionsManagerImplementation; - -public class EcalConditionsLoaderTest extends TestCase { - - /** An example detector from hps-detectors. */ - private static final String detectorName = "HPS-conditions-test"; - - /** The run number of the conditions set in the database. */ - private static final int runNumber = 777; - - public void test() { - - // Setup the conditions manager. - ConditionsManager.setDefaultConditionsManager(new LCSimConditionsManagerImplementation()); - ConditionsManager manager = ConditionsManager.defaultInstance(); - try { - manager.setDetector(detectorName, runNumber); - } catch (ConditionsNotFoundException e) { - throw new RuntimeException(e); - } - - // Test that the loader returns valid conditions. - EcalConditionsLoader loader = new EcalConditionsLoader(manager); - loader.load(); - EcalConditions conditions = loader.getEcalConditions(); - assertNotNull(conditions); - System.out.println(conditions); - System.out.println("ECal conditions loaded successfully."); - } -}
diff -N SvtConditionsConverterTest.java --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ SvtConditionsConverterTest.java 9 Oct 2013 21:00:30 -0000 1.1 @@ -0,0 +1,43 @@
+package org.lcsim.hps.conditions.svt; + +import junit.framework.TestCase; + +import org.lcsim.conditions.ConditionsManager; +import org.lcsim.conditions.ConditionsManager.ConditionsNotFoundException; +import org.lcsim.util.loop.LCSimConditionsManagerImplementation; + +/** + * This class loads and prints {@link SvtConditions}, which internally uses the + * {@link SvtConditionsConverter}. + * + * @author Jeremy McCormick <[log in to unmask]> + */ +public class SvtConditionsConverterTest extends TestCase { + + /** An example detector from hps-detectors. */ + private static final String detectorName = "HPS-conditions-test"; + + /** The run number of the conditions set in the database. */ + private static final int runNumber = 777; + + /** + * Load and print all SVT conditions for a certain run number. + */ + public void test() { + + // Setup the conditions manager. + ConditionsManager.setDefaultConditionsManager(new LCSimConditionsManagerImplementation()); + ConditionsManager manager = ConditionsManager.defaultInstance(); + try { + manager.setDetector(detectorName, runNumber); + } catch (ConditionsNotFoundException e) { + throw new RuntimeException(e); + } + + // Get conditions and print. + SvtConditions svt = manager.getCachedConditions(SvtConditions.class, null).getCachedData(); + assertNotNull(svt); + System.out.println("Printing SvtConditions ..."); + System.out.println(svt); + } +}
diff -N SvtConditionsLoaderTest.java --- SvtConditionsLoaderTest.java 4 Oct 2013 06:02:19 -0000 1.4 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,43 +0,0 @@
-package org.lcsim.hps.conditions.svt; - -import junit.framework.TestCase; - -import org.lcsim.conditions.ConditionsManager; -import org.lcsim.conditions.ConditionsManager.ConditionsNotFoundException; -import org.lcsim.util.loop.LCSimConditionsManagerImplementation; - -/** - * This class tests that <code>SvtConditions</code> gets valid conditions from the database. - * - * @author Jeremy McCormick <[log in to unmask]> - */ -public class SvtConditionsLoaderTest extends TestCase { - - /** An example detector from hps-detectors. */ - private static final String detectorName = "HPS-conditions-test"; - - /** The run number of the conditions set in the database. */ - private static final int runNumber = 777; - - /** - * Load and check SVT channel conditions. - */ - public void test() { - - // Setup the conditions manager. - ConditionsManager.setDefaultConditionsManager(new LCSimConditionsManagerImplementation()); - ConditionsManager manager = ConditionsManager.defaultInstance(); - try { - manager.setDetector(detectorName, runNumber); - } catch (ConditionsNotFoundException e) { - throw new RuntimeException(e); - } - - // Test that the loader returns valid conditions. - SvtConditionsLoader loader = new SvtConditionsLoader(manager); - loader.load(); - SvtConditions conditions = loader.getSvtConditions(); - assertNotNull(conditions); - System.out.println(conditions); - } -}
Use REPLY-ALL to reply to list
To unsubscribe from the LCD-CVS list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=LCD-CVS&A=1