Examples of Bug


Examples of org.hibernate.ejb.test.pack.spacepar.Bug

  }

  public void testSpacePar() throws Exception {
    EntityManagerFactory emf = Persistence.createEntityManagerFactory( "space par", new HashMap() );
    EntityManager em = emf.createEntityManager();
    Bug bug = new Bug();
    bug.setSubject( "Spaces in directory name don't play well on Windows");
    em.getTransaction().begin();
    em.persist( bug );
    em.flush();
    em.remove( bug );
    assertNotNull( bug.getId() );
    em.getTransaction().rollback();
    em.close();
    emf.close();
  }
View Full Code Here

Examples of org.hibernate.ejb.test.pack.spacepar.Bug

  }

  public void testSpacePar() throws Exception {
    EntityManagerFactory emf = Persistence.createEntityManagerFactory( "space par", new HashMap() );
    EntityManager em = emf.createEntityManager();
    Bug bug = new Bug();
    bug.setSubject( "Spaces in directory name don't play well on Windows" );
    em.getTransaction().begin();
    em.persist( bug );
    em.flush();
    em.remove( bug );
    assertNotNull( bug.getId() );
    em.getTransaction().rollback();
    em.close();
    emf.close();
  }
View Full Code Here

Examples of org.hibernate.ejb.test.pack.spacepar.Bug

    File testPackage = buildSpacePar();
    addPackageToClasspath( testPackage );

    EntityManagerFactory emf = Persistence.createEntityManagerFactory( "space par", new HashMap() );
    EntityManager em = emf.createEntityManager();
    Bug bug = new Bug();
    bug.setSubject( "Spaces in directory name don't play well on Windows" );
    em.getTransaction().begin();
    em.persist( bug );
    em.flush();
    em.remove( bug );
    assertNotNull( bug.getId() );
    em.getTransaction().rollback();
    em.close();
    emf.close();
  }
View Full Code Here

Examples of org.hibernate.ejb.test.pack.spacepar.Bug

  }

  public void testSpacePar() throws Exception {
    EntityManagerFactory emf = Persistence.createEntityManagerFactory( "space par", new HashMap() );
    EntityManager em = emf.createEntityManager();
    Bug bug = new Bug();
    bug.setSubject( "Spaces in directory name don't play well on Windows" );
    em.getTransaction().begin();
    em.persist( bug );
    em.flush();
    em.remove( bug );
    assertNotNull( bug.getId() );
    em.getTransaction().rollback();
    em.close();
    emf.close();
  }
View Full Code Here

Examples of org.hibernate.ejb.test.pack.spacepar.Bug

  }

  public void testSpacePar() throws Exception {
    EntityManagerFactory emf = Persistence.createEntityManagerFactory( "space par", new HashMap() );
    EntityManager em = emf.createEntityManager();
    Bug bug = new Bug();
    bug.setSubject( "Spaces in directory name don't play well on Windows" );
    em.getTransaction().begin();
    em.persist( bug );
    em.flush();
    em.remove( bug );
    assertNotNull( bug.getId() );
    em.getTransaction().rollback();
    em.close();
    emf.close();
  }
View Full Code Here

Examples of org.hibernate.ejb.test.pack.spacepar.Bug

  }

  public void testSpacePar() throws Exception {
    EntityManagerFactory emf = Persistence.createEntityManagerFactory( "space par", new HashMap() );
    EntityManager em = emf.createEntityManager();
    Bug bug = new Bug();
    bug.setSubject( "Spaces in directory name don't play well on Windows" );
    em.getTransaction().begin();
    em.persist( bug );
    em.flush();
    em.remove( bug );
    assertNotNull( bug.getId() );
    em.getTransaction().rollback();
    em.close();
    emf.close();
  }
View Full Code Here

Examples of org.infoglue.cms.exception.Bug

  /**
   *
   */
  final void add(StringManager manager) {
    if(manager == null) {
      throw new Bug(sm.getString("chain.add.null_parameter_error"));
    }
    this.managers.add(manager);
  }
View Full Code Here

Examples of org.infoglue.cms.exception.Bug

      //getLogger().info("result:" + result);
      return result;
    }
    catch (MalformedPerl5PatternException e)
    {
      throw new Bug(sm.getString("regexp.match.pattern_error", pattern), e);
    }
    catch (NullPointerException e)
    {
      throw new Bug(sm.getString("regexp.match.illegal_parameters_error", pattern, string), e);
   
  }
View Full Code Here

Examples of org.infoglue.cms.exception.Bug

          tx.commit();
        }
        else
        {
          throw new Bug("You are not allowed to create " + name + " workflows.");
        }
      }
      catch (Exception e)
      {
        logger.error("An error occurred when we tries to run initializeWorkflow():" + e.getMessage(), e);
View Full Code Here

Examples of org.infoglue.cms.exception.Bug

      RequestAnalyser.getRequestAnalyser().decApproximateNumberOfDatabaseQueries();
    }

        if(siteNode == null)
        {
            throw new Bug("The SiteNode with id [" + siteNodeId + "] was not found in SiteNodeHelper.getSiteNodeWithId. This should never happen.");
        }
   
        return siteNode;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.