Commit 09a13ba82d5a86c318582e12e867d3d7ee052175
1 parent
076bddb3
Was added descriptive headings titles to source code files
Showing
5 changed files
with
56 additions
and
1 deletions
1 | +/** | ||
2 | + * Copyright © 2016-2018 The Thingsboard Authors | ||
3 | + * | ||
4 | + * Licensed under the Apache License, Version 2.0 (the "License"); | ||
5 | + * you may not use this file except in compliance with the License. | ||
6 | + * You may obtain a copy of the License at | ||
7 | + * | ||
8 | + * http://www.apache.org/licenses/LICENSE-2.0 | ||
9 | + * | ||
10 | + * Unless required by applicable law or agreed to in writing, software | ||
11 | + * distributed under the License is distributed on an "AS IS" BASIS, | ||
12 | + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
13 | + * See the License for the specific language governing permissions and | ||
14 | + * limitations under the License. | ||
15 | + */ | ||
1 | package org.thingsboard.server.controller; | 16 | package org.thingsboard.server.controller; |
2 | 17 | ||
3 | import org.junit.After; | 18 | import org.junit.After; |
@@ -15,6 +30,9 @@ import java.util.Arrays; | @@ -15,6 +30,9 @@ import java.util.Arrays; | ||
15 | import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status; | 30 | import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status; |
16 | import static org.thingsboard.server.dao.model.ModelConstants.NULL_UUID; | 31 | import static org.thingsboard.server.dao.model.ModelConstants.NULL_UUID; |
17 | 32 | ||
33 | +/** | ||
34 | + * Created by Victor Basanets on 8/27/2017. | ||
35 | + */ | ||
18 | public abstract class BaseEntityViewControllerTest extends AbstractControllerTest { | 36 | public abstract class BaseEntityViewControllerTest extends AbstractControllerTest { |
19 | 37 | ||
20 | private Tenant savedTenant; | 38 | private Tenant savedTenant; |
application/src/test/java/org/thingsboard/server/controller/nosql/EntityViewControllerNoSqlTest.java
@@ -16,6 +16,7 @@ | @@ -16,6 +16,7 @@ | ||
16 | package org.thingsboard.server.controller.nosql; | 16 | package org.thingsboard.server.controller.nosql; |
17 | 17 | ||
18 | import org.thingsboard.server.controller.BaseEntityViewControllerTest; | 18 | import org.thingsboard.server.controller.BaseEntityViewControllerTest; |
19 | + | ||
19 | /** | 20 | /** |
20 | * Created by Victor Basanets on 8/27/2017. | 21 | * Created by Victor Basanets on 8/27/2017. |
21 | */ | 22 | */ |
@@ -17,6 +17,7 @@ package org.thingsboard.server.controller.sql; | @@ -17,6 +17,7 @@ package org.thingsboard.server.controller.sql; | ||
17 | 17 | ||
18 | import org.thingsboard.server.controller.BaseEntityViewControllerTest; | 18 | import org.thingsboard.server.controller.BaseEntityViewControllerTest; |
19 | import org.thingsboard.server.dao.service.DaoSqlTest; | 19 | import org.thingsboard.server.dao.service.DaoSqlTest; |
20 | + | ||
20 | /** | 21 | /** |
21 | * Created by Victor Basanets on 8/27/2017. | 22 | * Created by Victor Basanets on 8/27/2017. |
22 | */ | 23 | */ |
1 | +/** | ||
2 | + * Copyright © 2016-2018 The Thingsboard Authors | ||
3 | + * | ||
4 | + * Licensed under the Apache License, Version 2.0 (the "License"); | ||
5 | + * you may not use this file except in compliance with the License. | ||
6 | + * You may obtain a copy of the License at | ||
7 | + * | ||
8 | + * http://www.apache.org/licenses/LICENSE-2.0 | ||
9 | + * | ||
10 | + * Unless required by applicable law or agreed to in writing, software | ||
11 | + * distributed under the License is distributed on an "AS IS" BASIS, | ||
12 | + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
13 | + * See the License for the specific language governing permissions and | ||
14 | + * limitations under the License. | ||
15 | + */ | ||
1 | package org.thingsboard.server.common.data; | 16 | package org.thingsboard.server.common.data; |
2 | 17 | ||
3 | import lombok.EqualsAndHashCode; | 18 | import lombok.EqualsAndHashCode; |
@@ -8,6 +23,9 @@ import org.thingsboard.server.common.data.id.TenantId; | @@ -8,6 +23,9 @@ import org.thingsboard.server.common.data.id.TenantId; | ||
8 | 23 | ||
9 | import java.util.List; | 24 | import java.util.List; |
10 | 25 | ||
26 | +/** | ||
27 | + * Created by Victor Basanets on 8/27/2017. | ||
28 | + */ | ||
11 | @EqualsAndHashCode(callSuper = true) | 29 | @EqualsAndHashCode(callSuper = true) |
12 | public class EntityView extends SearchTextBasedWithAdditionalInfo<EntityViewId> | 30 | public class EntityView extends SearchTextBasedWithAdditionalInfo<EntityViewId> |
13 | implements HasName, HasTenantId, HasCustomerId { | 31 | implements HasName, HasTenantId, HasCustomerId { |
1 | +/** | ||
2 | + * Copyright © 2016-2018 The Thingsboard Authors | ||
3 | + * | ||
4 | + * Licensed under the Apache License, Version 2.0 (the "License"); | ||
5 | + * you may not use this file except in compliance with the License. | ||
6 | + * You may obtain a copy of the License at | ||
7 | + * | ||
8 | + * http://www.apache.org/licenses/LICENSE-2.0 | ||
9 | + * | ||
10 | + * Unless required by applicable law or agreed to in writing, software | ||
11 | + * distributed under the License is distributed on an "AS IS" BASIS, | ||
12 | + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
13 | + * See the License for the specific language governing permissions and | ||
14 | + * limitations under the License. | ||
15 | + */ | ||
1 | package org.thingsboard.server.common.data.id; | 16 | package org.thingsboard.server.common.data.id; |
2 | 17 | ||
3 | import com.fasterxml.jackson.annotation.JsonCreator; | 18 | import com.fasterxml.jackson.annotation.JsonCreator; |
@@ -6,9 +21,11 @@ import org.thingsboard.server.common.data.EntityType; | @@ -6,9 +21,11 @@ import org.thingsboard.server.common.data.EntityType; | ||
6 | 21 | ||
7 | import java.util.UUID; | 22 | import java.util.UUID; |
8 | 23 | ||
24 | +/** | ||
25 | + * Created by Victor Basanets on 8/27/2017. | ||
26 | + */ | ||
9 | public class EntityViewId extends UUIDBased implements EntityId { | 27 | public class EntityViewId extends UUIDBased implements EntityId { |
10 | 28 | ||
11 | - | ||
12 | private static final long serialVersionUID = 1L; | 29 | private static final long serialVersionUID = 1L; |
13 | 30 | ||
14 | @JsonCreator | 31 | @JsonCreator |