diff --git a/dynawaltz-dsl/src/main/groovy/com/powsybl/dynawaltz/dsl/events/EventDisconnectionGroovyExtension.groovy b/dynawaltz-dsl/src/main/groovy/com/powsybl/dynawaltz/dsl/events/EventDisconnectionGroovyExtension.groovy index ac6567995..3cb073635 100644 --- a/dynawaltz-dsl/src/main/groovy/com/powsybl/dynawaltz/dsl/events/EventDisconnectionGroovyExtension.groovy +++ b/dynawaltz-dsl/src/main/groovy/com/powsybl/dynawaltz/dsl/events/EventDisconnectionGroovyExtension.groovy @@ -13,7 +13,7 @@ import com.powsybl.dynamicsimulation.groovy.EventModelGroovyExtension import com.powsybl.dynawaltz.dsl.AbstractPureDynamicGroovyExtension import com.powsybl.dynawaltz.dsl.DslEquipment import com.powsybl.dynawaltz.dsl.builders.AbstractEventModelBuilder -import com.powsybl.dynawaltz.models.events.AbstractEventModel +import com.powsybl.dynawaltz.models.events.AbstractEvent import com.powsybl.dynawaltz.models.events.EventHvdcDisconnection import com.powsybl.dynawaltz.models.events.EventQuadripoleDisconnection import com.powsybl.dynawaltz.models.events.EventInjectionDisconnection @@ -106,7 +106,7 @@ class EventDisconnectionGroovyExtension extends AbstractPureDynamicGroovyExtensi } @Override - AbstractEventModel build() { + AbstractEvent build() { if (isInstantiable()) { switch(disconnectionType) { case DisconnectionType.INJECTION : diff --git a/dynawaltz-dsl/src/test/java/com/powsybl/dynawaltz/dsl/EventModelsSupplierTest.java b/dynawaltz-dsl/src/test/java/com/powsybl/dynawaltz/dsl/EventModelsSupplierTest.java index 045a1942d..15820e0e7 100644 --- a/dynawaltz-dsl/src/test/java/com/powsybl/dynawaltz/dsl/EventModelsSupplierTest.java +++ b/dynawaltz-dsl/src/test/java/com/powsybl/dynawaltz/dsl/EventModelsSupplierTest.java @@ -36,7 +36,7 @@ class EventModelsSupplierTest extends AbstractModelSupplierTest { @ParameterizedTest(name = "{0}") @MethodSource("provideEventModelData") - void testEventModels(String groovyScriptName, Class modelClass, Network network, String equipmentStaticId, String dynamicId, String lib, double startTime) { + void testEventModels(String groovyScriptName, Class modelClass, Network network, String equipmentStaticId, String dynamicId, String lib, double startTime) { EventModelsSupplier supplier = new GroovyEventModelsSupplier(getResourceAsStream(groovyScriptName), EXTENSIONS); List eventModels = supplier.get(network); assertEquals(1, eventModels.size()); @@ -51,7 +51,7 @@ void testDslWarnings(String groovyScriptName, Network network) { assertTrue(supplier.get(network).isEmpty()); } - void assertEventModel(AbstractEventModel em, String dynamicId, String equipmentStaticId, String lib, double startTime) { + void assertEventModel(AbstractEvent em, String dynamicId, String equipmentStaticId, String lib, double startTime) { assertEquals(dynamicId, em.getDynamicModelId()); assertEquals(equipmentStaticId, em.getEquipment().getId()); assertEquals(dynamicId, em.getParameterSetId()); diff --git a/dynawaltz/src/main/java/com/powsybl/dynawaltz/models/buses/DefaultBusModel.java b/dynawaltz/src/main/java/com/powsybl/dynawaltz/models/buses/DefaultBus.java similarity index 90% rename from dynawaltz/src/main/java/com/powsybl/dynawaltz/models/buses/DefaultBusModel.java rename to dynawaltz/src/main/java/com/powsybl/dynawaltz/models/buses/DefaultBus.java index 4423c7177..fa61007cb 100644 --- a/dynawaltz/src/main/java/com/powsybl/dynawaltz/models/buses/DefaultBusModel.java +++ b/dynawaltz/src/main/java/com/powsybl/dynawaltz/models/buses/DefaultBus.java @@ -13,8 +13,8 @@ /** * @author Florian Dupuy */ -public class DefaultBusModel extends AbstractDefaultModel implements BusModel { - public DefaultBusModel(String staticId) { +public class DefaultBus extends AbstractDefaultModel implements BusModel { + public DefaultBus(String staticId) { super(staticId); } diff --git a/dynawaltz/src/main/java/com/powsybl/dynawaltz/models/defaultmodels/DefaultModelsHandler.java b/dynawaltz/src/main/java/com/powsybl/dynawaltz/models/defaultmodels/DefaultModelsHandler.java index 77df92ffc..656048e65 100644 --- a/dynawaltz/src/main/java/com/powsybl/dynawaltz/models/defaultmodels/DefaultModelsHandler.java +++ b/dynawaltz/src/main/java/com/powsybl/dynawaltz/models/defaultmodels/DefaultModelsHandler.java @@ -9,20 +9,20 @@ import com.powsybl.commons.PowsyblException; import com.powsybl.dynawaltz.models.Model; import com.powsybl.dynawaltz.models.buses.BusModel; -import com.powsybl.dynawaltz.models.buses.DefaultBusModel; +import com.powsybl.dynawaltz.models.buses.DefaultBus; import com.powsybl.dynawaltz.models.generators.GeneratorModel; -import com.powsybl.dynawaltz.models.generators.DefaultGeneratorModel; -import com.powsybl.dynawaltz.models.hvdc.DefaultHvdcModel; +import com.powsybl.dynawaltz.models.generators.DefaultGenerator; +import com.powsybl.dynawaltz.models.hvdc.DefaultHvdc; import com.powsybl.dynawaltz.models.hvdc.HvdcModel; -import com.powsybl.dynawaltz.models.lines.DefaultLineModel; +import com.powsybl.dynawaltz.models.lines.DefaultLine; import com.powsybl.dynawaltz.models.lines.LineModel; -import com.powsybl.dynawaltz.models.loads.DefaultLoadModel; +import com.powsybl.dynawaltz.models.loads.DefaultLoad; import com.powsybl.dynawaltz.models.loads.LoadModel; -import com.powsybl.dynawaltz.models.shunts.DefaultShuntModel; +import com.powsybl.dynawaltz.models.shunts.DefaultShunt; import com.powsybl.dynawaltz.models.shunts.ShuntModel; -import com.powsybl.dynawaltz.models.svarcs.DefaultStaticVarCompensatorModel; +import com.powsybl.dynawaltz.models.svarcs.DefaultStaticVarCompensator; import com.powsybl.dynawaltz.models.svarcs.StaticVarCompensatorModel; -import com.powsybl.dynawaltz.models.transformers.DefaultTransformerModel; +import com.powsybl.dynawaltz.models.transformers.DefaultTransformer; import com.powsybl.dynawaltz.models.transformers.TransformerModel; import com.powsybl.iidm.network.Identifiable; import com.powsybl.iidm.network.IdentifiableType; @@ -44,14 +44,14 @@ public class DefaultModelsHandler { private final Map, DefaultModelFactory> factoryMap; public DefaultModelsHandler() { - factoryMap = Map.of(BusModel.class, new DefaultModelFactory(DefaultBusModel::new), - GeneratorModel.class, new DefaultModelFactory(DefaultGeneratorModel::new), - HvdcModel.class, new DefaultModelFactory(DefaultHvdcModel::new), - LineModel.class, new DefaultModelFactory(DefaultLineModel::new), - LoadModel.class, new DefaultModelFactory(DefaultLoadModel::new), - ShuntModel.class, new DefaultModelFactory(DefaultShuntModel::new), - StaticVarCompensatorModel.class, new DefaultModelFactory(DefaultStaticVarCompensatorModel::new), - TransformerModel.class, new DefaultModelFactory(DefaultTransformerModel::new)); + factoryMap = Map.of(BusModel.class, new DefaultModelFactory(DefaultBus::new), + GeneratorModel.class, new DefaultModelFactory(DefaultGenerator::new), + HvdcModel.class, new DefaultModelFactory(DefaultHvdc::new), + LineModel.class, new DefaultModelFactory(DefaultLine::new), + LoadModel.class, new DefaultModelFactory(DefaultLoad::new), + ShuntModel.class, new DefaultModelFactory(DefaultShunt::new), + StaticVarCompensatorModel.class, new DefaultModelFactory(DefaultStaticVarCompensator::new), + TransformerModel.class, new DefaultModelFactory(DefaultTransformer::new)); powSyBlTypeToModel.put(IdentifiableType.BUS, BusModel.class); powSyBlTypeToModel.put(IdentifiableType.GENERATOR, GeneratorModel.class); diff --git a/dynawaltz/src/main/java/com/powsybl/dynawaltz/models/events/AbstractDynamicLibEventDisconnection.java b/dynawaltz/src/main/java/com/powsybl/dynawaltz/models/events/AbstractDynamicLibEventDisconnection.java index b589ffa1b..559bd45d5 100644 --- a/dynawaltz/src/main/java/com/powsybl/dynawaltz/models/events/AbstractDynamicLibEventDisconnection.java +++ b/dynawaltz/src/main/java/com/powsybl/dynawaltz/models/events/AbstractDynamicLibEventDisconnection.java @@ -21,7 +21,7 @@ /** * @author Laurent Issertial */ -public abstract class AbstractDynamicLibEventDisconnection extends AbstractEventModel { +public abstract class AbstractDynamicLibEventDisconnection extends AbstractEvent { private static final String EVENT_PREFIX = "Disconnect_"; private static final String DYNAMIC_MODEL_LIB = "EventSetPointBoolean"; diff --git a/dynawaltz/src/main/java/com/powsybl/dynawaltz/models/events/AbstractEventModel.java b/dynawaltz/src/main/java/com/powsybl/dynawaltz/models/events/AbstractEvent.java similarity index 90% rename from dynawaltz/src/main/java/com/powsybl/dynawaltz/models/events/AbstractEventModel.java rename to dynawaltz/src/main/java/com/powsybl/dynawaltz/models/events/AbstractEvent.java index ee1c4a5f7..d51d79372 100644 --- a/dynawaltz/src/main/java/com/powsybl/dynawaltz/models/events/AbstractEventModel.java +++ b/dynawaltz/src/main/java/com/powsybl/dynawaltz/models/events/AbstractEvent.java @@ -19,12 +19,12 @@ * @author Florian Dupuy * @author Laurent Issertial */ -public abstract class AbstractEventModel extends AbstractPureDynamicBlackBoxModel implements EventModel { +public abstract class AbstractEvent extends AbstractPureDynamicBlackBoxModel implements EventModel { private final Identifiable equipment; private final double startTime; - protected AbstractEventModel(Identifiable equipment, double startTime, String eventPrefix) { + protected AbstractEvent(Identifiable equipment, double startTime, String eventPrefix) { super(generateEventId(equipment.getId(), eventPrefix)); this.equipment = equipment; this.startTime = startTime; diff --git a/dynawaltz/src/main/java/com/powsybl/dynawaltz/models/events/EventActivePowerVariation.java b/dynawaltz/src/main/java/com/powsybl/dynawaltz/models/events/EventActivePowerVariation.java index 9f7676e18..265795ee8 100644 --- a/dynawaltz/src/main/java/com/powsybl/dynawaltz/models/events/EventActivePowerVariation.java +++ b/dynawaltz/src/main/java/com/powsybl/dynawaltz/models/events/EventActivePowerVariation.java @@ -26,7 +26,7 @@ /** * @author Laurent Issertial */ -public class EventActivePowerVariation extends AbstractEventModel { +public class EventActivePowerVariation extends AbstractEvent { private static final EnumSet CONNECTABLE_EQUIPMENTS = EnumSet.of(IdentifiableType.GENERATOR, IdentifiableType.LOAD); private static final String EVENT_PREFIX = "Step_"; diff --git a/dynawaltz/src/main/java/com/powsybl/dynawaltz/models/events/EventQuadripoleDisconnection.java b/dynawaltz/src/main/java/com/powsybl/dynawaltz/models/events/EventQuadripoleDisconnection.java index 8dab7f5db..f2f59fdc8 100644 --- a/dynawaltz/src/main/java/com/powsybl/dynawaltz/models/events/EventQuadripoleDisconnection.java +++ b/dynawaltz/src/main/java/com/powsybl/dynawaltz/models/events/EventQuadripoleDisconnection.java @@ -21,7 +21,7 @@ * @author Marcos de Miguel * @author Laurent Issertial */ -public class EventQuadripoleDisconnection extends AbstractEventModel { +public class EventQuadripoleDisconnection extends AbstractEvent { private static final String EVENT_PREFIX = "Disconnect_"; private final boolean disconnectOrigin; diff --git a/dynawaltz/src/main/java/com/powsybl/dynawaltz/models/events/NodeFaultEvent.java b/dynawaltz/src/main/java/com/powsybl/dynawaltz/models/events/NodeFaultEvent.java index 299c70430..bd4763d5b 100644 --- a/dynawaltz/src/main/java/com/powsybl/dynawaltz/models/events/NodeFaultEvent.java +++ b/dynawaltz/src/main/java/com/powsybl/dynawaltz/models/events/NodeFaultEvent.java @@ -21,7 +21,7 @@ /** * @author Laurent Issertial */ -public class NodeFaultEvent extends AbstractEventModel { +public class NodeFaultEvent extends AbstractEvent { private static final String EVENT_PREFIX = "Node_Fault_"; diff --git a/dynawaltz/src/main/java/com/powsybl/dynawaltz/models/generators/AbstractGeneratorModel.java b/dynawaltz/src/main/java/com/powsybl/dynawaltz/models/generators/AbstractGenerator.java similarity index 91% rename from dynawaltz/src/main/java/com/powsybl/dynawaltz/models/generators/AbstractGeneratorModel.java rename to dynawaltz/src/main/java/com/powsybl/dynawaltz/models/generators/AbstractGenerator.java index 7414ea487..ba34d2d0a 100644 --- a/dynawaltz/src/main/java/com/powsybl/dynawaltz/models/generators/AbstractGeneratorModel.java +++ b/dynawaltz/src/main/java/com/powsybl/dynawaltz/models/generators/AbstractGenerator.java @@ -22,14 +22,14 @@ * @author Marcos de Miguel * @author Laurent Issertial */ -public abstract class AbstractGeneratorModel extends AbstractEquipmentBlackBoxModel implements GeneratorModel { +public abstract class AbstractGenerator extends AbstractEquipmentBlackBoxModel implements GeneratorModel { protected static final List VAR_MAPPING = Arrays.asList( new VarMapping("generator_PGenPu", "p"), new VarMapping("generator_QGenPu", "q"), new VarMapping("generator_state", "state")); - protected AbstractGeneratorModel(String dynamicModelId, Generator generator, String parameterSetId, String lib) { + protected AbstractGenerator(String dynamicModelId, Generator generator, String parameterSetId, String lib) { super(dynamicModelId, parameterSetId, generator, lib); } diff --git a/dynawaltz/src/main/java/com/powsybl/dynawaltz/models/generators/DefaultGeneratorModel.java b/dynawaltz/src/main/java/com/powsybl/dynawaltz/models/generators/DefaultGenerator.java similarity index 89% rename from dynawaltz/src/main/java/com/powsybl/dynawaltz/models/generators/DefaultGeneratorModel.java rename to dynawaltz/src/main/java/com/powsybl/dynawaltz/models/generators/DefaultGenerator.java index f4ad0c303..eb413aee1 100644 --- a/dynawaltz/src/main/java/com/powsybl/dynawaltz/models/generators/DefaultGeneratorModel.java +++ b/dynawaltz/src/main/java/com/powsybl/dynawaltz/models/generators/DefaultGenerator.java @@ -13,9 +13,9 @@ /** * @author Laurent Issertial */ -public class DefaultGeneratorModel extends AbstractInjectionDefaultModel implements GeneratorModel, ControllableEquipment { +public class DefaultGenerator extends AbstractInjectionDefaultModel implements GeneratorModel, ControllableEquipment { - public DefaultGeneratorModel(String staticId) { + public DefaultGenerator(String staticId) { super(staticId); } diff --git a/dynawaltz/src/main/java/com/powsybl/dynawaltz/models/generators/GeneratorFictitious.java b/dynawaltz/src/main/java/com/powsybl/dynawaltz/models/generators/GeneratorFictitious.java index fb532fb40..f4dff7f16 100644 --- a/dynawaltz/src/main/java/com/powsybl/dynawaltz/models/generators/GeneratorFictitious.java +++ b/dynawaltz/src/main/java/com/powsybl/dynawaltz/models/generators/GeneratorFictitious.java @@ -12,7 +12,7 @@ * @author Dimitri Baudrier * @author Laurent Issertial */ -public class GeneratorFictitious extends AbstractGeneratorModel { +public class GeneratorFictitious extends AbstractGenerator { public GeneratorFictitious(String dynamicModelId, Generator generator, String parameterSetId) { super(dynamicModelId, generator, parameterSetId, "GeneratorFictitious"); diff --git a/dynawaltz/src/main/java/com/powsybl/dynawaltz/models/generators/SynchronizedGenerator.java b/dynawaltz/src/main/java/com/powsybl/dynawaltz/models/generators/SynchronizedGenerator.java index e32ed0703..c9100675a 100644 --- a/dynawaltz/src/main/java/com/powsybl/dynawaltz/models/generators/SynchronizedGenerator.java +++ b/dynawaltz/src/main/java/com/powsybl/dynawaltz/models/generators/SynchronizedGenerator.java @@ -19,7 +19,7 @@ * @author Dimitri Baudrier * @author Laurent Issertial */ -public class SynchronizedGenerator extends AbstractGeneratorModel implements FrequencySynchronizedModel { +public class SynchronizedGenerator extends AbstractGenerator implements FrequencySynchronizedModel { public SynchronizedGenerator(String dynamicModelId, Generator generator, String parameterSetId, String generatorLib) { super(dynamicModelId, generator, parameterSetId, generatorLib); diff --git a/dynawaltz/src/main/java/com/powsybl/dynawaltz/models/hvdc/DefaultHvdcModel.java b/dynawaltz/src/main/java/com/powsybl/dynawaltz/models/hvdc/DefaultHvdc.java similarity index 86% rename from dynawaltz/src/main/java/com/powsybl/dynawaltz/models/hvdc/DefaultHvdcModel.java rename to dynawaltz/src/main/java/com/powsybl/dynawaltz/models/hvdc/DefaultHvdc.java index a5d058577..ac823e6d6 100644 --- a/dynawaltz/src/main/java/com/powsybl/dynawaltz/models/hvdc/DefaultHvdcModel.java +++ b/dynawaltz/src/main/java/com/powsybl/dynawaltz/models/hvdc/DefaultHvdc.java @@ -13,9 +13,9 @@ /** * @author Laurent Issertial */ -public class DefaultHvdcModel extends AbstractDefaultModel implements HvdcModel { +public class DefaultHvdc extends AbstractDefaultModel implements HvdcModel { - public DefaultHvdcModel(String staticId) { + public DefaultHvdc(String staticId) { super(staticId); } diff --git a/dynawaltz/src/main/java/com/powsybl/dynawaltz/models/lines/DefaultLineModel.java b/dynawaltz/src/main/java/com/powsybl/dynawaltz/models/lines/DefaultLine.java similarity index 88% rename from dynawaltz/src/main/java/com/powsybl/dynawaltz/models/lines/DefaultLineModel.java rename to dynawaltz/src/main/java/com/powsybl/dynawaltz/models/lines/DefaultLine.java index 4928b6605..5ecf3326c 100644 --- a/dynawaltz/src/main/java/com/powsybl/dynawaltz/models/lines/DefaultLineModel.java +++ b/dynawaltz/src/main/java/com/powsybl/dynawaltz/models/lines/DefaultLine.java @@ -12,9 +12,9 @@ /** * @author Florian Dupuy */ -public class DefaultLineModel extends AbstractDefaultModel implements LineModel { +public class DefaultLine extends AbstractDefaultModel implements LineModel { - public DefaultLineModel(String staticId) { + public DefaultLine(String staticId) { super(staticId); } diff --git a/dynawaltz/src/main/java/com/powsybl/dynawaltz/models/loads/DefaultLoadModel.java b/dynawaltz/src/main/java/com/powsybl/dynawaltz/models/loads/DefaultLoad.java similarity index 82% rename from dynawaltz/src/main/java/com/powsybl/dynawaltz/models/loads/DefaultLoadModel.java rename to dynawaltz/src/main/java/com/powsybl/dynawaltz/models/loads/DefaultLoad.java index 5c5fbc778..f65e9f3a5 100644 --- a/dynawaltz/src/main/java/com/powsybl/dynawaltz/models/loads/DefaultLoadModel.java +++ b/dynawaltz/src/main/java/com/powsybl/dynawaltz/models/loads/DefaultLoad.java @@ -13,9 +13,9 @@ /** * @author Laurent Issertial */ -public class DefaultLoadModel extends AbstractInjectionDefaultModel implements LoadModel, ControllableEquipment { +public class DefaultLoad extends AbstractInjectionDefaultModel implements LoadModel, ControllableEquipment { - public DefaultLoadModel(String staticId) { + public DefaultLoad(String staticId) { super(staticId); } diff --git a/dynawaltz/src/main/java/com/powsybl/dynawaltz/models/shunts/DefaultShuntModel.java b/dynawaltz/src/main/java/com/powsybl/dynawaltz/models/shunts/DefaultShunt.java similarity index 86% rename from dynawaltz/src/main/java/com/powsybl/dynawaltz/models/shunts/DefaultShuntModel.java rename to dynawaltz/src/main/java/com/powsybl/dynawaltz/models/shunts/DefaultShunt.java index 669ea26c0..e3673842d 100644 --- a/dynawaltz/src/main/java/com/powsybl/dynawaltz/models/shunts/DefaultShuntModel.java +++ b/dynawaltz/src/main/java/com/powsybl/dynawaltz/models/shunts/DefaultShunt.java @@ -12,9 +12,9 @@ /** * @author Laurent Issertial */ -public class DefaultShuntModel extends AbstractInjectionDefaultModel implements ShuntModel { +public class DefaultShunt extends AbstractInjectionDefaultModel implements ShuntModel { - public DefaultShuntModel(String staticId) { + public DefaultShunt(String staticId) { super(staticId); } diff --git a/dynawaltz/src/main/java/com/powsybl/dynawaltz/models/svarcs/DefaultStaticVarCompensatorModel.java b/dynawaltz/src/main/java/com/powsybl/dynawaltz/models/svarcs/DefaultStaticVarCompensator.java similarity index 77% rename from dynawaltz/src/main/java/com/powsybl/dynawaltz/models/svarcs/DefaultStaticVarCompensatorModel.java rename to dynawaltz/src/main/java/com/powsybl/dynawaltz/models/svarcs/DefaultStaticVarCompensator.java index 2cdafb958..9c377fcf9 100644 --- a/dynawaltz/src/main/java/com/powsybl/dynawaltz/models/svarcs/DefaultStaticVarCompensatorModel.java +++ b/dynawaltz/src/main/java/com/powsybl/dynawaltz/models/svarcs/DefaultStaticVarCompensator.java @@ -12,9 +12,9 @@ /** * @author Laurent Issertial */ -public class DefaultStaticVarCompensatorModel extends AbstractInjectionDefaultModel implements StaticVarCompensatorModel { +public class DefaultStaticVarCompensator extends AbstractInjectionDefaultModel implements StaticVarCompensatorModel { - public DefaultStaticVarCompensatorModel(String staticId) { + public DefaultStaticVarCompensator(String staticId) { super(staticId); } diff --git a/dynawaltz/src/main/java/com/powsybl/dynawaltz/models/transformers/DefaultTransformerModel.java b/dynawaltz/src/main/java/com/powsybl/dynawaltz/models/transformers/DefaultTransformer.java similarity index 91% rename from dynawaltz/src/main/java/com/powsybl/dynawaltz/models/transformers/DefaultTransformerModel.java rename to dynawaltz/src/main/java/com/powsybl/dynawaltz/models/transformers/DefaultTransformer.java index f96873a14..6429875b8 100644 --- a/dynawaltz/src/main/java/com/powsybl/dynawaltz/models/transformers/DefaultTransformerModel.java +++ b/dynawaltz/src/main/java/com/powsybl/dynawaltz/models/transformers/DefaultTransformer.java @@ -18,9 +18,9 @@ /** * @author Laurent Issertial */ -public class DefaultTransformerModel extends AbstractDefaultModel implements TransformerModel, TapChangerModel { +public class DefaultTransformer extends AbstractDefaultModel implements TransformerModel, TapChangerModel { - public DefaultTransformerModel(String staticId) { + public DefaultTransformer(String staticId) { super(staticId); } diff --git a/dynawaltz/src/test/java/com/powsybl/dynawaltz/xml/DynamicModelsXmlTest.java b/dynawaltz/src/test/java/com/powsybl/dynawaltz/xml/DynamicModelsXmlTest.java index 8125645e9..04f751dc7 100644 --- a/dynawaltz/src/test/java/com/powsybl/dynawaltz/xml/DynamicModelsXmlTest.java +++ b/dynawaltz/src/test/java/com/powsybl/dynawaltz/xml/DynamicModelsXmlTest.java @@ -101,6 +101,6 @@ void testDynamicModelGetterFromIdentifiableTypeException() { // requested interface not implemented Identifiable transformer = network.getIdentifiable("NGEN_NHV1"); e = assertThrows(PowsyblException.class, () -> dc.getDynamicModel(transformer, InjectionModel.class)); - assertEquals("Default model DefaultTransformerModel does not implement InjectionModel interface", e.getMessage()); + assertEquals("Default model DefaultTransformer does not implement InjectionModel interface", e.getMessage()); } }