contract tests.

2015-04-26 Thread Claude Warren
I have added a contract testing branch and have added the contract tests for all graphs in the core code. I also have contract tests for several other interfaces defined but no suites to exercise them. I recall a recent conversation where tile names were given TS_ prefix for "test suite&qu

contract tests

2015-05-19 Thread Claude Warren
There is a set of contract tests (and test helpers) on the "add-contract-tests" branch. That branch works and has minimal change from the current tests. Those changes are adding the junit-contract runner and plugins. It makes no change to the execution. The problem that I am having

Contract tests.

2015-05-23 Thread Claude Warren
I have merged the contract tests into the main code branch. There is an overview of contract tests on the wiki at https://cwiki.apache.org/confluence/display/JENA/Contract+Tests -- I like: Like Like - The likeliest place on the web <http://like-like.xenei.com> LinkedIn: http://www.linked

Contract Tests?

2012-11-25 Thread Claude Warren
I am looking for a set of tests that I would call contract tests. I am not looking for unit tests that show a model insert works but rather things like the following: // create a model Model m = ModelFactory.createDefaultModel(); // create a resource Resource r = m.createResource( &quo

Re: contract tests.

2015-04-27 Thread Bruno P. Kinoshita
together and easy to find in a directory listing. Assuming that we use TS_ and TC_ as prefix, I'd prefer a CT_ prefix rather than _CT, just to follow a convention. Bruno From: Claude Warren To: dev@jena.apache.org; Bruno P. Kinoshita Sent: Monday, April 27, 2015 6:33 PM Subje

Re: contract tests.

2015-04-27 Thread Claude Warren
g that we use TS_ and TC_ as prefix, I'd prefer a CT_ prefix rather > than _CT, just to follow a convention. > Bruno > > From: Claude Warren > To: dev@jena.apache.org; Bruno P. Kinoshita > Sent: Monday, April 27, 2015 6:33 PM > Subject: contract tests. > > I have

Re: contract tests.

2015-04-27 Thread Andy Seaborne
a convention. Bruno From: Claude Warren To: dev@jena.apache.org; Bruno P. Kinoshita Sent: Monday, April 27, 2015 6:33 PM Subject: contract tests. I have added a contract testing branch and have added the contract tests for all graphs in the core code. I also have contract tes

Re: contract tests.

2015-04-27 Thread Claude Warren
_ as prefix, I'd prefer a CT_ prefix >>> rather >>> than _CT, just to follow a convention. >>> Bruno >>> >>>From: Claude Warren >>> To: dev@jena.apache.org; Bruno P. Kinoshita >>> Sent: Monday, April 27, 2

Re: contract tests

2015-05-20 Thread Andy Seaborne
On 19/05/15 20:25, Claude Warren wrote: There is a set of contract tests (and test helpers) on the "add-contract-tests" branch. That branch works and has minimal change from the current tests. Those changes are adding the junit-contract runner and plugins. It makes no change to the

Re: contract tests

2015-05-20 Thread Claude Warren
parallel for now, but I expect we would move a fair number of tests to it as a replacement. On Wed, May 20, 2015 at 10:25 AM, Andy Seaborne wrote: > On 19/05/15 20:25, Claude Warren wrote: > >> There is a set of contract tests (and test helpers) on the >> "add-contra

Re: contract tests

2015-06-11 Thread Andy Seaborne
org.xenei:junit-contracts. With all due respect, having longterm (years!) jena testing depend on that is not ideal. Andy On Wed, May 20, 2015 at 10:25 AM, Andy Seaborne wrote: On 19/05/15 20:25, Claude Warren wrote: There is a set of contract tests (and test helpers) on the "add-co

Re: contract tests

2015-06-11 Thread Andy Seaborne
On 19/05/15 20:25, Claude Warren wrote: There is a set of contract tests (and test helpers) on the "add-contract-tests" branch. That branch works and has minimal change from the current tests. Those changes are adding the junit-contract runner and plugins. It makes no change to the

Re: contract tests

2015-06-11 Thread Claude Warren
I'll have to go back and review the dependency tree. The contract tests should only introduce: 1) a junit runner and associated annotations. 2) a maven mojo to report on the testing structure. I think the client requirement comes in becaue there is a command line version of the mojo. I&#

Re: contract tests

2015-06-11 Thread Andy Seaborne
On 11/06/15 14:35, Claude Warren wrote: I'll have to go back and review the dependency tree. The contract tests should only introduce: 1) a junit runner and associated annotations. 2) a maven mojo to report on the testing structure. I think the client requirement comes in becaue there

Re: contract tests

2015-06-12 Thread Andy Seaborne
Claude, I trying to understand the contract testing. I have been looking at GraphMem_CS and DeltaTest mainly. Are they good examples? What's the way to find out what classes are discovered and tested? contract-test-maven-plugin -- what's the role of this plugin? because the surefire setup

Re: contract tests

2015-06-15 Thread Claude Warren
ote: > >> I'll have to go back and review the dependency tree. >> >> The contract tests should only introduce: >> 1) a junit runner and associated annotations. >> 2) a maven mojo to report on the testing structure. >> >> I think the client requirement

Re: contract tests

2015-06-15 Thread Claude Warren
ility to filter out specific classes, keep that in mind while reading the descriptions below. interfaces.txt contains a list of all the discovered interfaces and the contract tests for them as well as a list of all classes with flags to indicate if they are annotated with @Contract, @ContractImp

Re: Contract Tests?

2012-11-26 Thread Damian Steer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 25/11/12 14:15, Claude Warren wrote: > I am looking for a set of tests that I would call contract tests. I hope you're not trying to implement model. Will assume Graph. > Basically a set of tests that prove an implementation meet

Re: Contract Tests?

2012-11-26 Thread Claude Warren
25/11/12 14:15, Claude Warren wrote: >> I am looking for a set of tests that I would call contract tests. > > > > I hope you're not trying to implement model. Will assume Graph. > >> Basically a set of tests that prove an implementation meets all >> the cont

jena-core tests and contract tests

2015-07-13 Thread Andy Seaborne
Claude, This is "for information" - I think I've solved the problem. A couple of days ago I corrected the surefire test setup to explicitly name TestPackage (was com.hp.hpl. ...). org/apache/jena/test/TestPackage.java **/*_CS.java and now we have: https://builds.apache.org/job/J

contract tests: modelCon:getBag, modelCon.getSeq() and modelCon.getAlt()

2013-09-21 Thread Claude Warren
The javadoc for the modelCon methods getBag(), getSeq() and getAlt() indicate that the returned resource should exist before the method is called. If the resource does not exist, the default implementation seems to create one. However the resulting resources are different from the createBag, crea

Re: jena-core tests and contract tests

2015-07-13 Thread Claude Warren
It is possible (and probable) that the contract code scanner is loading them. At one point I thought I was loading classes but not initializing them. I will look into this. Claude On Mon, Jul 13, 2015 at 1:27 PM, Andy Seaborne wrote: > Claude, > > This is "for information" - I think I've sol

Re: jena-core tests and contract tests

2015-07-13 Thread Andy Seaborne
On 13/07/15 13:53, Claude Warren wrote: It is possible (and probable) that the contract code scanner is loading them. At one point I thought I was loading classes but not initializing them. I will look into this. Not urgent as my fix seems to have fixed it [famous last words]. (and now mav

[jira] [Created] (JENA-1457) Graph contract tests do not properly support transactions

2017-12-29 Thread Claude Warren (JIRA)
Claude Warren created JENA-1457: --- Summary: Graph contract tests do not properly support transactions Key: JENA-1457 URL: https://issues.apache.org/jira/browse/JENA-1457 Project: Apache Jena

[jira] [Commented] (JENA-1457) Graph contract tests do not properly support transactions

2017-12-29 Thread Andy Seaborne (JIRA)
mean "must use transactions". The details depend on the implementation. > Graph contract tests do not properly support transactions > - > > Key: JENA-1457 > URL: https://

[jira] [Commented] (JENA-1457) Graph contract tests do not properly support transactions

2017-12-29 Thread Claude Warren (JIRA)
the graph supports transactions and uses them otherwise no transaction code is called. > Graph contract tests do not properly support transactions > - > > Key: JENA-1457 > URL: https://iss

[jira] [Commented] (JENA-1457) Graph contract tests do not properly support transactions

2017-12-31 Thread Andy Seaborne (JIRA)
non-transactional behaviour. The contract tests have no way to be configured. At the moment, TDB2 requires explicit transactions and it's the only one of the project's storage components that does. TIM and TDB1 do not require transactions, though once a TDB1 dataset has been used trans

[jira] [Commented] (JENA-1457) Graph contract tests do not properly support transactions

2017-12-31 Thread A. Soroka (JIRA)
sent immutable graphs out to sea. Maybe we can think about representing transactionality differently in a new API? > Graph contract tests do not properly support transactions > - > > Key: JENA-1457 &g

[jira] [Assigned] (JENA-1457) Graph contract tests do not properly support transactions

2018-01-21 Thread Claude Warren (JIRA)
[ https://issues.apache.org/jira/browse/JENA-1457?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Claude Warren reassigned JENA-1457: --- Assignee: Claude Warren > Graph contract tests do not properly support transacti

[jira] [Commented] (JENA-1457) Graph contract tests do not properly support transactions

2018-01-21 Thread ASF GitHub Bot (JIRA)
hor: Claude Warren Date: 2018-01-21T13:12:19Z fixes JENA-1457 Removed incorrect JSONInput.java > Graph contract tests do not properly support transactions > - > > Key: JENA-1457 >

[jira] [Commented] (JENA-1457) Graph contract tests do not properly support transactions

2018-01-21 Thread ASF GitHub Bot (JIRA)
ssue: https://github.com/apache/jena/pull/343 Yes - there are problems with JSONInput. This is visible in the {{.patch}} form. It looks like changes were copied from Jena master and separately committed. > Graph contract tests do not properly support trans

[jira] [Commented] (JENA-1457) Graph contract tests do not properly support transactions

2018-01-21 Thread ASF GitHub Bot (JIRA)
)) ); ``` makes the tests shorter and clearer. > Graph contract tests do not properly support transactions > - > > Key: JENA-1457 > URL: https://issues.apache.org/jira/browse/JE

[jira] [Commented] (JENA-1457) Graph contract tests do not properly support transactions

2018-02-04 Thread ASF GitHub Bot (JIRA)
uest at: https://github.com/apache/jena/pull/343 > Graph contract tests do not properly support transactions > - > > Key: JENA-1457 > URL: https://issues.apache.org/jira/browse/JENA-1457 &g

[jira] [Commented] (JENA-1457) Graph contract tests do not properly support transactions

2018-02-04 Thread ASF GitHub Bot (JIRA)
04T11:05:28Z Merge branch 'master' into FixGraphContractTestTransactionUsage commit 0d0beae44bf92ddb7b4b755d58819621d7163d75 Author: Claude Warren Date: 2018-02-04T11:11:46Z reverted to master version > Graph contract tests do not properly support transactions > ---

[jira] [Commented] (JENA-1457) Graph contract tests do not properly support transactions

2018-02-07 Thread ASF GitHub Bot (JIRA)
t at: https://github.com/apache/jena/pull/352 > Graph contract tests do not properly support transactions > - > > Key: JENA-1457 > URL: https://issues.apache.org/jira/browse/JENA-1457 &g

[jira] [Commented] (JENA-1457) Graph contract tests do not properly support transactions

2018-02-07 Thread ASF subversion and git services (JIRA)
mmit 8567e272d8d1bb33284ee2c4bdba056b69d76139 in jena's branch refs/heads/master from [~cla...@xenei.org] [ https://git-wip-us.apache.org/repos/asf?p=jena.git;h=8567e27 ] JENA-1457 Fix graph contract test transaction usage this closes #352 > Graph contract tests do not properly support

[jira] [Resolved] (JENA-1457) Graph contract tests do not properly support transactions

2018-02-07 Thread Claude Warren (JIRA)
[ https://issues.apache.org/jira/browse/JENA-1457?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Claude Warren resolved JENA-1457. - Resolution: Fixed Fix Version/s: Jena 3.7.0 > Graph contract tests do not properly supp

Re: [jira] [Commented] (JENA-1457) Graph contract tests do not properly support transactions

2017-12-29 Thread Claude Warren
gt; tabpanel&focusedCommentId=16306579#comment-16306579 ] > > Andy Seaborne commented on JENA-1457: > - > > "supportsTransactions" does not mean "must use transactions". > > The details depend on the implementation. > &