File tree 8 files changed +54
-39
lines changed
main/java/org/lfenergy/compas/core/rest/exception
test/java/org/lfenergy/compas/core/rest/exception
websocket-commons/src/test/java/org/lfenergy/compas/core/websocket 8 files changed +54
-39
lines changed Original file line number Diff line number Diff line change @@ -163,6 +163,38 @@ SPDX-License-Identifier: Apache-2.0
163
163
<artifactId >maven-jar-plugin</artifactId >
164
164
<version >3.3.0</version >
165
165
</plugin >
166
+
167
+ <plugin >
168
+ <groupId >org.apache.maven.plugins</groupId >
169
+ <artifactId >maven-source-plugin</artifactId >
170
+ <version >3.2.1</version >
171
+ <executions >
172
+ <execution >
173
+ <id >attach-sources</id >
174
+ <goals >
175
+ <goal >jar</goal >
176
+ </goals >
177
+ </execution >
178
+ </executions >
179
+ </plugin >
180
+
181
+ <plugin >
182
+ <groupId >org.apache.maven.plugins</groupId >
183
+ <artifactId >maven-javadoc-plugin</artifactId >
184
+ <version >3.4.1</version >
185
+ <executions >
186
+ <execution >
187
+ <id >attach-javadocs</id >
188
+ <goals >
189
+ <goal >jar</goal >
190
+ </goals >
191
+ </execution >
192
+ </executions >
193
+ <configuration >
194
+ <doclint >none</doclint >
195
+ <failOnError >false</failOnError >
196
+ </configuration >
197
+ </plugin >
166
198
</plugins >
167
199
</pluginManagement >
168
200
</build >
@@ -218,38 +250,6 @@ SPDX-License-Identifier: Apache-2.0
218
250
<id >release</id >
219
251
220
252
<build >
221
- <pluginManagement >
222
- <plugins >
223
- <plugin >
224
- <groupId >org.apache.maven.plugins</groupId >
225
- <artifactId >maven-source-plugin</artifactId >
226
- <version >3.2.1</version >
227
- <executions >
228
- <execution >
229
- <id >attach-sources</id >
230
- <goals >
231
- <goal >jar</goal >
232
- </goals >
233
- </execution >
234
- </executions >
235
- </plugin >
236
-
237
- <plugin >
238
- <groupId >org.apache.maven.plugins</groupId >
239
- <artifactId >maven-javadoc-plugin</artifactId >
240
- <version >3.4.1</version >
241
- <executions >
242
- <execution >
243
- <id >attach-javadocs</id >
244
- <goals >
245
- <goal >jar</goal >
246
- </goals >
247
- </execution >
248
- </executions >
249
- </plugin >
250
- </plugins >
251
- </pluginManagement >
252
-
253
253
<plugins >
254
254
<plugin >
255
255
<groupId >org.apache.maven.plugins</groupId >
Original file line number Diff line number Diff line change 1
1
// SPDX-FileCopyrightText: 2021 Alliander N.V.
2
2
//
3
3
// SPDX-License-Identifier: Apache-2.0
4
- package org .lfenergy .compas .core .jaxrs .exception ;
4
+ package org .lfenergy .compas .core .rest .exception ;
5
5
6
6
import org .lfenergy .compas .core .commons .exception .CompasException ;
7
7
import org .lfenergy .compas .core .commons .model .ErrorResponse ;
Original file line number Diff line number Diff line change 1
1
// SPDX-FileCopyrightText: 2021 Alliander N.V.
2
2
//
3
3
// SPDX-License-Identifier: Apache-2.0
4
- package org .lfenergy .compas .core .jaxrs .exception ;
4
+ package org .lfenergy .compas .core .rest .exception ;
5
5
6
6
import org .lfenergy .compas .core .commons .model .ErrorResponse ;
7
7
import org .slf4j .Logger ;
Original file line number Diff line number Diff line change 1
1
// SPDX-FileCopyrightText: 2021 Alliander N.V.
2
2
//
3
3
// SPDX-License-Identifier: Apache-2.0
4
- package org .lfenergy .compas .core .jaxrs .exception ;
4
+ package org .lfenergy .compas .core .rest .exception ;
5
5
6
6
import org .lfenergy .compas .core .commons .model .ErrorResponse ;
7
7
import org .slf4j .Logger ;
Original file line number Diff line number Diff line change 1
1
// SPDX-FileCopyrightText: 2021 Alliander N.V.
2
2
//
3
3
// SPDX-License-Identifier: Apache-2.0
4
- package org .lfenergy .compas .core .jaxrs .exception ;
4
+ package org .lfenergy .compas .core .rest .exception ;
5
5
6
6
import org .junit .jupiter .api .Test ;
7
7
import org .lfenergy .compas .core .commons .exception .CompasException ;
Original file line number Diff line number Diff line change 1
1
// SPDX-FileCopyrightText: 2021 Alliander N.V.
2
2
//
3
3
// SPDX-License-Identifier: Apache-2.0
4
- package org .lfenergy .compas .core .jaxrs .exception ;
4
+ package org .lfenergy .compas .core .rest .exception ;
5
5
6
6
import org .junit .jupiter .api .Test ;
7
7
import org .junit .jupiter .api .extension .ExtendWith ;
Original file line number Diff line number Diff line change 1
1
// SPDX-FileCopyrightText: 2021 Alliander N.V.
2
2
//
3
3
// SPDX-License-Identifier: Apache-2.0
4
- package org .lfenergy .compas .core .jaxrs .exception ;
4
+ package org .lfenergy .compas .core .rest .exception ;
5
5
6
6
import org .junit .jupiter .api .Test ;
7
7
import org .lfenergy .compas .core .commons .model .ErrorResponse ;
10
10
import static org .junit .jupiter .api .Assertions .assertEquals ;
11
11
import static org .junit .jupiter .api .Assertions .assertNull ;
12
12
import static org .lfenergy .compas .core .commons .exception .CompasErrorCode .UNKNOWN_EXCEPTION_ERROR ;
13
- import static org .lfenergy .compas .core .jaxrs .exception .GenericExceptionHandler .ERROR_MESSAGE ;
13
+ import static org .lfenergy .compas .core .rest .exception .GenericExceptionHandler .ERROR_MESSAGE ;
14
14
15
15
class GenericExceptionHandlerTest {
16
16
@ Test
Original file line number Diff line number Diff line change
1
+ // SPDX-FileCopyrightText: 2022 Alliander N.V.
2
+ //
3
+ // SPDX-License-Identifier: Apache-2.0
4
+ package org .lfenergy .compas .core .websocket ;
5
+
6
+ import org .junit .jupiter .api .Test ;
7
+
8
+ import static org .junit .jupiter .api .Assertions .assertThrows ;
9
+
10
+ class WebsocketSupportTest {
11
+ @ Test
12
+ void constructor_WhenConstructorCalled_ThenShouldThrowExceptionCauseForbidden () {
13
+ assertThrows (UnsupportedOperationException .class , WebsocketSupport ::new );
14
+ }
15
+ }
You can’t perform that action at this time.
0 commit comments