db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Satheesh Bandaram <sathe...@Sourcery.Org>
Subject Re: [jira] Commented: (DERBY-85) NPE when creating a trigger on a table and default schema doesn't exist.
Date Fri, 10 Feb 2006 19:45:40 GMT
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<br>
<br>
<a class="moz-txt-link-abbreviated" href="mailto:Dyre.Tjeldvoll@Sun.COM">Dyre.Tjeldvoll@Sun.COM</a>
wrote:<br>
<blockquote cite="midx1o3zmkzco37.fsf@sun.com" type="cite">
  <blockquote type="cite">
    <blockquote type="cite">
      <blockquote type="cite">
        <blockquote type="cite">
          <blockquote type="cite">
            <pre wrap="">"KAH" == Knut Anders Hatlen <a class="moz-txt-link-rfc2396E"
href="mailto:Knut.Hatlen@Sun.COM">&lt;Knut.Hatlen@Sun.COM&gt;</a> writes:
            </pre>
          </blockquote>
        </blockquote>
      </blockquote>
    </blockquote>
  </blockquote>
  <pre wrap="">
Hmm, I just discovered, to my surprise and disappointment, that I
am unable to test that this actually works, because
lang/triggerGeneral.sql does not run under DerbyNet or DerbyNetClient.

Why is that? I assumed, in my naivete, that tests should run in
all three frameworks, unless the test is testing something that is specific
to a particular framework... 
  </pre>
</blockquote>
This is the general rule... For tests that verify pure SQL behavior,
the framework shouldn't matter. Many of the derbyLang tests are meant
to test just SQL behavior, so many just run in embedded framework only.
Running these tests in other frameworks might generate different
outputs so may have to generate different masters. Is there a reason
why you would like your new test to run in all frameworks? It seems the
behavior is likely to be the same if you specify a userName in the URL.<br>
<blockquote cite="midx1o3zmkzco37.fsf@sun.com" type="cite">
  <pre wrap="">Is there a way to know if a particular test is only intended for one,
or some frameworks? Other than running it in that framework and seeing
that it fails...? I guess could always run 
find java/testing -name &lt;testname&gt;.out 
and see how many master files the test has. Will that work, or is the output
compared to a default master if there isn't one for that framework? 

  </pre>
</blockquote>
Looking at 'suites' directory is one way. You could also invoke the
tests without actually running them and then see if your test gets
picked up in the framework of your interest. RunTest has <b>listOnly </b>option.<br>
<br>
Satheesh<br>
</body>
</html>


Mime
View raw message