Git Product home page Git Product logo

dbassert's People

Contributors

dglinenko avatar katelfox avatar

Watchers

 avatar

dbassert's Issues

Fixtures taking too long to load

What steps will reproduce the problem?

1. Create a simple Java program to load some fixtures
2. Run it
3. For just 50 rows, it takes more than 1 minute.

What is the expected output? What do you see instead?

Hey, need to be very faster than this. :-)
Check the output for 50 rows:
---------------------------------------------
loading fixtures Tue Jun 15 12:27:54 BRT 2010
fixtures loaded Tue Jun 15 12:29:16 BRT 2010
---------------------------------------------

What version of the product are you using? On what operating system?

Sun Java 1.6.0_20, dbAssert 0.9.2 on GNU/Linux Ubuntu 10.04

Please provide any additional information below.

I thought there were some problems with JUnit integration, then I wrote another 
file with just dbAssert stuff, but it is still slow. :-(
I also use pure Jyaml to load the fixture data, and it just took 1 second.

Original issue reported on code.google.com by eustaquiorangel on 15 Jun 2010 at 3:32

Attachments:

Condition is not visible

What steps will reproduce the problem?
1. Create DbAssert object in a class in a completely separate package
2. Try to call dbAssert.table("table").<anything>

What is the expected output? What do you see instead?
Expected OK. Get compile error "The type Condition is not visible"

What version of the product are you using? On what operating system?
9.1, Java 1.5, OS X 10.5

Please provide any additional information below.
I'm assuming I'm supposed to use the net.codemate packages to follow the
api in the examples.

Original issue reported on code.google.com by [email protected] on 31 May 2009 at 6:21

Fixtures with self referencing foreign key fail to load

I have a table called "domain" in which a field "parentId" has foreign key 
constraint which references primary key "domainId" of the same table. My 
domain.yml file looks like this:
----------------------------------------------------
domain4:
    domainid: 4
    name: domain4.com
domain5:
    domainid: 5
    name: domain5.domain4.com
    parentId: 4
domain6:
    domainid: 6
    name: domain6.domain5.domain4.com
    parentId: 5
domain7:
    domainid: 7
    name: domain7.domain5.domain4.com
    parentId: 5
domain8:
    domainid: 8
    name: domain8.domain4.com
    parentId: 5
----------------------------------------------------

When I load this fixture using dbSource.fixture("domain") foreign key 
constraint violation occurs and the fixture is not loaded.

On debugging the source for dbassert, I found that records in yml file are read 
into a Map using Yaml.load method. This map is a HashMap and the keySet() of 
this map does not returns records in the order in which they exist in yml file. 
For example, in my case the order was {domain6, domain7, domain4, domain5, 
domain8}.

Is there any workaround for this?

Original issue reported on code.google.com by [email protected] on 7 Apr 2011 at 7:17

Provided Maven repository

Can you provide a maven repository for dbassert? If your interested I'm
willing to submit a patch with a POM and ant tasks. 

Original issue reported on code.google.com by [email protected] on 21 Mar 2009 at 1:12

Class name without a dot on name

What steps will reproduce the problem?

1. Use getClass() on source(<name>,<class>)
2. Try to load a fixture from a class outside a package 

What is the expected output? What do you see instead?

Load fixture. But I get a java.lang.StringIndexOutOfBoundsException: String
index out of range: -1.

What version of the product are you using? On what operating system?

0.9.2 on GNU/Linux.

Please provide any additional information below.

Ok, better run with a package as a namespace limiter, but for some tests
maybe it's a good idea deal with the absence of a dot on the class name, like:

if(clazzName.lastIndexOf(".")>0)
   clazzName = clazzName.substring(0,
clazzName.lastIndexOf(".")).replace(".", "/");
fixturePath = clazzName + "/fixtures/" + fixName + ".yml";

Thanks.

Original issue reported on code.google.com by eustaquiorangel on 17 May 2010 at 2:19

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.