@@ -0,0 +1,1303 @@
+package ru.r2cloud.satellite.decoder;%0A%0Aimport static org.junit.Assert.assertNotNull;%0A%0Aimport org.junit.Before;%0Aimport org.junit.Rule;%0Aimport org.junit.Test;%0Aimport org.junit.rules.TemporaryFolder;%0A%0Aimport ru.r2cloud.TestConfiguration;%0Aimport ru.r2cloud.model.Satellite;%0Aimport ru.r2cloud.model.Transmitter;%0Aimport ru.r2cloud.predict.PredictOreKit;%0Aimport ru.r2cloud.satellite.SatelliteDao;%0A%0Apublic class DecodersTest %7B%0A%0A%09@Rule%0A%09public TemporaryFolder tempFolder = new TemporaryFolder();%0A%0A%09private SatelliteDao dao;%0A%09private Decoders decoders;%0A%09private TestConfiguration config;%0A%0A%09@Test%0A%09public void testSatelliteHasDecoder() throws Exception %7B%0A%09%09for (Satellite cur : dao.findAll()) %7B%0A%09%09%09for (Transmitter curTransmitter : cur.getTransmitters()) %7B%0A%09%09%09%09assertNotNull(%22missing decoder for %22 + curTransmitter.getId(), decoders.findByTransmitter(curTransmitter));%0A%09%09%09%7D%0A%09%09%7D%0A%09%7D%0A%0A%09@Before%0A%09public void start() throws Exception %7B%0A%09%09config = new TestConfiguration(tempFolder);%0A%09%09config.setProperty(%22server.tmp.directory%22, tempFolder.getRoot().getAbsolutePath());%0A%09%09config.setProperty(%22satellites.meta.location%22, %22./src/main/resources/satellites.json%22);%0A%09%09config.update();%0A%09%09PredictOreKit predict = new PredictOreKit(config);%0A%09%09dao = new SatelliteDao(config);%0A%09%09decoders = new Decoders(predict, config, null);%0A%09%7D%0A%7D%0A

make sure statically configured satellites have decoders