@@ -0,0 +1,2766 @@
+package com.github.openwebnet.model;%0A%0Aimport org.junit.Test;%0A%0Aimport static org.junit.Assert.assertEquals;%0Aimport static org.junit.Assert.assertNotNull;%0A%0Apublic class TemperatureModelTest %7B%0A%0A    private final Integer TEMPERATURE_ENVIRONMENT = 100;%0A    private final String TEMPERATURE_GATEWAY = %22gatewayUuid%22;%0A    private final String TEMPERATURE_NAME = %22name%22;%0A    private final String TEMPERATURE_WHERE = %2208%22;%0A    private final boolean TEMPERATURE_FAVOURITE = true;%0A%0A    @Test(expected = NullPointerException.class)%0A    public void testTemperatureModelBuilder_nullEnvironmentId() %7B%0A        TemperatureModel.addBuilder().environment(null).build();%0A    %7D%0A%0A    @Test(expected = NullPointerException.class)%0A    public void testTemperatureModelBuilder_nullGatewayUuid() %7B%0A        TemperatureModel.addBuilder().gateway(null).build();%0A    %7D%0A%0A    @Test(expected = NullPointerException.class)%0A    public void testTemperatureModelBuilder_nullName() %7B%0A        TemperatureModel.addBuilder().name(null).build();%0A    %7D%0A%0A    @Test(expected = NullPointerException.class)%0A    public void testTemperatureModelBuilder_nullWhere() %7B%0A        TemperatureModel.addBuilder().where(null).build();%0A    %7D%0A%0A    @Test%0A    public void testTemperatureModelAddBuilder_success() %7B%0A        TemperatureModel temperature = TemperatureModel.addBuilder()%0A            .environment(TEMPERATURE_ENVIRONMENT)%0A            .gateway(TEMPERATURE_GATEWAY)%0A            .name(TEMPERATURE_NAME)%0A            .where(TEMPERATURE_WHERE)%0A            .favourite(TEMPERATURE_FAVOURITE)%0A            .build();%0A%0A        assertNotNull(%22invalid uuid%22, temperature.getUuid());%0A        assertCommonFields(temperature);%0A    %7D%0A%0A    @Test%0A    public void testTemperatureModelUpdateBuilder_success() %7B%0A        String TEMPERATURE_UUID = %22myUUid%22;%0A        TemperatureModel temperature = TemperatureModel.updateBuilder(TEMPERATURE_UUID)%0A            .environment(TEMPERATURE_ENVIRONMENT)%0A            .gateway(TEMPERATURE_GATEWAY)%0A            .name(TEMPERATURE_NAME)%0A            .where(TEMPERATURE_WHERE)%0A            .favourite(TEMPERATURE_FAVOURITE)%0A            .build();%0A%0A        assertEquals(%22invalid uuid%22, TEMPERATURE_UUID, temperature.getUuid());%0A        assertCommonFields(temperature);%0A    %7D%0A%0A    private void assertCommonFields(TemperatureModel temperature) %7B%0A        assertEquals(%22invalid environmentId%22, TEMPERATURE_ENVIRONMENT, temperature.getEnvironmentId());%0A        assertEquals(%22invalid gatewayUuid%22, TEMPERATURE_GATEWAY, temperature.getGatewayUuid());%0A        assertEquals(%22invalid name%22, TEMPERATURE_NAME, temperature.getName());%0A        assertEquals(%22invalid where%22, TEMPERATURE_WHERE, temperature.getWhere());%0A        assertEquals(%22invalid favourite%22, TEMPERATURE_FAVOURITE, temperature.isFavourite());%0A    %7D%0A    %0A%7D%0A

add TemperatureModel test