From 408e4cf53b2c6cea8537130fd0037aa923dfb88c Mon Sep 17 00:00:00 2001 From: John Ahlroos Date: Sat, 5 May 2018 19:31:08 +0300 Subject: [PATCH] Add copyright --- .../groovy/com/devsoap/dbt/DBTModule.groovy | 15 ++++++++++ .../dbt/actions/ExecutorChainAction.groovy | 15 ++++++++++ .../dbt/actions/LedgerChainAction.groovy | 15 ++++++++++ .../com/devsoap/dbt/config/DBTConfig.groovy | 15 ++++++++++ .../devsoap/dbt/config/ExecutorConfig.groovy | 15 ++++++++++ .../devsoap/dbt/config/LedgerConfig.groovy | 15 ++++++++++ .../devsoap/dbt/data/BlockTransaction.groovy | 15 ++++++++++ .../com/devsoap/dbt/data/LedgerData.groovy | 15 ++++++++++ .../dbt/handlers/ExecutorHandler.groovy | 17 +++++++++-- .../LedgerGetTransactionHandler.groovy | 15 ++++++++++ .../LedgerListTransactionsHandler.groovy | 15 ++++++++++ .../LedgerUpdateTransactionHandler.groovy | 15 ++++++++++ .../devsoap/dbt/services/LedgerService.groovy | 15 ++++++++++ .../services/TransactionManagerService.groovy | 15 ++++++++++ .../devsoap/dbt/demo/DatabaseService.groovy | 15 ---------- .../dbt/demo/FlywayMigrationService.groovy | 30 +++++++++++++++++++ dbt-demo/src/ratpack/Ratpack.groovy | 20 +++++++++++-- dbt-test/src/ratpack/Ratpack.groovy | 19 ++++++++++-- .../CustomPortMainApplicationUnderTest.groovy | 15 ++++++++++ .../com/devsoap/dbt/ExecutorSpec.groovy | 15 ++++++++++ .../groovy/com/devsoap/dbt/LedgerSpec.groovy | 15 ++++++++++ .../TransactionManagementServiceSpec.groovy | 15 ++++++++++ 22 files changed, 334 insertions(+), 22 deletions(-) delete mode 100644 dbt-demo/src/main/groovy/com/devsoap/dbt/demo/DatabaseService.groovy create mode 100644 dbt-demo/src/main/groovy/com/devsoap/dbt/demo/FlywayMigrationService.groovy diff --git a/dbt-core/src/main/groovy/com/devsoap/dbt/DBTModule.groovy b/dbt-core/src/main/groovy/com/devsoap/dbt/DBTModule.groovy index dcfa4a5..ebfe2b5 100644 --- a/dbt-core/src/main/groovy/com/devsoap/dbt/DBTModule.groovy +++ b/dbt-core/src/main/groovy/com/devsoap/dbt/DBTModule.groovy @@ -1,3 +1,18 @@ +/* + * Copyright 2018 Devsoap Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.devsoap.dbt import com.devsoap.dbt.actions.ExecutorChainAction diff --git a/dbt-core/src/main/groovy/com/devsoap/dbt/actions/ExecutorChainAction.groovy b/dbt-core/src/main/groovy/com/devsoap/dbt/actions/ExecutorChainAction.groovy index e1202d8..797814e 100644 --- a/dbt-core/src/main/groovy/com/devsoap/dbt/actions/ExecutorChainAction.groovy +++ b/dbt-core/src/main/groovy/com/devsoap/dbt/actions/ExecutorChainAction.groovy @@ -1,3 +1,18 @@ +/* + * Copyright 2018 Devsoap Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.devsoap.dbt.actions import com.devsoap.dbt.config.DBTConfig diff --git a/dbt-core/src/main/groovy/com/devsoap/dbt/actions/LedgerChainAction.groovy b/dbt-core/src/main/groovy/com/devsoap/dbt/actions/LedgerChainAction.groovy index d55ff7a..eb06f0a 100644 --- a/dbt-core/src/main/groovy/com/devsoap/dbt/actions/LedgerChainAction.groovy +++ b/dbt-core/src/main/groovy/com/devsoap/dbt/actions/LedgerChainAction.groovy @@ -1,3 +1,18 @@ +/* + * Copyright 2018 Devsoap Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.devsoap.dbt.actions import com.devsoap.dbt.config.DBTConfig diff --git a/dbt-core/src/main/groovy/com/devsoap/dbt/config/DBTConfig.groovy b/dbt-core/src/main/groovy/com/devsoap/dbt/config/DBTConfig.groovy index d1a78be..808c1ad 100644 --- a/dbt-core/src/main/groovy/com/devsoap/dbt/config/DBTConfig.groovy +++ b/dbt-core/src/main/groovy/com/devsoap/dbt/config/DBTConfig.groovy @@ -1,3 +1,18 @@ +/* + * Copyright 2018 Devsoap Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.devsoap.dbt.config class DBTConfig { diff --git a/dbt-core/src/main/groovy/com/devsoap/dbt/config/ExecutorConfig.groovy b/dbt-core/src/main/groovy/com/devsoap/dbt/config/ExecutorConfig.groovy index 982905d..833ed76 100644 --- a/dbt-core/src/main/groovy/com/devsoap/dbt/config/ExecutorConfig.groovy +++ b/dbt-core/src/main/groovy/com/devsoap/dbt/config/ExecutorConfig.groovy @@ -1,3 +1,18 @@ +/* + * Copyright 2018 Devsoap Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.devsoap.dbt.config class ExecutorConfig { diff --git a/dbt-core/src/main/groovy/com/devsoap/dbt/config/LedgerConfig.groovy b/dbt-core/src/main/groovy/com/devsoap/dbt/config/LedgerConfig.groovy index ba2d5bb..a73dc0f 100644 --- a/dbt-core/src/main/groovy/com/devsoap/dbt/config/LedgerConfig.groovy +++ b/dbt-core/src/main/groovy/com/devsoap/dbt/config/LedgerConfig.groovy @@ -1,3 +1,18 @@ +/* + * Copyright 2018 Devsoap Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.devsoap.dbt.config class LedgerConfig { diff --git a/dbt-core/src/main/groovy/com/devsoap/dbt/data/BlockTransaction.groovy b/dbt-core/src/main/groovy/com/devsoap/dbt/data/BlockTransaction.groovy index 3b600bf..11496e7 100644 --- a/dbt-core/src/main/groovy/com/devsoap/dbt/data/BlockTransaction.groovy +++ b/dbt-core/src/main/groovy/com/devsoap/dbt/data/BlockTransaction.groovy @@ -1,3 +1,18 @@ +/* + * Copyright 2018 Devsoap Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.devsoap.dbt.data import groovy.transform.ToString diff --git a/dbt-core/src/main/groovy/com/devsoap/dbt/data/LedgerData.groovy b/dbt-core/src/main/groovy/com/devsoap/dbt/data/LedgerData.groovy index 8056eee..7891f35 100644 --- a/dbt-core/src/main/groovy/com/devsoap/dbt/data/LedgerData.groovy +++ b/dbt-core/src/main/groovy/com/devsoap/dbt/data/LedgerData.groovy @@ -1,3 +1,18 @@ +/* + * Copyright 2018 Devsoap Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.devsoap.dbt.data class LedgerData implements Serializable { diff --git a/dbt-core/src/main/groovy/com/devsoap/dbt/handlers/ExecutorHandler.groovy b/dbt-core/src/main/groovy/com/devsoap/dbt/handlers/ExecutorHandler.groovy index 94ef572..3eaa30f 100644 --- a/dbt-core/src/main/groovy/com/devsoap/dbt/handlers/ExecutorHandler.groovy +++ b/dbt-core/src/main/groovy/com/devsoap/dbt/handlers/ExecutorHandler.groovy @@ -1,3 +1,18 @@ +/* + * Copyright 2018 Devsoap Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.devsoap.dbt.handlers import com.devsoap.dbt.config.DBTConfig @@ -5,12 +20,10 @@ import com.devsoap.dbt.data.BlockTransaction import com.fasterxml.jackson.databind.ObjectMapper import groovy.util.logging.Slf4j import ratpack.exec.Promise -import ratpack.func.Pair import ratpack.handling.Context import ratpack.handling.Handler import ratpack.http.Status import ratpack.http.client.HttpClient -import ratpack.http.client.ReceivedResponse import ratpack.jdbctx.Transaction import javax.inject.Inject diff --git a/dbt-core/src/main/groovy/com/devsoap/dbt/handlers/LedgerGetTransactionHandler.groovy b/dbt-core/src/main/groovy/com/devsoap/dbt/handlers/LedgerGetTransactionHandler.groovy index 7e5eee7..97564cf 100644 --- a/dbt-core/src/main/groovy/com/devsoap/dbt/handlers/LedgerGetTransactionHandler.groovy +++ b/dbt-core/src/main/groovy/com/devsoap/dbt/handlers/LedgerGetTransactionHandler.groovy @@ -1,3 +1,18 @@ +/* + * Copyright 2018 Devsoap Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.devsoap.dbt.handlers import com.devsoap.dbt.services.LedgerService diff --git a/dbt-core/src/main/groovy/com/devsoap/dbt/handlers/LedgerListTransactionsHandler.groovy b/dbt-core/src/main/groovy/com/devsoap/dbt/handlers/LedgerListTransactionsHandler.groovy index de3ac98..d6aa52e 100644 --- a/dbt-core/src/main/groovy/com/devsoap/dbt/handlers/LedgerListTransactionsHandler.groovy +++ b/dbt-core/src/main/groovy/com/devsoap/dbt/handlers/LedgerListTransactionsHandler.groovy @@ -1,3 +1,18 @@ +/* + * Copyright 2018 Devsoap Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.devsoap.dbt.handlers import com.devsoap.dbt.services.LedgerService diff --git a/dbt-core/src/main/groovy/com/devsoap/dbt/handlers/LedgerUpdateTransactionHandler.groovy b/dbt-core/src/main/groovy/com/devsoap/dbt/handlers/LedgerUpdateTransactionHandler.groovy index e38966d..808acea 100644 --- a/dbt-core/src/main/groovy/com/devsoap/dbt/handlers/LedgerUpdateTransactionHandler.groovy +++ b/dbt-core/src/main/groovy/com/devsoap/dbt/handlers/LedgerUpdateTransactionHandler.groovy @@ -1,3 +1,18 @@ +/* + * Copyright 2018 Devsoap Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.devsoap.dbt.handlers import com.devsoap.dbt.config.DBTConfig diff --git a/dbt-core/src/main/groovy/com/devsoap/dbt/services/LedgerService.groovy b/dbt-core/src/main/groovy/com/devsoap/dbt/services/LedgerService.groovy index aeea44b..6006217 100644 --- a/dbt-core/src/main/groovy/com/devsoap/dbt/services/LedgerService.groovy +++ b/dbt-core/src/main/groovy/com/devsoap/dbt/services/LedgerService.groovy @@ -1,3 +1,18 @@ +/* + * Copyright 2018 Devsoap Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.devsoap.dbt.services import com.devsoap.dbt.data.BlockTransaction diff --git a/dbt-core/src/main/groovy/com/devsoap/dbt/services/TransactionManagerService.groovy b/dbt-core/src/main/groovy/com/devsoap/dbt/services/TransactionManagerService.groovy index b02a532..96edb38 100644 --- a/dbt-core/src/main/groovy/com/devsoap/dbt/services/TransactionManagerService.groovy +++ b/dbt-core/src/main/groovy/com/devsoap/dbt/services/TransactionManagerService.groovy @@ -1,3 +1,18 @@ +/* + * Copyright 2018 Devsoap Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.devsoap.dbt.services import com.devsoap.dbt.config.DBTConfig diff --git a/dbt-demo/src/main/groovy/com/devsoap/dbt/demo/DatabaseService.groovy b/dbt-demo/src/main/groovy/com/devsoap/dbt/demo/DatabaseService.groovy deleted file mode 100644 index 97b7cf9..0000000 --- a/dbt-demo/src/main/groovy/com/devsoap/dbt/demo/DatabaseService.groovy +++ /dev/null @@ -1,15 +0,0 @@ -package com.devsoap.dbt.demo - -import org.flywaydb.core.Flyway -import ratpack.service.Service -import ratpack.service.StartEvent - -import javax.sql.DataSource - -class DatabaseService implements Service { - - @Override - void onStart(StartEvent event){ - new Flyway(dataSource: event.registry.get(DataSource)).migrate() - } -} diff --git a/dbt-demo/src/main/groovy/com/devsoap/dbt/demo/FlywayMigrationService.groovy b/dbt-demo/src/main/groovy/com/devsoap/dbt/demo/FlywayMigrationService.groovy new file mode 100644 index 0000000..d6ebee2 --- /dev/null +++ b/dbt-demo/src/main/groovy/com/devsoap/dbt/demo/FlywayMigrationService.groovy @@ -0,0 +1,30 @@ +/* + * Copyright 2018 Devsoap Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.devsoap.dbt.demo + +import org.flywaydb.core.Flyway +import ratpack.service.Service +import ratpack.service.StartEvent + +import javax.sql.DataSource + +class FlywayMigrationService implements Service { + + @Override + void onStart(StartEvent event){ + new Flyway(dataSource: event.registry.get(DataSource)).migrate() + } +} diff --git a/dbt-demo/src/ratpack/Ratpack.groovy b/dbt-demo/src/ratpack/Ratpack.groovy index e60cd44..013b929 100644 --- a/dbt-demo/src/ratpack/Ratpack.groovy +++ b/dbt-demo/src/ratpack/Ratpack.groovy @@ -1,11 +1,25 @@ +/* + * Copyright 2018 Devsoap Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ import com.devsoap.dbt.DBTModule +import com.devsoap.dbt.demo.FlywayMigrationService import com.devsoap.dbt.services.TransactionManagerService -import org.flywaydb.core.Flyway import org.h2.jdbcx.JdbcDataSource import ratpack.form.Form import ratpack.handlebars.HandlebarsModule import ratpack.http.Status -import ratpack.service.Service import javax.sql.DataSource @@ -43,7 +57,7 @@ ratpack { /* * Migrate Flyway migrations at application start */ - bindInstance { event -> new Flyway(dataSource: event.registry.get(DataSource)).migrate() } as Service + bind FlywayMigrationService } diff --git a/dbt-test/src/ratpack/Ratpack.groovy b/dbt-test/src/ratpack/Ratpack.groovy index 619a79d..7df7250 100644 --- a/dbt-test/src/ratpack/Ratpack.groovy +++ b/dbt-test/src/ratpack/Ratpack.groovy @@ -1,3 +1,18 @@ +/* + * Copyright 2018 Devsoap Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ import com.devsoap.dbt.DBTModule import com.devsoap.dbt.config.DBTConfig import org.flywaydb.core.Flyway @@ -24,11 +39,11 @@ ratpack { } bindInstance(DataSource, new JdbcDataSource(url: 'jdbc:h2:mem:dbtdb;DB_CLOSE_DELAY=-1', user: '')) - bind DatabaseService + bind FlywayMigrationService } } -class DatabaseService implements Service { +class FlywayMigrationService implements Service { @Override void onStart(StartEvent event){ diff --git a/dbt-test/src/test/groovy/com/devsoap/dbt/CustomPortMainApplicationUnderTest.groovy b/dbt-test/src/test/groovy/com/devsoap/dbt/CustomPortMainApplicationUnderTest.groovy index 403fc2b..1d71795 100644 --- a/dbt-test/src/test/groovy/com/devsoap/dbt/CustomPortMainApplicationUnderTest.groovy +++ b/dbt-test/src/test/groovy/com/devsoap/dbt/CustomPortMainApplicationUnderTest.groovy @@ -1,3 +1,18 @@ +/* + * Copyright 2018 Devsoap Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.devsoap.dbt import ratpack.groovy.test.GroovyRatpackMainApplicationUnderTest diff --git a/dbt-test/src/test/groovy/com/devsoap/dbt/ExecutorSpec.groovy b/dbt-test/src/test/groovy/com/devsoap/dbt/ExecutorSpec.groovy index 061e9a8..3afc888 100644 --- a/dbt-test/src/test/groovy/com/devsoap/dbt/ExecutorSpec.groovy +++ b/dbt-test/src/test/groovy/com/devsoap/dbt/ExecutorSpec.groovy @@ -1,3 +1,18 @@ +/* + * Copyright 2018 Devsoap Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.devsoap.dbt import com.devsoap.dbt.data.BlockTransaction diff --git a/dbt-test/src/test/groovy/com/devsoap/dbt/LedgerSpec.groovy b/dbt-test/src/test/groovy/com/devsoap/dbt/LedgerSpec.groovy index 89e10a2..1e8ddb2 100644 --- a/dbt-test/src/test/groovy/com/devsoap/dbt/LedgerSpec.groovy +++ b/dbt-test/src/test/groovy/com/devsoap/dbt/LedgerSpec.groovy @@ -1,3 +1,18 @@ +/* + * Copyright 2018 Devsoap Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.devsoap.dbt import com.devsoap.dbt.data.BlockTransaction diff --git a/dbt-test/src/test/groovy/com/devsoap/dbt/TransactionManagementServiceSpec.groovy b/dbt-test/src/test/groovy/com/devsoap/dbt/TransactionManagementServiceSpec.groovy index 4c352b7..969d5af 100644 --- a/dbt-test/src/test/groovy/com/devsoap/dbt/TransactionManagementServiceSpec.groovy +++ b/dbt-test/src/test/groovy/com/devsoap/dbt/TransactionManagementServiceSpec.groovy @@ -1,3 +1,18 @@ +/* + * Copyright 2018 Devsoap Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.devsoap.dbt import com.devsoap.dbt.data.BlockTransaction