Skip to content
Prev Previous commit
Next Next commit
#2788 introduced tests at DottedErrorMessageTest. (1/2 due to renames)
  • Loading branch information
Ben Zegveld authored and Ben Zegveld committed Feb 11, 2024
commit b05359e11d17767a7ba413060083352e16932234

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/*
* Copyright MapStruct Authors.
*
* Licensed under the Apache License version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0
*/
package org.mapstruct.ap.test.nestedbeans.unmappable.erroneous;

import static org.mapstruct.ReportingPolicy.ERROR;
import static org.mapstruct.ReportingPolicy.IGNORE;

import org.mapstruct.Mapper;
import org.mapstruct.ap.test.nestedbeans.unmappable.BaseCollectionElementPropertyMapper;
import org.mapstruct.ap.test.nestedbeans.unmappable.RoofTypeMapper;

@Mapper( uses = RoofTypeMapper.class, unmappedTargetPolicy = IGNORE, unmappedSourcePolicy = ERROR )
public abstract class UnmappableSourceCollectionElementPropertyMapper extends BaseCollectionElementPropertyMapper {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/*
* Copyright MapStruct Authors.
*
* Licensed under the Apache License version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0
*/
package org.mapstruct.ap.test.nestedbeans.unmappable.erroneous;

import static org.mapstruct.ReportingPolicy.ERROR;
import static org.mapstruct.ReportingPolicy.IGNORE;

import org.mapstruct.Mapper;
import org.mapstruct.ap.test.nestedbeans.unmappable.BaseDeepListMapper;
import org.mapstruct.ap.test.nestedbeans.unmappable.RoofTypeMapper;

@Mapper( uses = RoofTypeMapper.class, unmappedTargetPolicy = IGNORE, unmappedSourcePolicy = ERROR )
public abstract class UnmappableSourceDeepListMapper extends BaseDeepListMapper {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/*
* Copyright MapStruct Authors.
*
* Licensed under the Apache License version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0
*/
package org.mapstruct.ap.test.nestedbeans.unmappable.erroneous;

import static org.mapstruct.ReportingPolicy.ERROR;
import static org.mapstruct.ReportingPolicy.IGNORE;

import org.mapstruct.Mapper;
import org.mapstruct.ap.test.nestedbeans.unmappable.BaseDeepMapKeyMapper;
import org.mapstruct.ap.test.nestedbeans.unmappable.RoofTypeMapper;

@Mapper( uses = RoofTypeMapper.class, unmappedTargetPolicy = IGNORE, unmappedSourcePolicy = ERROR )
public abstract class UnmappableSourceDeepMapKeyMapper extends BaseDeepMapKeyMapper {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/*
* Copyright MapStruct Authors.
*
* Licensed under the Apache License version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0
*/
package org.mapstruct.ap.test.nestedbeans.unmappable.erroneous;

import static org.mapstruct.ReportingPolicy.ERROR;
import static org.mapstruct.ReportingPolicy.IGNORE;

import org.mapstruct.Mapper;
import org.mapstruct.ap.test.nestedbeans.unmappable.BaseDeepMapValueMapper;
import org.mapstruct.ap.test.nestedbeans.unmappable.RoofTypeMapper;

@Mapper( uses = RoofTypeMapper.class, unmappedTargetPolicy = IGNORE, unmappedSourcePolicy = ERROR )
public abstract class UnmappableSourceDeepMapValueMapper extends BaseDeepMapValueMapper {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/*
* Copyright MapStruct Authors.
*
* Licensed under the Apache License version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0
*/
package org.mapstruct.ap.test.nestedbeans.unmappable.erroneous;

import static org.mapstruct.ReportingPolicy.ERROR;
import static org.mapstruct.ReportingPolicy.IGNORE;

import org.mapstruct.Mapper;
import org.mapstruct.ap.test.nestedbeans.unmappable.BaseDeepNestingMapper;
import org.mapstruct.ap.test.nestedbeans.unmappable.RoofTypeMapper;

@Mapper( uses = RoofTypeMapper.class, unmappedTargetPolicy = IGNORE, unmappedSourcePolicy = ERROR )
public abstract class UnmappableSourceDeepNestingMapper extends BaseDeepNestingMapper {
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import org.mapstruct.ap.test.nestedbeans.unmappable.UserDto;

@Mapper
public abstract class UnmappableEnumMapper {
public abstract class UnmappableSourceEnumMapper {

abstract UserDto userToUserDto(User user);

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/*
* Copyright MapStruct Authors.
*
* Licensed under the Apache License version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0
*/
package org.mapstruct.ap.test.nestedbeans.unmappable.erroneous;

import static org.mapstruct.ReportingPolicy.ERROR;
import static org.mapstruct.ReportingPolicy.IGNORE;

import org.mapstruct.Mapper;
import org.mapstruct.ap.test.nestedbeans.unmappable.BaseValuePropertyMapper;
import org.mapstruct.ap.test.nestedbeans.unmappable.RoofTypeMapper;

@Mapper( uses = RoofTypeMapper.class, unmappedTargetPolicy = IGNORE, unmappedSourcePolicy = ERROR )
public abstract class UnmappableSourceValuePropertyMapper extends BaseValuePropertyMapper {
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
import org.mapstruct.ap.test.nestedbeans.unmappable.RoofTypeMapper;

@Mapper(uses = RoofTypeMapper.class, unmappedTargetPolicy = ReportingPolicy.ERROR)
public abstract class UnmappableCollectionElementPropertyMapper extends BaseCollectionElementPropertyMapper {
public abstract class UnmappableTargetCollectionElementPropertyMapper extends BaseCollectionElementPropertyMapper {
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
import org.mapstruct.ap.test.nestedbeans.unmappable.RoofTypeMapper;

@Mapper(uses = RoofTypeMapper.class, unmappedTargetPolicy = ReportingPolicy.ERROR)
public abstract class UnmappableDeepListMapper extends BaseDeepListMapper {
public abstract class UnmappableTargetDeepListMapper extends BaseDeepListMapper {
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
import org.mapstruct.ap.test.nestedbeans.unmappable.RoofTypeMapper;

@Mapper(uses = RoofTypeMapper.class, unmappedTargetPolicy = ReportingPolicy.ERROR)
public abstract class UnmappableDeepMapKeyMapper extends BaseDeepMapKeyMapper {
public abstract class UnmappableTargetDeepMapKeyMapper extends BaseDeepMapKeyMapper {
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
import org.mapstruct.ap.test.nestedbeans.unmappable.RoofTypeMapper;

@Mapper(uses = RoofTypeMapper.class, unmappedTargetPolicy = ReportingPolicy.ERROR)
public abstract class UnmappableDeepMapValueMapper extends BaseDeepMapValueMapper {
public abstract class UnmappableTargetDeepMapValueMapper extends BaseDeepMapValueMapper {
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
import org.mapstruct.ap.test.nestedbeans.unmappable.BaseDeepNestingMapper;
import org.mapstruct.ap.test.nestedbeans.unmappable.RoofTypeMapper;

@Mapper(uses = RoofTypeMapper.class, unmappedTargetPolicy = ReportingPolicy.ERROR)
public abstract class UnmappableDeepNestingMapper extends BaseDeepNestingMapper {
@Mapper(uses = RoofTypeMapper.class, unmappedTargetPolicy = ReportingPolicy.ERROR, unmappedSourcePolicy = ReportingPolicy.IGNORE)
public abstract class UnmappableTargetDeepNestingMapper extends BaseDeepNestingMapper {
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
import org.mapstruct.ap.test.nestedbeans.unmappable.RoofTypeMapper;

@Mapper(uses = RoofTypeMapper.class, unmappedTargetPolicy = ReportingPolicy.ERROR)
public abstract class UnmappableValuePropertyMapper extends BaseValuePropertyMapper {
public abstract class UnmappableTargetValuePropertyMapper extends BaseValuePropertyMapper {
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,13 @@
*/
package org.mapstruct.ap.test.nestedbeans.unmappable.warn;

import static org.mapstruct.ReportingPolicy.IGNORE;
import static org.mapstruct.ReportingPolicy.WARN;

import org.mapstruct.Mapper;
import org.mapstruct.ap.test.nestedbeans.unmappable.BaseCollectionElementPropertyMapper;
import org.mapstruct.ap.test.nestedbeans.unmappable.RoofTypeMapper;

@Mapper(uses = RoofTypeMapper.class)
public abstract class UnmappableWarnCollectionElementPropertyMapper extends BaseCollectionElementPropertyMapper {
@Mapper( uses = RoofTypeMapper.class, unmappedTargetPolicy = WARN, unmappedSourcePolicy = IGNORE )
public abstract class UnmappableTargetWarnCollectionElementPropertyMapper extends BaseCollectionElementPropertyMapper {
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,13 @@
*/
package org.mapstruct.ap.test.nestedbeans.unmappable.warn;

import static org.mapstruct.ReportingPolicy.IGNORE;
import static org.mapstruct.ReportingPolicy.WARN;

import org.mapstruct.Mapper;
import org.mapstruct.ap.test.nestedbeans.unmappable.BaseDeepListMapper;
import org.mapstruct.ap.test.nestedbeans.unmappable.RoofTypeMapper;

@Mapper(uses = RoofTypeMapper.class)
public abstract class UnmappableWarnDeepListMapper extends BaseDeepListMapper {
@Mapper( uses = RoofTypeMapper.class, unmappedTargetPolicy = WARN, unmappedSourcePolicy = IGNORE )
public abstract class UnmappableTargetWarnDeepListMapper extends BaseDeepListMapper {
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,13 @@
*/
package org.mapstruct.ap.test.nestedbeans.unmappable.warn;

import static org.mapstruct.ReportingPolicy.IGNORE;
import static org.mapstruct.ReportingPolicy.WARN;

import org.mapstruct.Mapper;
import org.mapstruct.ap.test.nestedbeans.unmappable.BaseDeepMapKeyMapper;
import org.mapstruct.ap.test.nestedbeans.unmappable.RoofTypeMapper;

@Mapper(uses = RoofTypeMapper.class)
public abstract class UnmappableWarnDeepMapKeyMapper extends BaseDeepMapKeyMapper {
@Mapper( uses = RoofTypeMapper.class, unmappedTargetPolicy = WARN, unmappedSourcePolicy = IGNORE )
public abstract class UnmappableTargetWarnDeepMapKeyMapper extends BaseDeepMapKeyMapper {
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,13 @@
*/
package org.mapstruct.ap.test.nestedbeans.unmappable.warn;

import static org.mapstruct.ReportingPolicy.IGNORE;
import static org.mapstruct.ReportingPolicy.WARN;

import org.mapstruct.Mapper;
import org.mapstruct.ap.test.nestedbeans.unmappable.BaseDeepMapValueMapper;
import org.mapstruct.ap.test.nestedbeans.unmappable.RoofTypeMapper;

@Mapper(uses = RoofTypeMapper.class)
public abstract class UnmappableWarnDeepMapValueMapper extends BaseDeepMapValueMapper {
@Mapper( uses = RoofTypeMapper.class, unmappedTargetPolicy = WARN, unmappedSourcePolicy = IGNORE )
public abstract class UnmappableTargetWarnDeepMapValueMapper extends BaseDeepMapValueMapper {
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,13 @@
*/
package org.mapstruct.ap.test.nestedbeans.unmappable.warn;

import static org.mapstruct.ReportingPolicy.IGNORE;
import static org.mapstruct.ReportingPolicy.WARN;

import org.mapstruct.Mapper;
import org.mapstruct.ap.test.nestedbeans.unmappable.BaseDeepNestingMapper;
import org.mapstruct.ap.test.nestedbeans.unmappable.RoofTypeMapper;

@Mapper(uses = RoofTypeMapper.class)
public abstract class UnmappableWarnDeepNestingMapper extends BaseDeepNestingMapper {
@Mapper( uses = RoofTypeMapper.class, unmappedTargetPolicy = WARN, unmappedSourcePolicy = IGNORE )
public abstract class UnmappableTargetWarnDeepNestingMapper extends BaseDeepNestingMapper {
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,13 @@
*/
package org.mapstruct.ap.test.nestedbeans.unmappable.warn;

import static org.mapstruct.ReportingPolicy.IGNORE;
import static org.mapstruct.ReportingPolicy.WARN;

import org.mapstruct.Mapper;
import org.mapstruct.ap.test.nestedbeans.unmappable.BaseValuePropertyMapper;
import org.mapstruct.ap.test.nestedbeans.unmappable.RoofTypeMapper;

@Mapper(uses = RoofTypeMapper.class)
public abstract class UnmappableWarnValuePropertyMapper extends BaseValuePropertyMapper {
@Mapper( uses = RoofTypeMapper.class, unmappedTargetPolicy = WARN, unmappedSourcePolicy = IGNORE )
public abstract class UnmappableTargetWarnValuePropertyMapper extends BaseValuePropertyMapper {
}