Results 1 to 5 of 5

Thread: Java uint tests don't test a seq of structs

  1. #1
    mdoar's Avatar
    mdoar is offline Registered User
    Name: Matt Doar
    Organization: Consulting Toolsmiths
    Project: Investigation
    Join Date
    Oct 2003
    Location
    California
    Posts
    3

    Java unit tests don't test a seq of structs

    Or perhaps I misunderstand the use of structures.

    ~Matt
    Last edited by mdoar; 01-21-2004 at 05:21 PM.

  2. #2
    marc's Avatar
    marc is offline ZeroC Staff
    Name: Marc Laukien
    Organization: ZeroC, Inc.
    Project: The Internet Communications Engine
    Join Date
    Feb 2003
    Location
    Florida
    Posts
    1,860
    Sorry, but I'm afraid I don't understand the question.

  3. #3
    mdoar's Avatar
    mdoar is offline Registered User
    Name: Matt Doar
    Organization: Consulting Toolsmiths
    Project: Investigation
    Join Date
    Oct 2003
    Location
    California
    Posts
    3
    The file IceJ-1.2.0/test/Ice/operations/Test.ice contains

    struct Structure
    {
    MyClass* p;
    MyEnum e;
    AnotherStruct s;
    };

    and a number of sequences of other types, but not

    sequence<Structure> StructS;

    ~Matt

  4. #4
    marc's Avatar
    marc is offline ZeroC Staff
    Name: Marc Laukien
    Organization: ZeroC, Inc.
    Project: The Internet Communications Engine
    Join Date
    Feb 2003
    Location
    Florida
    Posts
    1,860
    Ah, now I understand. Well, we can't test every possible combination in the test suite. But rest assured that it works fine, we use sequences of structs in many other applications

  5. #5
    mdoar's Avatar
    mdoar is offline Registered User
    Name: Matt Doar
    Organization: Consulting Toolsmiths
    Project: Investigation
    Join Date
    Oct 2003
    Location
    California
    Posts
    3
    Well, actually, one can write code generators to create the .ice and .java files to test many more combinations than are currently tested. This detected some *very* subtle bugs for me once. It's also a helpful way to stress test the slice tools with very large files.

    Anyway, I greatly enjoyed reading the ICE protocol chapter of the documentation last night - this looks like the right way to go. I'll be using it instead of CORBA in the future. Good luck!

    ~Matt

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. c++ make test fails in IceGrid admin test on Ubuntu 10.04
    By bd_at_eclipse in forum Bug Reports
    Replies: 1
    Last Post: 01-26-2011, 03:02 PM
  2. ICE Test fail in./test/Freeze/dbmap
    By mystique52 in forum Help Center
    Replies: 4
    Last Post: 05-23-2009, 06:40 PM
  3. timeout seems don't work
    By jerrylucky in forum Help Center
    Replies: 2
    Last Post: 07-17-2008, 04:30 AM
  4. Mapping Slice structs to C# structs
    By kwaclaw in forum Comments
    Replies: 4
    Last Post: 09-10-2007, 10:42 PM
  5. Ice-3.1.0 - slice2cpp - interface seq in class
    By StuartA in forum Bug Reports
    Replies: 2
    Last Post: 07-15-2006, 08:15 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •