Examples of Target


Examples of org.jquantlib.time.calendars.Target

  @Test
  public void testCachedZero() {

      QL.info("Testing zero-coupon bond prices against cached values...");

        final Calendar calendar = new Target();
        final Date today = calendar.adjust(Date.todaysDate());
        // final Date today = calendar.adjust(new Date(6,Month.June,2007));
      // final Date today = new Date(22,Month.November,2004);
      final Settings settings = new Settings();
      settings.setEvaluationDate(today);
View Full Code Here

Examples of org.mapstruct.ap.test.collection.adder.target.Target

        AdderUsageObserver.setUsed( false );

        Source source = new Source();
        source.setPets( Arrays.asList( "mouse" ) );

        Target target = SourceTargetMapper.INSTANCE.toTarget( source );
        assertThat( target ).isNotNull();
        assertThat( target.getPets().size() ).isEqualTo( 1 );
        assertThat( target.getPets().get( 0 ) ).isEqualTo( 2L );
        assertTrue( AdderUsageObserver.isUsed() );
    }
View Full Code Here

Examples of org.mapstruct.ap.test.imports.referenced.Target

    @IssueKey("178")
    public void mapperHasNoUnnecessaryImports() {
        Source source = new Source();
        source.setNotImported( new NotImportedDatatype( 42 ) );

        Target target = SourceTargetMapper.INSTANCE.sourceToTarget( source );

        assertThat( target ).isNotNull();
        assertThat( target.getNotImported() ).isSameAs( source.getNotImported() );

        target = SecondSourceTargetMapper.INSTANCE.sourceToTarget( source );

        assertThat( target ).isNotNull();
        assertThat( target.getNotImported() ).isSameAs( source.getNotImported() );

        generatedSource.forMapper( SourceTargetMapper.class ).containsNoImportFor( NotImportedDatatype.class );
        generatedSource.forMapper( SecondSourceTargetMapper.class ).containsNoImportFor( NotImportedDatatype.class );
    }
View Full Code Here

Examples of org.mapstruct.ap.test.references.samename.model.Target

    public void severalMappersWithSameSimpleNameCanBeReferenced() {
        Source source = new Source();
        source.setFoo( 123 );
        source.setBar( 456L );

        Target target = SourceTargetMapper.INSTANCE.sourceToTarget( source );

        assertThat( target ).isNotNull();
        assertThat( target.getFoo() ).isEqualTo( "246" );
        assertThat( target.getBar() ).isEqualTo( "912" );
    }
View Full Code Here

Examples of org.mapstruct.itest.simple.Target

        Source source = new Source();
        source.setFoo( 42 );
        source.setBar( 23L );
        source.setZip( 73 );

        Target target = SourceTargetMapper.INSTANCE.sourceToTarget( source );

        assertThat( target ).isNotNull();
        assertThat( target.getFoo() ).isEqualTo( Long.valueOf( 42 ) );
        assertThat( target.getBar() ).isEqualTo( 23 );
        assertThat( target.getZip() ).isEqualTo( "73" );
    }
View Full Code Here

Examples of org.moltools.design.data.Target

     
      log.printLineAndHeader("Validating targets"); //$NON-NLS-1$
      setStatus(CoreMessages.getString("ProbeDesignTask.MESSAGE_VALIDATING")); //$NON-NLS-1$
      //Check the validity of validatable targets
      for (Iterator<ProbeMakerTarget> ti = targets.iterator(); ti.hasNext(); ) {
        Target target = ti.next();
        if (target instanceof ValidatingTarget) {
          ValidatingTarget vt = (ValidatingTarget) target;
          switch (vt.isValidTarget()) {
            case ValidatingTarget.OK:
              break;
            case ValidatingTarget.INVALID:
              throw new UnsupportedOperationException(target.getID() +
                  CoreMessages.getString("ProbeDesignTask.MESSAGE_INVALID")); //$NON-NLS-1$
            case VariantTarget.NOT_SET:
              throw new UnsupportedOperationException(target.getID() +
                  CoreMessages.getString("ProbeDesignTask.MESSAGE_NO_VARIANT")); //$NON-NLS-1$
            default:
              throw new IllegalArgumentException("Unexpected result from Target.isValidTarget()"); //$NON-NLS-1$
         
        }       
View Full Code Here

Examples of org.nfctools.spi.tama.response.GetGeneralStatusResp.Target

    int lastError = byteAsInt(payload[0]);
    boolean externalRfDetected = payload[1] == 0x01;
    int numberOfTargets = byteAsInt(payload[2]);
    List<Target> targets = new ArrayList<GetGeneralStatusResp.Target>(2);
    for (int x = 0; x < numberOfTargets; x++) {
      targets.add(new Target(payload[3 + (x * 4)], payload[3 + (x * 4) + 1], payload[3 + (x * 4) + 2],
          payload[3 + (x * 4) + 3]));
    }
    int samStatus = byteAsInt(payload[3 + (4 * numberOfTargets)]);
    return new GetGeneralStatusResp(lastError, externalRfDetected, numberOfTargets, samStatus, targets);
  }
View Full Code Here

Examples of org.openqa.jetty.html.Target

                              String id,
                              LifeCycle lc,
                              String name)
    {
        Composite comp=new Composite();
        comp.add(new Target(id));
        Font font = new Font();
        comp.add(font);
        font.color(lc.isStarted()?"green":"red");
        font.add(name);
View Full Code Here

Examples of org.openquark.cal.valuenode.Target

        /**
         * Returns the ValueNode corresponding to the specified value expression, or null if it is not valid.
         */
        private ValueNode getValueNodeFromCode(String valueText) {
            // Now create a target to be run by a value runner, and return the result.
            Target valueTarget = new Target.SimpleTarget(valueText);

            try {
                return valueRunner.getValue (valueTarget, perspective.getWorkingModuleName());
            } catch (Exception e) {
                e.printStackTrace ();
View Full Code Here

Examples of org.osgi.service.blueprint.reflect.Target

            } finally {
                processingStack.removeLast();
            }
        }
       
        Target factoryComponent = component.getFactoryComponent();
        if(factoryComponent != null) {
           
            try {
               
                if(component instanceof MutableBeanMetadata) {
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.