Notice: In order to edit this ticket you need to be either: a Product Owner, The owner or the reporter of the ticket, or, in case of a Task not yet assigned, a team_member"

Task #4377 (closed)

Opened 9 years ago

Closed 8 years ago

Last modified 8 years ago

Add Test for 2010-06 to 2008-02 downgrade

Reported by: jburel Owned by: ajpatterson
Priority: major Milestone: OMERO-Beta4.3.1
Component: General Version: n.a.
Keywords: n.a. Cc:
Resources: n.a. Referenced By: n.a.
References: n.a. Remaining Time: 0.0d
Sprint: 2011-07-07 (1)

Description

Add tests for the drowgrade stylesheet

Change History (33)

comment:1 Changed 9 years ago by jburel

  • Sprint changed from 2011-02-24 (6) to 2011-03-10 (7)

Moved from sprint 2011-02-24 (6)

comment:2 Changed 9 years ago by jburel

  • Remaining Time set to 0.75

comment:3 Changed 9 years ago by ajpatterson

  • Status changed from new to accepted

comment:4 Changed 9 years ago by jburel

  • Sprint changed from 2011-03-10 (7) to 2011-03-24 (8)

Moved from sprint 2011-03-10 (7)

comment:5 Changed 9 years ago by ajpatterson

  • Owner ajpatterson deleted
  • Status changed from accepted to new

comment:6 Changed 9 years ago by ajpatterson

  • Owner set to ajpatterson

comment:7 Changed 9 years ago by ajpatterson

  • Status changed from new to accepted

comment:8 Changed 9 years ago by jburel

  • Sprint changed from 2011-03-24 (8) to 2011-04-07 (9)

Moved from sprint 2011-03-24 (8)

comment:9 Changed 9 years ago by Andrew J Patterson <ajpatterson@…>

(In [495ae1efab4823f4b8af4efb5bebe286fbda0f18/ome.git] on branch develop) Update the paths to transform and schema see #4377

comment:10 Changed 9 years ago by ajpatterson

  • Owner ajpatterson deleted
  • Status changed from accepted to new

comment:11 Changed 9 years ago by cxallan

  • Sprint changed from 2011-04-07 (9) to 2011-04-21 (10)

Moved from sprint 2011-04-07 (9)

comment:12 Changed 8 years ago by jburel

  • Sprint changed from 2011-04-21 (10) to 2011-05-05 (11)

Moved from sprint 2011-04-21 (10)

comment:13 Changed 8 years ago by jburel

  • Owner set to ajpatterson

comment:14 Changed 8 years ago by ajpatterson

  • Status changed from new to accepted

comment:15 Changed 8 years ago by ajpatterson

  • Owner ajpatterson deleted
  • Status changed from accepted to new

comment:16 Changed 8 years ago by ajpatterson

  • Owner set to ajpatterson

comment:17 Changed 8 years ago by jburel

  • Sprint changed from 2011-05-05 (11) to 2011-05-19 (12)

Moved from sprint 2011-05-05 (11)

comment:18 Changed 8 years ago by jburel

  • Sprint changed from 2011-05-19 (12) to 2011-06-02 (13)

Moved from sprint 2011-05-19 (12)

comment:19 Changed 8 years ago by jburel

  • Sprint changed from 2011-06-02 (13) to 2011-06-16 (14)

Moved from sprint 2011-06-02 (13)

comment:20 Changed 8 years ago by ajpatterson

Have fix for paths to XSLT files from Colin.

run test ON MACHINE WITH RUNNING SERVR with:

./build.py -f components/tools/OmeroJava/build.xml test -DTEST=integration/schema/SchemaCurrent_TO_2003_FC_Test

Load the file from inside the jar

File srcFile = ResourceUtils.getFile("classpath:" + fileName); 

Other files to change to add needed files to the test jar are same pattern as this commit

http://trac.openmicroscopy.org.uk/ome/changeset/566a652f4b7e2aa4ff4d0b5d9e7d8581529abaed/ome.git

Files to fix

cd ~/Work/ome/components/tools/OmeroJava
mate build.xml test/integration/schema/ ../../antlib/resources/

comment:21 Changed 8 years ago by ajpatterson

  • Milestone changed from OMERO-Beta4.3 to OMERO-Beta4.3.1
  • Sprint 2011-06-16 (14) deleted

comment:22 Changed 8 years ago by ajpatterson

  • Milestone changed from OMERO-Beta4.3.1 to OMERO-Beta4.3
  • Sprint set to 2011-06-16 (14)

Moving back as linked to BUG see #5783

comment:23 Changed 8 years ago by jburel

  • Milestone changed from OMERO-Beta4.3 to OMERO-Beta4.3.1
  • Sprint changed from 2011-06-16 (14) to 2011-06-30 (1)

Moved from sprint 2011-06-16 (14)

comment:24 Changed 8 years ago by ajpatterson

  • Status changed from new to accepted

comment:25 Changed 8 years ago by ajpatterson

Getting error:

Failed Configuration
integration.schema.SchemaCurrent_TO_2003_FC_Test
setUp on instance null(integration.schema.SchemaCurrent_TO_2003_FC_Test)
0.000s

java.io.FileNotFoundException: class path resource [2003-FC/V2/ome.xsd] cannot be resolved to absolute file path because it does not 
reside in the file system: jar:file:/Users/andrew/Work/ome/lib/cache/omero/specification/jars/specification-4.3.1-DEV.jar!/2003-FC/V2/ome.xsd

But the file is inside the jar if I unzip it.

Chris things I need to use:

Blah.class.getResourceAsStream("/file.xsl");
InputStream stream =

comment:26 Changed 8 years ago by ajpatterson

  • Owner ajpatterson deleted
  • Status changed from accepted to new

comment:27 Changed 8 years ago by ajpatterson

  • Owner set to ajpatterson

comment:28 Changed 8 years ago by ajpatterson

  • Status changed from new to accepted

comment:29 Changed 8 years ago by ajpatterson

  • Remaining Time changed from 0.75 to 0.25

comment:30 Changed 8 years ago by Andrew J Patterson <workonly@…>

(In [1f32603abbe12cbbe58e3d30e9aa60a46f587a11/ome.git] on branch develop) Test using multi-resource XSD see #5783, #4377

comment:31 Changed 8 years ago by Andrew J Patterson <workonly@…>

(In [355f1f71e871787746c5de2b693708b9b974bb3f/ome.git] on branch develop) Adding legacy schema support to resolver See #4377

comment:32 Changed 8 years ago by Andrew J Patterson <workonly@…>

  • Remaining Time changed from 0.25 to 0
  • Resolution set to fixed
  • Status changed from accepted to closed

(In [51dd43776ce1111d2a0d94dadbec81364430bb02/ome.git] on branch develop) Working version of downgrade tests Fix #4377

These can be reviewed when they are moved out of OmeroJava integration tests
and into unit tests in the specification component

comment:33 Changed 8 years ago by ajpatterson

Ticket for move to unit tests is #4741

Note: See TracTickets for help on using tickets. You may also have a look at Agilo extensions to the ticket.

1.3.13-PRO © 2008-2011 Agilo Software all rights reserved (this page was served in: 0.193265 sec.)

We're Hiring!