{"repo":"cchantep/acolyte","free":true,"listed":false,"github":"https://github.com/cchantep/acolyte","clone":"git clone https://github.com/cchantep/acolyte.git","description":":tiger: Mockup/testing JDBC & MongoDB driver (or Chmeee's son on the Ringworld).","language":"Scala","stars":64,"topics":["persistence","scala","java","reactivemongo","database","mockup","jdbc","testing"],"license":"LGPL-2.1","category":"databases-storage","readme_excerpt":"Acolyte Acolyte is a JDBC driver designed for cases like mockup, testing, or any case you would like to be able to handle JDBC query by hand (or maybe that's only Chmeee's son on the Ringworld). Motivation Persistence layer not only apply changes and retrieve raw data. It usually gathers those data from several sources (e.g. various queries), but also converts data types (e.g. integer to boolean) and maps it to structured information. Automated testing about that is not trivial. Using test DB requires tools (scripts) to set up environment repeatly, for each time tests are executed. Considering integration testing that's fine. It's different for unit testing. Unit tests must be isolated from each others so each unit can be validated independently. A unit test can alter database as executed. Thus tests coming after would have to cope with this altered environment, without asserting which one is runned first (no order assumption). As tests can be runned in parallel while considering code accessing same data spaces. Without extra attention to isolation/transaction management, this can lead to tests conflicting between them. With Acolyte, connection behaviour can be built, defining which statement is supported with which (query or update) result. Each prepared connection can supports only queries and updates your code is interested in, and there is no need to simulate a whole data store structure/schema. As soon as Acolyte connections don't rely on data store, statement executions","default_branch":null,"files":null,"tree":[],"storefront":"/r/cchantep","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/cchantep/acolyte/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}