input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
shouldNotAppendWhereConditionIfEmpty ( ) { java . lang . String selectClause = uniqueString ( ) ; java . lang . String fromClause = uniqueString ( ) ; setupSelectAndFromClause ( selectClause , fromClause ) ; given ( whereClauseSqlGenerator . whereConditions ( eq ( queryData ) , eq ( alternative ) , anyString ( ) ) ) . willReturn ( emptySetOf ( java . lang . String . class ) ) ; java . lang . String sql = generator . toSql ( queryData ) ; java . lang . String expected = createMinimalSqlStatement ( selectClause , fromClause ) ; "<AssertPlaceHolder>" ; } createMinimalSqlStatement ( java . lang . String , java . lang . String ) { java . lang . String expected = ( ( ( ( ( ( "SELECT<sp>" + selectClause ) + "\n" ) + "FROM" ) + "\n" ) + "<sp>" ) + fromClause ) + "\n" ; return expected ; }
org . junit . Assert . assertThat ( sql , org . hamcrest . CoreMatchers . is ( expected ) )
confirmVersion ( ) { "<AssertPlaceHolder>" ; } getVersion ( ) { return com . simpligility . maven . plugins . androidndk . PluginInfo . version ; }
org . junit . Assert . assertNotNull ( com . simpligility . maven . plugins . androidndk . PluginInfo . getVersion ( ) )
testCallRegisterOnceTwice ( ) { java . lang . String resource = "path/to/resource" ; final byte [ ] bytes = new byte [ ] { 1 , 2 , 3 } ; final java . util . ArrayList < java . lang . Boolean > log = new java . util . ArrayList < java . lang . Boolean > ( ) ; org . eclipse . rap . rwt . service . ResourceLoader loader = new org . eclipse . rap . rwt . service . ResourceLoader ( ) { public java . io . InputStream getResourceAsStream ( java . lang . String resourceName ) throws java . io . IOException { log . add ( Boolean . TRUE ) ; return new java . io . ByteArrayInputStream ( bytes ) ; } } ; resourceManager . registerOnce ( resource , loader ) ; resourceManager . registerOnce ( resource , loader ) ; "<AssertPlaceHolder>" ; } size ( ) { return new org . eclipse . jface . internal . databinding . swt . ControlSizeProperty ( ) ; }
org . junit . Assert . assertEquals ( 1 , log . size ( ) )
testPrePostArjunEmail ( ) { theory . intervals . UnaryCharIntervalSolver ba = new theory . intervals . UnaryCharIntervalSolver ( ) ; transducers . sst . SST < theory . characters . CharPred , theory . characters . CharFunc , java . lang . Character > sst = getSTTArjun ( ba ) ; automata . sfa . SFA < theory . characters . CharPred , java . lang . Character > outputSFA = arjunOutputSFA ( ba ) ; automata . sfa . SFA < theory . characters . CharPred , java . lang . Character > pre = sst . getPreImage ( outputSFA , ba ) ; "<AssertPlaceHolder>" ; } isEmpty ( ) { return ( size ( ) ) == 0 ; }
org . junit . Assert . assertTrue ( ( ! ( pre . isEmpty ( ) ) ) )
testDispatchDuringDispatch ( ) { final react . Signal < java . lang . Integer > signal = react . Signal . create ( ) ; react . SignalTest . AccSlot < java . lang . Integer > counter = new react . SignalTest . AccSlot < java . lang . Integer > ( ) ; signal . connect ( counter ) ; signal . connect ( new react . Slot < java . lang . Integer > ( ) { public void onEmit ( java . lang . Integer value ) { if ( value == 5 ) signal . emit ( ( value * 2 ) ) ; else org . junit . Assert . fail ( "once()<sp>lner<sp>notified<sp>more<sp>than<sp>once" ) ; } } ) . once ( ) ; signal . emit ( 5 ) ; "<AssertPlaceHolder>" ; } emit ( T ) { react . Signal . notifyEmit ( event ) ; }
org . junit . Assert . assertEquals ( java . util . Arrays . asList ( 5 , 10 ) , counter . events )
testCreateIfNotExistsNull ( ) { com . j256 . ormlite . dao . Dao < com . j256 . ormlite . dao . Foo , java . lang . Integer > dao = createDao ( com . j256 . ormlite . dao . Foo . class , true ) ; "<AssertPlaceHolder>" ; } createIfNotExists ( T ) { if ( data == null ) { return null ; } T existing = queryForSameId ( data ) ; if ( existing == null ) { create ( data ) ; return data ; } else { return existing ; } }
org . junit . Assert . assertNull ( dao . createIfNotExists ( null ) )
testGetVolume ( ) { com . bixly . pastevid . recorders . RecorderTest . log ( "getVolume" ) ; com . bixly . pastevid . recorders . Recorder instance = new com . bixly . pastevid . recorders . Recorder ( new com . bixly . pastevid . recorders . RecorderTest . TestMeasurable ( ) ) ; int expResult = 0 ; int result = instance . getVolume ( ) ; "<AssertPlaceHolder>" ; } getVolume ( ) { return this . audioRecorder . getVolume ( ) ; }
org . junit . Assert . assertTrue ( ( result >= expResult ) )
testDontCancelOnErrorWithAnnotation ( ) { org . databene . contiperf . junit . ContiPerfRuleTest . TestBean test = new org . databene . contiperf . junit . ContiPerfRuleTest . TestBean ( ) ; check ( test , "dontCancelOnErrorWithAnnotation" ) ; int count = test . dontCancelOnErrorWithAnnotation . get ( ) ; "<AssertPlaceHolder>" ; } check ( org . databene . contiperf . junit . ContiPerfRuleTest$TestBean , java . lang . String ) { org . databene . contiperf . junit . ContiPerfRule rule = new org . databene . contiperf . junit . ContiPerfRule ( new org . databene . contiperf . report . ListReportModule ( ) ) ; java . lang . reflect . Method method = org . databene . contiperf . junit . ContiPerfRuleTest . TestBean . class . getDeclaredMethod ( methodName , new java . lang . Class < ? > [ 0 ] ) ; org . junit . runners . model . Statement base = new org . databene . contiperf . junit . ContiPerfRuleTest . InvokerStatement ( target , method ) ; org . junit . runners . model . FrameworkMethod fwMethod = new org . junit . runners . model . FrameworkMethod ( method ) ; org . junit . runners . model . Statement perfTestStatement = rule . apply ( base , fwMethod , target ) ; perfTestStatement . evaluate ( ) ; return target ; }
org . junit . Assert . assertEquals ( 100 , count )
literalEqualType ( ) { final org . apache . commons . rdf . jsonldjava . JsonLdLiteral lit1 = rdf . createLiteral ( "1" , Types . XSD_INTEGER ) ; final org . apache . commons . rdf . jsonldjava . JsonLdLiteral lit2 = rdf . createLiteral ( "1" , Types . XSD_INTEGER ) ; "<AssertPlaceHolder>" ; } createLiteral ( java . lang . String , org . apache . commons . rdf . api . IRI ) { return rdf4jFactory . createLiteral ( lexicalForm , dataType ) ; }
org . junit . Assert . assertEquals ( lit1 , lit2 )
testHighlightFirst ( ) { java . lang . String term = "Bart<sp>Simpson" ; java . lang . String publication = "<p>Bart<sp>Simpson<sp>is<sp>the<sp>cooleast<sp>sk8ter<sp>in<sp>the<sp>world.<sp>Miss<sp>Krabappel<sp>doesn't<sp>see<sp>le<sp>good<sp>part<sp>in<sp>Bart<sp>Simpson.</p>" ; java . lang . String definition = "Skatter" ; java . lang . String className = "cool" ; boolean onlyFirst = true ; com . silverpeas . glossary . HighlightGlossaryTerms instance = new com . silverpeas . glossary . HighlightGlossaryTerms ( ) ; java . lang . String expResult = "<p><a<sp>href=\"#\"<sp>class=\"cool\"<sp>title=\"Skatter\">Bart<sp>Simpson</a><sp>is<sp>the<sp>cooleast<sp>sk8ter<sp>in<sp>the<sp>world.<sp>Miss<sp>Krabappel<sp>doesn\'t<sp>see<sp>le<sp>good<sp>part<sp>in<sp>Bart<sp>Simpson.</p>" ; java . lang . String result = instance . highlight ( term , publication , definition , className , onlyFirst ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertEquals ( expResult , result )
testDelete ( ) { currentTable = ( tbl_test ) + "Delete" ; insertTestValues ( currentTable ) ; cleanupEntities ( currentTable ) ; org . talend . components . api . component . runtime . BoundedReader reader = createReader ( currentTable , filter , false ) ; "<AssertPlaceHolder>" ; reader . close ( ) ; } start ( ) { started = true ; makeHttpRequest ( ) ; return hasMoreRecords ; }
org . junit . Assert . assertFalse ( reader . start ( ) )
test_empty_list ( ) { java . lang . String str = "SELECT<sp>*<sp>WHERE<sp>{<sp>VALUES<sp>(?o)<sp>{?objs}<sp>?s<sp>?p<sp>?o<sp>}" ; org . apache . jena . query . ParameterizedSparqlString pss = new org . apache . jena . query . ParameterizedSparqlString ( str ) ; java . util . List < org . apache . jena . query . RDFNode > objs = new java . util . ArrayList ( ) ; pss . setValues ( "objs" , objs ) ; java . lang . String exp = "SELECT<sp>*<sp>WHERE<sp>{<sp>VALUES<sp>(?o)<sp>{}<sp>?s<sp>?p<sp>?o<sp>}" ; java . lang . String res = pss . toString ( ) ; "<AssertPlaceHolder>" ; } toString ( ) { return ( ( ( ( ( ( ( ( ( ( ( "ESSettings{" + "hostToPortMapping=" ) + ( hostToPortMapping ) ) + ",<sp>clusterName='" ) + ( clusterName ) ) + '\'' ) + ",<sp>shards=" ) + ( shards ) ) + ",<sp>replicas=" ) + ( replicas ) ) + ",<sp>indexName='" ) + ( indexName ) ) + '}' ; }
org . junit . Assert . assertEquals ( exp , res )
testDefineLigand_ImplicitHydrogen ( ) { org . openscience . cdk . interfaces . IAtomContainer molecule = org . openscience . cdk . geometry . cip . CIPToolTest . smiles . parseSmiles ( "CC(C)C(C#N)(C(=C)C)" ) ; org . openscience . cdk . geometry . cip . ILigand ligand = org . openscience . cdk . geometry . cip . CIPTool . defineLigand ( molecule , new org . openscience . cdk . geometry . cip . VisitedAtoms ( ) , 3 , CIPTool . HYDROGEN ) ; "<AssertPlaceHolder>" ; } defineLigand ( org . openscience . cdk . interfaces . IAtomContainer , org . openscience . cdk . geometry . cip . VisitedAtoms , int , int ) { if ( ligandAtom == ( org . openscience . cdk . geometry . cip . CIPTool . HYDROGEN ) ) { return new org . openscience . cdk . geometry . cip . ImplicitHydrogenLigand ( container , visitedAtoms , container . getAtom ( chiralAtom ) ) ; } else { return new org . openscience . cdk . geometry . cip . Ligand ( container , visitedAtoms , container . getAtom ( chiralAtom ) , container . getAtom ( ligandAtom ) ) ; } }
org . junit . Assert . assertTrue ( ( ligand instanceof org . openscience . cdk . geometry . cip . ImplicitHydrogenLigand ) )
shouldSerializeCollectionWithPrefixTag ( ) { java . lang . String expectedResult = "{\"price\":15.0,\"comments\":\"pack<sp>it<sp>nicely,<sp>please\"}" ; expectedResult += ',' + expectedResult ; expectedResult = ( "{\"orders\":[" + expectedResult ) + "]}" ; br . com . caelum . vraptor . serialization . gson . GsonJSONSerializationTest . Order order = new br . com . caelum . vraptor . serialization . gson . GsonJSONSerializationTest . Order ( new br . com . caelum . vraptor . serialization . gson . GsonJSONSerializationTest . Client ( "guilherme<sp>silveira" ) , 15.0 , "pack<sp>it<sp>nicely,<sp>please" ) ; serialization . from ( java . util . Arrays . asList ( order , order ) , "orders" ) . serialize ( ) ; "<AssertPlaceHolder>" ; } result ( ) { return new java . lang . String ( stream . toByteArray ( ) ) ; }
org . junit . Assert . assertThat ( result ( ) , org . hamcrest . Matchers . is ( org . hamcrest . Matchers . equalTo ( expectedResult ) ) )
test ( ) { final org . tinyradius . attribute . IntegerAttribute intAttr = new org . tinyradius . attribute . IntegerAttribute ( 27 , 0 ) ; final long bigValue = 4294967295L ; System . err . println ( ( ( int ) ( bigValue ) ) ) ; System . err . println ( bigValue ) ; final java . lang . String bigValueSt = java . lang . Long . toString ( bigValue ) ; intAttr . setAttributeValue ( bigValueSt ) ; "<AssertPlaceHolder>" ; } getAttributeValue ( ) { java . lang . StringBuffer ip = new java . lang . StringBuffer ( ) ; byte [ ] data = getAttributeData ( ) ; if ( ( data == null ) || ( ( data . length ) != 4 ) ) throw new java . lang . RuntimeException ( "ip<sp>attribute:<sp>expected<sp>4<sp>bytes<sp>attribute<sp>data" ) ; ip . append ( ( ( data [ 0 ] ) & 255 ) ) ; ip . append ( "." ) ; ip . append ( ( ( data [ 1 ] ) & 255 ) ) ; ip . append ( "." ) ; ip . append ( ( ( data [ 2 ] ) & 255 ) ) ; ip . append ( "." ) ; ip . append ( ( ( data [ 3 ] ) & 255 ) ) ; return ip . toString ( ) ; }
org . junit . Assert . assertEquals ( bigValueSt , intAttr . getAttributeValue ( ) )
getAllToContact_test ( ) { fr . mycellar . domain . contact . Contact contact = new fr . mycellar . domain . contact . Contact ( ) ; contact . setCurrent ( new org . joda . time . LocalDate ( ) . minusDays ( 3 ) ) ; contact . setNext ( new org . joda . time . LocalDate ( ) . plusDays ( 3 ) ) ; contact . setProducer ( entityManager . find ( fr . mycellar . domain . wine . Producer . class , 1 ) ) ; contact . setText ( "Text" ) ; jpaContactRepository . save ( contact ) ; contact = new fr . mycellar . domain . contact . Contact ( ) ; contact . setCurrent ( new org . joda . time . LocalDate ( ) . minusDays ( 3 ) ) ; contact . setNext ( new org . joda . time . LocalDate ( ) . minusDays ( 1 ) ) ; contact . setProducer ( entityManager . find ( fr . mycellar . domain . wine . Producer . class , 2 ) ) ; contact . setText ( "Text" ) ; contact = jpaContactRepository . save ( contact ) ; "<AssertPlaceHolder>" ; } getAllToContact ( ) { javax . persistence . criteria . CriteriaBuilder criteriaBuilder = getEntityManager ( ) . getCriteriaBuilder ( ) ; javax . persistence . criteria . CriteriaQuery < fr . mycellar . domain . contact . Contact > query = criteriaBuilder . createQuery ( fr . mycellar . domain . contact . Contact . class ) ; javax . persistence . criteria . Root < fr . mycellar . domain . contact . Contact > root = query . from ( fr . mycellar . domain . contact . Contact . class ) ; javax . persistence . criteria . Subquery < fr . mycellar . domain . contact . Contact > subquery = query . subquery ( fr . mycellar . domain . contact . Contact . class ) ; javax . persistence . criteria . Root < fr . mycellar . domain . contact . Contact > subroot = subquery . from ( fr . mycellar . domain . contact . Contact . class ) ; subquery . select ( subroot ) . where ( criteriaBuilder . equal ( root . get ( "producer" ) , subroot . get ( "producer" ) ) , criteriaBuilder . greaterThan ( subroot . < org . joda . time . LocalDate > get ( "current" ) , root . < org . joda . time . LocalDate > get ( "current" ) ) ) ; return getEntityManager ( ) . createQuery ( query . select ( root ) . where ( criteriaBuilder . not ( criteriaBuilder . exists ( subquery ) ) , criteriaBuilder . lessThanOrEqualTo ( root . < org . joda . time . LocalDate > get ( "next" ) , new org . joda . time . LocalDate ( ) ) ) ) . getResultList ( ) ; }
org . junit . Assert . assertEquals ( java . util . Arrays . asList ( contact ) , jpaContactRepository . getAllToContact ( ) )
testInferredFreeFlowing ( ) { org . locationtech . jts . geom . Coordinate a = new org . locationtech . jts . geom . Coordinate ( ( - 73.990989 ) , 40.750167 ) ; org . locationtech . jts . geom . Coordinate b = new org . locationtech . jts . geom . Coordinate ( ( - 73.988049 ) , 40.749094 ) ; org . locationtech . jts . geom . Coordinate c = new org . locationtech . jts . geom . Coordinate ( ( - 73.984981 ) , 40.747761 ) ; org . opentripplanner . routing . vertextype . IntersectionVertex u = vertex ( "from_v" , a , false ) ; org . opentripplanner . routing . vertextype . IntersectionVertex v = vertex ( "intersection" , b , false ) ; org . opentripplanner . routing . vertextype . IntersectionVertex w = vertex ( "to_v" , c , false ) ; org . opentripplanner . routing . edgetype . StreetEdge fromEdge = edge ( u , v , 1.0 , false ) ; org . opentripplanner . routing . edgetype . StreetEdge toEdge = edge ( v , w , 1.0 , false ) ; float fromSpeed = 1.0F ; float toSpeed = 1.0F ; org . opentripplanner . routing . core . TraverseMode mode = TraverseMode . CAR ; double traversalCost = costModel . computeTraversalCost ( v , fromEdge , toEdge , mode , options , fromSpeed , toSpeed ) ; "<AssertPlaceHolder>" ; } computeTraversalCost ( org . opentripplanner . routing . vertextype . IntersectionVertex , org . opentripplanner . routing . edgetype . StreetEdge , org . opentripplanner . routing . edgetype . StreetEdge , org . opentripplanner . routing . core . TraverseMode , org . opentripplanner . routing . core . RoutingRequest , float , float ) { if ( v . inferredFreeFlowing ( ) ) { return 0 ; } if ( ! ( mode . isDriving ( ) ) ) { return computeNonDrivingTraversalCost ( v , from , to , fromSpeed , toSpeed ) ; } double turnCost = 0 ; int turnAngle = calculateTurnAngle ( from , to , options ) ; if ( v . trafficLight ) { if ( isRightTurn ( turnAngle ) ) { turnCost = expectedRightAtLightTimeSec ; } else if ( isLeftTurn ( turnAngle ) ) { turnCost = expectedLeftAtLightTimeSec ; } else { turnCost = expectedStraightAtLightTimeSec ; } } else { if ( ( ( from . getCarSpeed ( ) ) > 25 ) && ( ( to . getCarSpeed ( ) ) > 25 ) ) { return 0 ; } if ( isRightTurn ( turnAngle ) ) { turnCost = expectedRightNoLightTimeSec ; } else if ( isLeftTurn ( turnAngle ) ) { turnCost = expectedLeftNoLightTimeSec ; } else { turnCost = expectedStraightNoLightTimeSec ; } } return turnCost ; }
org . junit . Assert . assertEquals ( 0.0 , traversalCost , 0.0 )
testCombinedSize ( ) { gov . llnl . ontology . util . Set < java . lang . String > set1 = new gov . llnl . ontology . util . HashSet < java . lang . String > ( ) ; for ( java . lang . String s : gov . llnl . ontology . util . CombinedSetTest . array1 ) set1 . add ( s ) ; gov . llnl . ontology . util . Set < java . lang . String > set2 = new gov . llnl . ontology . util . HashSet < java . lang . String > ( ) ; for ( java . lang . String s : gov . llnl . ontology . util . CombinedSetTest . array2 ) set2 . add ( s ) ; gov . llnl . ontology . util . Set < java . lang . String > combined = new gov . llnl . ontology . util . CombinedSet < java . lang . String > ( set1 , set2 ) ; "<AssertPlaceHolder>" ; } size ( ) { return counts . size ( ) ; }
org . junit . Assert . assertEquals ( 6 , combined . size ( ) )
shouldCreateIteratorOverValuesWhenSuppliedIteratorOfUnknownObjects ( ) { java . util . List < java . lang . String > values = new java . util . ArrayList < java . lang . String > ( ) ; for ( int i = 0 ; i != 10 ; ++ i ) values . add ( ( "<sp>" + i ) ) ; java . util . Iterator < java . lang . Long > iter = factory . create ( values . iterator ( ) ) ; java . util . Iterator < java . lang . String > valueIter = values . iterator ( ) ; while ( iter . hasNext ( ) ) { "<AssertPlaceHolder>" ; } } next ( ) { return ( index ) < ( org . modeshape . schematic . internal . document . IndexSequence . MAXIMUM_KEY_COUNT ) ? org . modeshape . schematic . internal . document . IndexSequence . INDEX_VALUES [ ( ( index ) ++ ) ] : java . lang . String . valueOf ( ( ( index ) ++ ) ) ; }
org . junit . Assert . assertThat ( iter . next ( ) , org . hamcrest . core . Is . is ( factory . create ( valueIter . next ( ) ) ) )
testWithEscapeDisabled ( ) { final com . orangesignal . csv . CsvConfig cfg = new com . orangesignal . csv . CsvConfig ( ) ; cfg . withEscapeDisabled ( false ) ; "<AssertPlaceHolder>" ; } isEscapeDisabled ( ) { return escapeDisabled ; }
org . junit . Assert . assertThat ( cfg . isEscapeDisabled ( ) , org . hamcrest . core . Is . is ( false ) )
testReadWriteLong ( ) { java . io . File file = new java . io . File ( getDirectory ( ) , "test" ) ; for ( int i = 0 ; i < 10 ; i ++ ) { com . github . zk1931 . jzab . FileUtils . writeLongToFile ( i , file ) ; "<AssertPlaceHolder>" ; } } readLongFromFile ( java . io . File ) { try ( java . io . FileInputStream fis = new java . io . FileInputStream ( file ) ; java . io . BufferedReader br = new java . io . BufferedReader ( new java . io . InputStreamReader ( fis , java . nio . charset . Charset . forName ( "UTF-8" ) ) ) ) { long value = java . lang . Long . parseLong ( br . readLine ( ) ) ; return value ; } }
org . junit . Assert . assertEquals ( i , com . github . zk1931 . jzab . FileUtils . readLongFromFile ( file ) )
testCountByG_U_R_F_M_StatusInTrash_BothRepositories ( ) { com . liferay . portal . kernel . dao . orm . QueryDefinition < com . liferay . document . library . kernel . model . DLFileEntry > queryDefinition = new com . liferay . portal . kernel . dao . orm . QueryDefinition ( ) ; queryDefinition . setStatus ( WorkflowConstants . STATUS_IN_TRASH , true ) ; "<AssertPlaceHolder>" ; } doCountBy_G_U_R_F_M_BothRepositories ( long , java . lang . String , com . liferay . portal . kernel . dao . orm . QueryDefinition ) { java . util . List < java . lang . Long > repositoryIds = com . liferay . portal . kernel . util . ListUtil . toList ( new long [ ] { _defaultRepositoryFolder . getRepositoryId ( ) , _newRepositoryFolder . getRepositoryId ( ) } ) ; java . util . List < java . lang . Long > folderIds = com . liferay . portal . kernel . util . ListUtil . toList ( new long [ ] { _defaultRepositoryFolder . getFolderId ( ) , _newRepositoryFolder . getFolderId ( ) } ) ; return doCountBy_G_U_R_F_M ( userId , repositoryIds , folderIds , mimeType , queryDefinition ) ; }
org . junit . Assert . assertEquals ( 4 , doCountBy_G_U_R_F_M_BothRepositories ( 0 , null , queryDefinition ) )
twoOccurrences ( ) { opennlp . tools . util . Span [ ] spans = es . ehu . si . ixa . pipe . nerc . DictionariesNameFinderTest . finder . nercToSpansExact ( new java . lang . String [ ] { "Achilles" , "Apollo" , "Zeus" , "Achilles" } ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertEquals ( 2 , spans . length )
validateSetTezJarLocalResourcesDefinedExistingDirectoryIgnoredSetToFalse ( ) { java . net . URL [ ] cp = ( ( java . net . URLClassLoader ) ( java . lang . ClassLoader . getSystemClassLoader ( ) ) ) . getURLs ( ) ; java . lang . StringBuffer buffer = new java . lang . StringBuffer ( ) ; for ( java . net . URL url : cp ) { buffer . append ( url . toExternalForm ( ) ) ; buffer . append ( "," ) ; } org . apache . tez . dag . api . TezConfiguration conf = new org . apache . tez . dag . api . TezConfiguration ( ) ; conf . set ( TezConfiguration . TEZ_LIB_URIS , buffer . toString ( ) ) ; conf . setBoolean ( TezConfiguration . TEZ_IGNORE_LIB_URIS , false ) ; org . apache . hadoop . security . Credentials credentials = new org . apache . hadoop . security . Credentials ( ) ; java . util . Map < java . lang . String , org . apache . hadoop . yarn . api . records . LocalResource > localizedMap = org . apache . tez . client . TezClientUtils . setupTezJarsLocalResources ( conf , credentials ) ; "<AssertPlaceHolder>" ; } isEmpty ( ) { return ( headIndex ) == ( splits . size ( ) ) ; }
org . junit . Assert . assertFalse ( localizedMap . isEmpty ( ) )
test_setParentLorg_eclipse_swt_widgets_Composite ( ) { if ( control . isReparentable ( ) ) { org . eclipse . swt . widgets . Shell originalParent = new org . eclipse . swt . widgets . Shell ( ) ; org . eclipse . swt . widgets . Shell newParent = new org . eclipse . swt . widgets . Shell ( ) ; org . eclipse . swt . widgets . Button b = new org . eclipse . swt . widgets . Button ( originalParent , org . eclipse . swt . SWT . PUSH ) ; b . setParent ( newParent ) ; originalParent . dispose ( ) ; "<AssertPlaceHolder>" ; newParent . dispose ( ) ; } } isDisposed ( ) { return ( index ) < 0 ; }
org . junit . Assert . assertFalse ( b . isDisposed ( ) )
testUnsettableReferenceUnset ( ) { org . eclipselabs . mongoemf . junit . model . PrimaryObject primaryObject = ModelFactory . eINSTANCE . createPrimaryObject ( ) ; saveObject ( primaryObject ) ; org . eclipse . emf . ecore . resource . ResourceSet resourceSet = createResourceSet ( ) ; org . eclipse . emf . ecore . resource . Resource resource = resourceSet . getResource ( primaryObject . eResource ( ) . getURI ( ) , true ) ; org . eclipselabs . mongoemf . junit . model . PrimaryObject object = ( ( org . eclipselabs . mongoemf . junit . model . PrimaryObject ) ( resource . getContents ( ) . get ( 0 ) ) ) ; "<AssertPlaceHolder>" ; } isSetUnsettableReference ( ) { return unsettableReferenceESet ; }
org . junit . Assert . assertFalse ( object . isSetUnsettableReference ( ) )
testExistingEquals ( ) { try { org . eclipse . xtend2 . lib . StringConcatenation _builder = new org . eclipse . xtend2 . lib . StringConcatenation ( ) ; _builder . append ( "import<sp>org.eclipse.xtend.lib.annotations.Data" ) ; _builder . newLine ( ) ; _builder . append ( "@Data<sp>class<sp>Foo<sp>{" ) ; _builder . newLine ( ) ; _builder . append ( "\t" ) ; _builder . append ( "int<sp>foo" ) ; _builder . newLine ( ) ; _builder . append ( "\t" ) ; _builder . append ( "override<sp>equals(Object<sp>o)<sp>{" ) ; _builder . newLine ( ) ; _builder . append ( "\t\t" ) ; _builder . append ( "true" ) ; _builder . newLine ( ) ; _builder . append ( "\t" ) ; _builder . append ( "}" ) ; _builder . newLine ( ) ; _builder . append ( "}" ) ; _builder . newLine ( ) ; final org . eclipse . xtext . util . IAcceptor < org . eclipse . xtext . xbase . testing . CompilationTestHelper . Result > _function = ( org . eclipse . xtext . xbase . testing . CompilationTestHelper . Result it ) -> { try { final java . lang . Object instance = it . getCompiledClass ( ) . getDeclaredConstructor ( . class ) . newInstance ( java . lang . Integer . valueOf ( 2 ) ) ; final java . lang . reflect . Method equals = it . getCompiledClass ( ) . getDeclaredMethod ( "equals" , . class ) ; "<AssertPlaceHolder>" ; } catch ( _e ) { throw org . eclipse . xtext . xbase . lib . Exceptions . sneakyThrow ( org . eclipse . xtend . core . tests . compiler . _e ) ; } } ; this . compilationTestHelper . compile ( _builder , _function ) ; } catch ( java . lang . Throwable _e ) { throw org . eclipse . xtext . xbase . lib . Exceptions . sneakyThrow ( _e ) ; } } getCompiledClass ( ) { return t . getCompiledClass ( ) ; }
org . junit . Assert . assertEquals ( java . lang . Boolean . valueOf ( true ) , equals . invoke ( instance , java . lang . Integer . valueOf ( 1 ) ) )
testFusedMappersObjectReuseBug ( ) { org . apache . crunch . Pipeline pipeline = new org . apache . crunch . impl . mr . MRPipeline ( org . apache . crunch . MultipleOutputIT . class , tmpDir . getDefaultConfiguration ( ) ) ; org . apache . crunch . PCollection < org . apache . crunch . test . StringWrapper > stringWrappers = pipeline . readTextFile ( tmpDir . copyResourceFileName ( "set2.txt" ) ) . parallelDo ( new org . apache . crunch . test . StringWrapper . StringToStringWrapperMapFn ( ) , org . apache . crunch . types . avro . Avros . reflects ( org . apache . crunch . test . StringWrapper . class ) ) ; org . apache . crunch . PCollection < java . lang . String > stringsA = stringWrappers . parallelDo ( new org . apache . crunch . MultipleOutputIT . AppendFn ( "A" ) , stringWrappers . getPType ( ) ) . parallelDo ( new org . apache . crunch . test . StringWrapper . StringWrapperToStringMapFn ( ) , org . apache . crunch . types . writable . Writables . strings ( ) ) ; org . apache . crunch . PCollection < java . lang . String > stringsB = stringWrappers . parallelDo ( new org . apache . crunch . MultipleOutputIT . AppendFn ( "B" ) , stringWrappers . getPType ( ) ) . parallelDo ( new org . apache . crunch . test . StringWrapper . StringWrapperToStringMapFn ( ) , org . apache . crunch . types . writable . Writables . strings ( ) ) ; java . lang . String outputA = tmpDir . getFileName ( "set2.txt" 0 ) ; java . lang . String outputB = tmpDir . getFileName ( "stringsB" ) ; pipeline . writeTextFile ( stringsA , outputA ) ; pipeline . writeTextFile ( stringsB , outputB ) ; org . apache . crunch . PipelineResult pipelineResult = pipeline . done ( ) ; "<AssertPlaceHolder>" ; checkFileContents ( outputA , com . google . common . collect . Lists . newArrayList ( "cA" , "dA" , "aA" ) ) ; checkFileContents ( outputB , com . google . common . collect . Lists . newArrayList ( "cB" , "dB" , "aB" ) ) ; } getStageResults ( ) { return stageResults ; }
org . junit . Assert . assertEquals ( 1 , pipelineResult . getStageResults ( ) . size ( ) )
testNotNotificationString_assertFalse ( ) { new org . nhindirect . common . tx . impl . RESTTxServiceClient_suppressNotificationTest . TestPlan < org . nhindirect . common . tx . model . Tx > ( ) { @ org . nhindirect . common . tx . impl . Override protected boolean suppressNotification ( org . nhindirect . common . tx . model . Tx tx ) throws org . nhindirect . common . tx . impl . Exception { return client . suppressNotification ( tx ) ; } @ org . nhindirect . common . tx . impl . Override protected org . nhindirect . common . tx . model . Tx getNotficationSubmit ( ) throws org . nhindirect . common . tx . impl . Exception { javax . mail . internet . MimeMessage msg = org . nhindirect . common . util . TestUtils . readMimeMessageFromFile ( "MDNMessage.txt" ) ; java . util . Map < java . lang . String , org . nhindirect . common . tx . model . TxDetail > details = new org . nhindirect . common . tx . impl . DefaultTxDetailParser ( ) . getMessageDetails ( msg ) ; details . put ( TxDetailType . PARENT_MSG_ID . getType ( ) , new org . nhindirect . common . tx . model . TxDetail ( org . nhindirect . common . tx . model . TxDetailType . PARENT_MSG_ID , "NotNotification" ) ) ; org . nhindirect . common . tx . model . Tx tx = new org . nhindirect . common . tx . model . Tx ( org . nhindirect . common . tx . TxUtil . getMessageType ( msg ) , details ) ; return tx ; } protected void doAssertions ( boolean b ) throws org . nhindirect . common . tx . impl . Exception { "<AssertPlaceHolder>" ; } } . perform ( ) ; }
org . junit . Assert . assertFalse ( b )
testLog ( ) { org . nd4j . linalg . api . ndarray . INDArray log = org . nd4j . linalg . factory . Nd4j . linspace ( 1 , 6 , 6 ) ; org . nd4j . linalg . api . ndarray . INDArray transformed = org . nd4j . linalg . ops . transforms . Transforms . log ( log ) ; org . nd4j . linalg . api . ndarray . INDArray assertion = org . nd4j . linalg . factory . Nd4j . create ( new double [ ] { 0.0 , 0.69314718 , 1.09861229 , 1.38629436 , 1.60943791 , 1.79175947 } ) ; "<AssertPlaceHolder>" ; } create ( float [ ] , int , int , int [ ] , long , char ) { int [ ] shape = new int [ ] { rows , columns } ; shape = org . nd4j . linalg . factory . Nd4j . getEnsuredShape ( shape ) ; org . nd4j . linalg . factory . Nd4j . checkShapeValues ( data . length , shape ) ; org . nd4j . linalg . factory . INDArray ret = org . nd4j . linalg . factory . Nd4j . INSTANCE . create ( data , shape , stride , offset , ordering ) ; org . nd4j . linalg . factory . Nd4j . logCreationIfNecessary ( ret ) ; return ret ; }
org . junit . Assert . assertEquals ( assertion , transformed )
testCreate_8 ( ) { java . io . File testFile = new java . io . File ( getClass ( ) . getResource ( "test_L8_MTL.txt" ) . getFile ( ) ) ; org . esa . beam . dataio . landsat . geotiff . LandsatMetadata landsatMetadata = org . esa . beam . dataio . landsat . geotiff . LandsatMetadataFactory . create ( testFile ) ; "<AssertPlaceHolder>" ; } create ( java . io . File ) { org . esa . beam . dataio . landsat . geotiff . LandsatLegacyMetadata landsatMetadata = new org . esa . beam . dataio . landsat . geotiff . LandsatLegacyMetadata ( new java . io . FileReader ( mtlFile ) ) ; if ( landsatMetadata . isLegacyFormat ( ) ) { if ( ( landsatMetadata . isLandsatTM ( ) ) || ( landsatMetadata . isLandsatETM_Plus ( ) ) ) { return landsatMetadata ; } else { throw new org . esa . beam . framework . dataio . ProductIOException ( "Product<sp>is<sp>of<sp>a<sp>legacy<sp>landsat<sp>format,<sp>not<sp>a<sp>legacy<sp>Landsat5<sp>or<sp>Landsat7<sp>ETM+<sp>product." ) ; } } else { java . io . BufferedReader reader = null ; try { java . io . FileReader fileReader = new java . io . FileReader ( mtlFile ) ; reader = new java . io . BufferedReader ( fileReader ) ; java . lang . String line = reader . readLine ( ) ; while ( line != null ) { if ( line . contains ( "SPACECRAFT_ID" ) ) { if ( line . contains ( "LANDSAT_8" ) ) { return new org . esa . beam . dataio . landsat . geotiff . Landsat8Metadata ( new java . io . FileReader ( mtlFile ) ) ; } else { return new org . esa . beam . dataio . landsat . geotiff . LandsatReprocessedMetadata ( new java . io . FileReader ( mtlFile ) ) ; } } line = reader . readLine ( ) ; } } finally { if ( reader != null ) { reader . close ( ) ; } } throw new java . lang . IllegalStateException ( ( ( "File<sp>'" + mtlFile ) + "'<sp>does<sp>not<sp>contain<sp>spacecraft<sp>information.<sp>(Field<sp>'SPACECRAFT_ID'<sp>missing)" ) ) ; } }
org . junit . Assert . assertTrue ( ( landsatMetadata instanceof org . esa . beam . dataio . landsat . geotiff . Landsat8Metadata ) )
testFilterParsesContextFromHeaderToBackend ( ) { headers . putSingle ( TraceeConstants . TPIC_HEADER , "foo=bar" ) ; unit . filter ( null , clientResponseContext ) ; "<AssertPlaceHolder>" ; } get ( java . lang . String ) { if ( ( key != null ) && ( traceeKeys . get ( ) . contains ( key ) ) ) return org . slf4j . MDC . get ( key ) ; else return null ; }
org . junit . Assert . assertThat ( backend . get ( "foo" ) , org . hamcrest . Matchers . equalTo ( "bar" ) )
whenCreatedFromMapWithoutInternalDebugHttpPort_hasEmptyString ( ) { oracle . kubernetes . operator . helm . HelmOperatorValues values = new oracle . kubernetes . operator . helm . HelmOperatorValues ( com . google . common . collect . ImmutableMap . of ( ) ) ; "<AssertPlaceHolder>" ; } getInternalDebugHttpPort ( ) { return internalDebugHttpPort ; }
org . junit . Assert . assertThat ( values . getInternalDebugHttpPort ( ) , org . hamcrest . Matchers . equalTo ( "" ) )
testGetDoublePosition ( ) { final long [ ] initial = new long [ ] { 532 , 632 , 987421 } ; final net . imglib2 . Point p = new net . imglib2 . Point ( initial ) ; for ( int i = 0 ; i < ( initial . length ) ; i ++ ) { "<AssertPlaceHolder>" ; } } getDoublePosition ( int ) { return source . getDoublePosition ( d ) ; }
org . junit . Assert . assertEquals ( initial [ i ] , p . getDoublePosition ( i ) , 0 )
testRemoveSpecificQueryNullQuery ( ) { java . lang . String alias = "get_dataobject_ids" ; org . irods . jargon . core . pub . domain . SpecificQueryDefinition specificQuery = new org . irods . jargon . core . pub . domain . SpecificQueryDefinition ( null , alias ) ; org . irods . jargon . core . packinstr . GeneralAdminInpForSQ pi = org . irods . jargon . core . packinstr . GeneralAdminInpForSQ . instanceForRemoveSpecificQuery ( specificQuery ) ; "<AssertPlaceHolder>" ; } instanceForRemoveSpecificQuery ( org . irods . jargon . core . pub . domain . SpecificQueryDefinition ) { if ( specificQuery == null ) { throw new java . lang . IllegalArgumentException ( "null<sp>SpecificQueryDefinition<sp>object" ) ; } return org . irods . jargon . core . packinstr . GeneralAdminInpForSQ . instanceForRemoveSpecificQueryByAlias ( specificQuery . getAlias ( ) ) ; }
org . junit . Assert . assertNotNull ( pi )
testIntVector ( ) { int [ ] ints = new int [ ] { 1 , 2 , 3 } ; org . dcache . oncrpc4j . xdr . Xdr xdr = new org . dcache . oncrpc4j . xdr . Xdr ( 128 ) ; xdr . beginEncoding ( ) ; xdr . xdrEncodeIntVector ( ints ) ; xdr . endEncoding ( ) ; xdr = new org . dcache . oncrpc4j . xdr . Xdr ( xdr . getBytes ( ) ) ; xdr . beginDecoding ( ) ; int [ ] decoded = xdr . xdrDecodeIntVector ( ) ; "<AssertPlaceHolder>" ; } xdrDecodeIntVector ( ) { int len = xdrDecodeInt ( ) ; checkArraySize ( len ) ; int [ ] ints = new int [ len ] ; for ( int i = 0 ; i < len ; i ++ ) { ints [ i ] = xdrDecodeInt ( ) ; } return ints ; }
org . junit . Assert . assertArrayEquals ( ints , decoded )
testCreateUIWithoutGhostController ( ) { org . junit . Assume . assumeTrue ( org . jpacman . framework . ui . MainUI . class . desiredAssertionStatus ( ) ) ; boolean gotException = false ; mainUI . initialize ( ) ; try { mainUI . createUI ( ) ; } catch ( java . lang . AssertionError ae ) { gotException = true ; } "<AssertPlaceHolder>" ; } createUI ( ) { assert ( getGame ( ) ) != null ; assert ( ghostController ) != null ; boardView = createBoardView ( ) ; animator = new org . jpacman . framework . view . Animator ( boardView ) ; if ( ( pi ) == null ) { pi = new org . jpacman . framework . ui . PacmanInteraction ( ) ; } pi . withDisposable ( this ) . withGameInteractor ( getGame ( ) ) . controlling ( ghostController ) . controlling ( animator ) ; pi . addObserver ( this ) ; setFocusTraversalKeysEnabled ( false ) ; addKeyListener ( new org . jpacman . framework . ui . PacmanKeyListener ( pi ) ) ; getGame ( ) . attach ( pi ) ; createButtonPanel ( pi ) . initialize ( ) ; createStatusPanel ( ) ; javax . swing . JPanel mainGrid = createMainGrid ( ) ; getContentPane ( ) . add ( mainGrid ) ; setGridSize ( ) ; setDefaultCloseOperation ( JFrame . EXIT_ON_CLOSE ) ; setName ( "jpacman.main" ) ; setTitle ( "JPacman" ) ; return this ; }
org . junit . Assert . assertTrue ( gotException )
cloneDoesNotObserveWritesToOriginal ( ) { okio . Buffer original = new okio . Buffer ( ) ; okio . Buffer clone = original . clone ( ) ; original . writeUtf8 ( "abc" ) ; "<AssertPlaceHolder>" ; } size ( ) { org . junit . Assert . assertEquals ( 0 , okio . Utf8 . size ( "" ) ) ; org . junit . Assert . assertEquals ( 3 , okio . Utf8 . size ( "abc" ) ) ; org . junit . Assert . assertEquals ( 16 , okio . Utf8 . size ( "transr" ) ) ; }
org . junit . Assert . assertEquals ( 0 , clone . size ( ) )
testPatientHasTasksClosedInInterval ( ) { final java . util . Set < com . marand . thinkmed . medications . TaskTypeEnum > taskTypes = java . util . Collections . singleton ( TaskTypeEnum . PERFUSION_SYRINGE_DISPENSE ) ; setUpMocksForPerfusionSyringeTestForSingleValue ( ) ; final boolean hasTasksClosedInInterval = pharmacistTaskProvider . therapyHasTasksClosedInInterval ( "1" , "e9b4cb80-9697-4a83-b7a1-7237d4ecb2e4|Medication<sp>order" , taskTypes , new org . joda . time . Interval ( new org . joda . time . DateTime ( 2015 , 9 , 14 , 14 , 0 ) , new org . joda . time . DateTime ( 2015 , 9 , 14 , 22 , 0 ) ) ) ; "<AssertPlaceHolder>" ; } setUpMocksForPerfusionSyringeTestForSingleValue ( ) { resetMocks ( ) ; final java . util . List < com . marand . thinkmed . process . dto . TaskDto > tasksList = getSingletonPerfusionSyringeTaskList ( ) ; org . mockito . Mockito . when ( processService . findTasks ( or ( org . mockito . ArgumentMatchers . anyString ( ) , org . mockito . ArgumentMatchers . isNull ( ) ) , or ( org . mockito . ArgumentMatchers . anyString ( ) , org . mockito . ArgumentMatchers . isNull ( ) ) , or ( org . mockito . ArgumentMatchers . anyString ( ) , org . mockito . ArgumentMatchers . isNull ( ) ) , org . mockito . ArgumentMatchers . anyBoolean ( ) , or ( org . mockito . ArgumentMatchers . any ( org . joda . time . DateTime . class ) , org . mockito . ArgumentMatchers . isNull ( ) ) , or ( org . mockito . ArgumentMatchers . any ( org . joda . time . DateTime . class ) , org . mockito . ArgumentMatchers . isNull ( ) ) , org . mockito . ArgumentMatchers . anyList ( ) , org . mockito . ArgumentMatchers . anySet ( ) , org . mockito . ArgumentMatchers . any ( com . marand . maf . core . Pair . class ) ) ) . thenReturn ( new com . marand . maf . core . PartialList ( tasksList , tasksList . size ( ) ) ) ; setUpCommonPerfusionSyringeMocks ( ) ; }
org . junit . Assert . assertTrue ( hasTasksClosedInInterval )
shouldLogError ( ) { processingLogger . error ( msgFactory ) ; final org . apache . kafka . connect . data . SchemaAndValue msg = verifyErrorMessage ( ) ; "<AssertPlaceHolder>" ; } verifyErrorMessage ( ) { verify ( innerLogger ) . error ( msgCaptor . capture ( ) ) ; return msgCaptor . getValue ( ) . get ( ) ; }
org . junit . Assert . assertThat ( msg , org . hamcrest . Matchers . is ( this . msg ) )
testGetOldValue ( ) { tlsContext . setSelectedProtocolVersion ( ProtocolVersion . TLS12 ) ; action . execute ( state ) ; "<AssertPlaceHolder>" ; } getOldValue ( ) { return oldValue ; }
org . junit . Assert . assertEquals ( action . getOldValue ( ) , ProtocolVersion . TLS12 )
testFindUser_null_user ( ) { when ( jdbcTemplate . queryForObject ( anyString ( ) , ( ( org . springframework . jdbc . core . RowMapper ) ( anyObject ( ) ) ) , isNull ( ) ) ) . thenReturn ( User . NULL_USER ) ; com . captaindebug . cargocult . User result = instance . findUser ( null ) ; "<AssertPlaceHolder>" ; } findUser ( java . lang . String ) { com . captaindebug . cargocult . User user ; try { com . captaindebug . cargocult . ntier . FindUserMapper rowMapper = new com . captaindebug . cargocult . ntier . FindUserMapper ( ) ; user = jdbcTemplate . queryForObject ( com . captaindebug . cargocult . ntier . UserDaoImpl . FIND_USER_BY_NAME , rowMapper , name ) ; } catch ( org . springframework . dao . EmptyResultDataAccessException e ) { user = com . captaindebug . cargocult . User . NULL_USER ; } return user ; }
org . junit . Assert . assertEquals ( User . NULL_USER , result )
write ( ) { java . util . UUID uuid = java . util . UUID . randomUUID ( ) ; org . msgpack . MessagePack pack = new org . msgpack . MessagePack ( ) ; byte [ ] bytes = pack . write ( uuid . toString ( ) ) ; byte [ ] result = pack . write ( uuid , cocaine . msgpack . UUIDTemplate . getInstance ( ) ) ; "<AssertPlaceHolder>" ; } getInstance ( ) { return cocaine . msgpack . UUIDTemplate . instance ; }
org . junit . Assert . assertArrayEquals ( bytes , result )
destroyCalledWithBeanCreate ( org . jboss . weld . manager . BeanManagerImpl ) { SomeBean . destroyCalled = false ; java . util . Set < javax . enterprise . inject . spi . Bean < ? > > beans = beanManager . getBeans ( org . jboss . weld . tests . beanManager . predestroy . SomeBean . class ) ; javax . enterprise . inject . spi . Bean < org . jboss . weld . tests . beanManager . predestroy . SomeBean > bean = org . jboss . weld . util . reflection . Reflections . cast ( beanManager . resolve ( beans ) ) ; org . jboss . weld . tests . beanManager . predestroy . SomeBean instance = bean . create ( null ) ; bean . destroy ( instance , null ) ; "<AssertPlaceHolder>" ; } destroy ( T , javax . enterprise . context . spi . CreationalContext ) { super . destroy ( instance , creationalContext ) ; try { org . jboss . weld . bean . ManagedBean . getProducer ( ) . preDestroy ( instance ) ; if ( creationalContext instanceof org . jboss . weld . contexts . CreationalContextImpl ) { ( ( org . jboss . weld . contexts . CreationalContextImpl < T > ) ( creationalContext ) ) . release ( this , instance ) ; } else { creationalContext . release ( ) ; } } catch ( java . lang . Exception e ) { BeanLogger . LOG . errorDestroying ( instance , this ) ; BeanLogger . LOG . catchingDebug ( e ) ; } }
org . junit . Assert . assertTrue ( SomeBean . destroyCalled )
testKeepDimsShape_3_T ( ) { lombok . val shape = new int [ ] { 1 , 1 } ; lombok . val axis = new int [ ] { 1 , 0 , 1 } ; lombok . val result = org . nd4j . linalg . api . shape . Shape . getReducedShape ( shape , axis , true , true ) ; "<AssertPlaceHolder>" ; } getReducedShape ( int [ ] , int [ ] , boolean , boolean ) { dimensions = org . nd4j . linalg . api . shape . Shape . normalizeAxis ( wholeShape . length , dimensions ) ; if ( ! keepDims ) if ( ! newFormat ) return org . nd4j . linalg . api . shape . Shape . getReducedShape ( wholeShape , dimensions ) ; else { if ( org . nd4j . linalg . api . shape . Shape . isWholeArray ( wholeShape , dimensions ) ) return new long [ ] { } ; else if ( ( ( dimensions . length ) == 1 ) && ( ( wholeShape . length ) == 2 ) ) { lombok . val ret = new long [ 1 ] ; if ( ( dimensions [ 0 ] ) == 1 ) { ret [ 0 ] = wholeShape [ 0 ] ; } else if ( ( dimensions [ 0 ] ) == 0 ) { ret [ 0 ] = wholeShape [ 1 ] ; } return ret ; } return org . nd4j . linalg . util . ArrayUtil . toLongArray ( org . nd4j . linalg . util . ArrayUtil . removeIndex ( wholeShape , dimensions ) ) ; } if ( org . nd4j . linalg . api . shape . Shape . isWholeArray ( wholeShape , dimensions ) ) { lombok . val result = new long [ wholeShape . length ] ; org . nd4j . linalg . api . shape . Arrays . fill ( result , 1 ) ; return result ; } lombok . val result = org . nd4j . linalg . util . ArrayUtil . toLongArray ( org . nd4j . linalg . api . shape . Arrays . copyOf ( wholeShape , wholeShape . length ) ) ; for ( lombok . val dim : dimensions ) result [ dim ] = 1 ; return result ; }
org . junit . Assert . assertArrayEquals ( new long [ ] { 1 , 1 } , result )
test_get_mapping_configuration_by_configuration_type_id ( ) { java . util . List < org . ikasan . mapping . service . MappingConfiguration > mappingConfigurations = this . xaMappingConfigurationDao . getAllMappingConfigurations ( ) ; for ( org . ikasan . mapping . service . MappingConfiguration mappingConfiguration : mappingConfigurations ) { java . util . List < org . ikasan . mapping . service . MappingConfiguration > mappingConfigurationsSearched = this . xaMappingManagementService . getMappingConfigurationsByConfigurationTypeId ( mappingConfiguration . getConfigurationType ( ) . getId ( ) ) ; java . util . ArrayList < java . lang . Long > ids = new java . util . ArrayList < java . lang . Long > ( ) ; for ( org . ikasan . mapping . service . MappingConfiguration mappingConfiguration1 : mappingConfigurationsSearched ) { ids . add ( mappingConfiguration1 . getId ( ) ) ; } "<AssertPlaceHolder>" ; } } getId ( ) { return id ; }
org . junit . Assert . assertTrue ( ids . contains ( mappingConfiguration . getId ( ) ) )
applyGeenHistorieGroep ( ) { nl . bzk . brp . domain . leveringmodel . MetaGroep . Builder groepBuilder = new nl . bzk . brp . domain . leveringmodel . MetaGroep . Builder ( null ) ; groepBuilder . metGroepElement ( Element . ADMINISTRATIEVEHANDELING_IDENTITEIT . getId ( ) ) ; final nl . bzk . brp . domain . leveringmodel . MetaGroep metaGroep = groepBuilder . build ( null ) ; nl . bzk . brp . domain . leveringmodel . MetaRecord . Builder recordBuilder = new nl . bzk . brp . domain . leveringmodel . MetaRecord . Builder ( groepBuilder ) ; final nl . bzk . brp . domain . leveringmodel . MetaRecord metaRecord = recordBuilder . build ( metaGroep ) ; final java . lang . Integer peilDatumMaterieel = maakDatumInteger ( 2015 , 11 , 1 ) ; final java . time . ZonedDateTime peilDatumFormeel = java . time . LocalDate . parse ( peilDatumMaterieel . toString ( ) , nl . bzk . brp . service . maakbericht . filterstappen . HistoriePredikaatTest . FORMATTER ) . atStartOfDay ( DatumUtil . BRP_ZONE_ID ) ; final nl . bzk . brp . domain . leveringmodel . persoon . PeilmomentHistorievormPredicate bevragingHistoriePredikaat = new nl . bzk . brp . domain . leveringmodel . persoon . PeilmomentHistorievormPredicate ( peilDatumMaterieel , peilDatumFormeel , nl . bzk . algemeenbrp . dal . domein . brp . enums . HistorieVorm . GEEN ) ; final boolean apply = bevragingHistoriePredikaat . apply ( metaRecord ) ; "<AssertPlaceHolder>" ; } apply ( T ) { return isTrue . apply ( input ) ; }
org . junit . Assert . assertThat ( apply , org . hamcrest . core . Is . is ( true ) )
testConfigureEnableGrouping ( ) { System . out . println ( ( ( getTestTraceHead ( "[NGSICKANSink.configure]" ) ) + "--------<sp>enable_grouping<sp>can<sp>only<sp>be<sp>'true'<sp>or<sp>'false'" ) ) ; java . lang . String apiKey = null ; java . lang . String attrPersistence = null ; java . lang . String backendMaxConns = null ; java . lang . String backendMaxConnsPerRoute = null ; java . lang . String batchSize = null ; java . lang . String batchTime = null ; java . lang . String batchTTL = null ; java . lang . String dataModel = null ; java . lang . String enableEncoding = null ; java . lang . String enableGrouping = "falso" ; java . lang . String enableLowercase = null ; java . lang . String host = null ; java . lang . String port = null ; java . lang . String ssl = null ; java . lang . String viewer = null ; com . telefonica . iot . cygnus . sinks . NGSICKANSink sink = new com . telefonica . iot . cygnus . sinks . NGSICKANSink ( ) ; sink . configure ( createContext ( apiKey , attrPersistence , backendMaxConns , backendMaxConnsPerRoute , batchSize , batchTime , batchTTL , dataModel , enableEncoding , enableGrouping , enableLowercase , host , port , ssl , viewer ) ) ; try { "<AssertPlaceHolder>" ; System . out . println ( ( ( getTestTraceHead ( "[NGSICKANSink.configure]" ) ) + "-<sp>OK<sp>-<sp>'enable_grouping=falso'<sp>was<sp>detected" ) ) ; } catch ( java . lang . AssertionError e ) { System . out . println ( ( ( getTestTraceHead ( "[NGSICKANSink.configure]" ) ) + "-<sp>FAIL<sp>-<sp>'enable_grouping=falso'<sp>was<sp>not<sp>detected" ) ) ; throw e ; } getInvalidConfiguration ( ) { return invalidConfiguration ; }
org . junit . Assert . assertTrue ( sink . getInvalidConfiguration ( ) )
equalsContent_shouldIndicateUnequalWhenOnlyPostalCodeDiffers ( ) { org . openmrs . PersonAddress address1 = new org . openmrs . PersonAddress ( ) ; org . openmrs . PersonAddress address2 = new org . openmrs . PersonAddress ( ) ; address2 . setPostalCode ( "99999" ) ; address1 . setPostalCode ( "243234" ) ; "<AssertPlaceHolder>" ; } equalsContent ( org . openmrs . PersonAttribute ) { boolean returnValue = true ; java . lang . String [ ] methods = new java . lang . String [ ] { "getAttributeType" , "getValue" , "getVoided" } ; java . lang . Class attributeClass = this . getClass ( ) ; for ( java . lang . String methodAttribute : methods ) { try { java . lang . reflect . Method method = attributeClass . getMethod ( methodAttribute ) ; java . lang . Object thisValue = method . invoke ( this ) ; java . lang . Object otherValue = method . invoke ( otherAttribute ) ; if ( otherValue != null ) { returnValue &= otherValue . equals ( thisValue ) ; } } catch ( java . lang . NoSuchMethodException e ) { org . openmrs . PersonAttribute . log . warn ( ( "No<sp>such<sp>method<sp>for<sp>comparison<sp>" + methodAttribute ) , e ) ; } catch ( java . lang . IllegalAccessException | java . lang . reflect . InvocationTargetException e ) { org . openmrs . PersonAttribute . log . error ( "Error<sp>while<sp>comparing<sp>attributes" , e ) ; } } return returnValue ; }
org . junit . Assert . assertThat ( address2 . equalsContent ( address1 ) , org . hamcrest . CoreMatchers . is ( false ) )
withFour ( ) { "<AssertPlaceHolder>" ; } debug ( int ) { return ( n & ( n - 1 ) ) == 0 ; }
org . junit . Assert . assertTrue ( s . debug ( 4 ) )
testGetDeviceBy64BitAddrEmptyNetwork ( ) { com . digi . xbee . api . models . XBee64BitAddress address = new com . digi . xbee . api . models . XBee64BitAddress ( "0123456789ABCDEF" ) ; com . digi . xbee . api . RemoteXBeeDevice found = network . getDevice ( address ) ; "<AssertPlaceHolder>" ; } getDevice ( com . digi . xbee . api . models . XBee16BitAddress ) { if ( ( localDevice . getXBeeProtocol ( ) ) == ( com . digi . xbee . api . models . XBeeProtocol . DIGI_MESH ) ) throw new com . digi . xbee . api . exceptions . OperationNotSupportedException ( "DigiMesh<sp>protocol<sp>does<sp>not<sp>support<sp>16-bit<sp>addressing." ) ; if ( ( localDevice . getXBeeProtocol ( ) ) == ( com . digi . xbee . api . models . XBeeProtocol . DIGI_POINT ) ) throw new com . digi . xbee . api . exceptions . OperationNotSupportedException ( "Point-to-Multipoint<sp>protocol<sp>does<sp>not<sp>support<sp>16-bit<sp>addressing." ) ; if ( address == null ) throw new java . lang . NullPointerException ( "16-bit<sp>address<sp>cannot<sp>be<sp>null." ) ; if ( address . equals ( XBee16BitAddress . UNKNOWN_ADDRESS ) ) throw new java . lang . IllegalArgumentException ( "16-bit<sp>address<sp>cannot<sp>be<sp>unknown." ) ; logger . debug ( "{}Getting<sp>device<sp>'{}'<sp>from<sp>network." , localDevice . toString ( ) , address ) ; com . digi . xbee . api . RemoteXBeeDevice devInNetwork = null ; java . util . Collection < com . digi . xbee . api . RemoteXBeeDevice > devices = remotesBy64BitAddr . values ( ) ; for ( com . digi . xbee . api . RemoteXBeeDevice d : devices ) { com . digi . xbee . api . models . XBee16BitAddress a = get16BitAddress ( d ) ; if ( ( a != null ) && ( a . equals ( address ) ) ) { devInNetwork = d ; break ; } } if ( devInNetwork == null ) devInNetwork = remotesBy16BitAddr . get ( address ) ; return devInNetwork ; }
org . junit . Assert . assertNull ( found )
testSetAndGetConnectionString ( ) { java . lang . String name = "test" ; com . ctrip . platform . dal . dao . configure . DataSourceConfigureLocator locator = com . ctrip . platform . dal . dao . configure . DataSourceConfigureLocatorManager . getInstance ( ) ; com . ctrip . platform . dal . dao . configure . DalConnectionString connectionString = new com . ctrip . platform . dal . dao . configure . ConnectionString ( name , ipConnectionString , domainConnectionString ) ; com . ctrip . platform . dal . dao . configure . Map < java . lang . String , com . ctrip . platform . dal . dao . configure . DalConnectionString > map = new com . ctrip . platform . dal . dao . configure . HashMap ( ) ; map . put ( name , connectionString ) ; locator . setConnectionStrings ( map ) ; com . ctrip . platform . dal . dao . configure . Properties p = getProperties ( ) ; com . ctrip . platform . dal . dao . configure . DataSourceConfigure poolPropertiesConfigure = new com . ctrip . platform . dal . dao . configure . DataSourceConfigure ( name , p ) ; locator . setPoolProperties ( poolPropertiesConfigure ) ; for ( int i = 0 ; i < 10 ; i ++ ) { java . lang . String temp = name + i ; com . ctrip . platform . dal . dao . configure . DalConnectionString connectionString1 = new com . ctrip . platform . dal . dao . configure . ConnectionString ( temp , ipConnectionString , domainConnectionString ) ; com . ctrip . platform . dal . dao . configure . Map < java . lang . String , com . ctrip . platform . dal . dao . configure . DalConnectionString > map1 = new com . ctrip . platform . dal . dao . configure . HashMap ( ) ; map . put ( temp , connectionString1 ) ; locator . setConnectionStrings ( map1 ) ; com . ctrip . platform . dal . dao . configure . Properties p1 = getProperties ( ) ; com . ctrip . platform . dal . dao . configure . DataSourceConfigure poolPropertiesConfigure1 = new com . ctrip . platform . dal . dao . configure . DataSourceConfigure ( temp , p1 ) ; locator . setPoolProperties ( poolPropertiesConfigure1 ) ; } com . ctrip . platform . dal . dao . configure . DataSourceConfigure configure = locator . getDataSourceConfigure ( name ) ; com . ctrip . platform . dal . dao . configure . DalConnectionString connectionString2 = configure . getConnectionString ( ) ; "<AssertPlaceHolder>" ; } getConnectionString ( ) { return connectionString ; }
org . junit . Assert . assertEquals ( connectionString , connectionString2 )
setMethodNameSetsTheMethodName ( ) { java . lang . String methodNameStr = "abcdefg" ; byte [ ] data = new byte [ 1 ] ; com . microsoft . azure . sdk . iot . device . MessageType messageType = com . microsoft . azure . sdk . iot . device . MessageType . DEVICE_TWIN ; com . microsoft . azure . sdk . iot . device . transport . IotHubTransportMessage iotHubTransportMessage = new com . microsoft . azure . sdk . iot . device . transport . IotHubTransportMessage ( data , messageType ) ; iotHubTransportMessage . setMethodName ( methodNameStr ) ; "<AssertPlaceHolder>" ; } getMethodName ( ) { return java . lang . Thread . currentThread ( ) . getStackTrace ( ) [ com . microsoft . azure . sdk . iot . device . CustomLogger . CALLING_METHOD_NAME_DEPTH ] . getMethodName ( ) ; }
org . junit . Assert . assertEquals ( methodNameStr , iotHubTransportMessage . getMethodName ( ) )
test4s ( ) { java . util . Map < java . util . List < java . lang . Integer > , java . lang . Integer > graph4 = new java . util . HashMap ( ) ; graph4 . put ( new java . util . ArrayList < java . lang . Integer > ( java . util . Arrays . asList ( 0 , 1 ) ) , 3 ) ; graph4 . put ( new java . util . ArrayList < java . lang . Integer > ( java . util . Arrays . asList ( 1 , 2 ) ) , 5 ) ; graph4 . put ( new java . util . ArrayList < java . lang . Integer > ( java . util . Arrays . asList ( 2 , 0 ) ) , ( - 1 ) ) ; java . util . Map < java . util . List < java . lang . Integer > , java . lang . Integer > length_by_path = new java . util . HashMap ( ) ; length_by_path = java_programs . SHORTEST_PATH_LENGTHS . shortest_path_lengths ( 3 , graph4 ) ; for ( java . util . List < java . lang . Integer > edge : length_by_path . keySet ( ) ) { if ( ( ( edge . get ( 0 ) ) == 2 ) && ( ( edge . get ( 1 ) ) == 1 ) ) { "<AssertPlaceHolder>" ; } } } get ( int ) { return ( ( fr . inria . astor . approaches . scaffold . scaffoldsynthesis . executor . statelessexplore . Counter ) ( fr . inria . astor . approaches . scaffold . scaffoldsynthesis . executor . statelessexplore . Explorer . m_counters . get ( i ) ) ) ; }
org . junit . Assert . assertEquals ( ( ( java . lang . Integer ) ( 2 ) ) , length_by_path . get ( edge ) )
testInputConnectorGetAllSchemaPropertiesConnectors ( ) { java . util . Set < org . talend . components . api . component . PropertyPathConnector > propertyPathConnectors = properties . getAllSchemaPropertiesConnectors ( false ) ; "<AssertPlaceHolder>" ; } size ( ) { if ( ( tokenName . getValue ( ) ) == null ) { return 0 ; } return tokenName . getValue ( ) . size ( ) ; }
org . junit . Assert . assertEquals ( 1 , propertyPathConnectors . size ( ) )
testIsFound ( ) { "<AssertPlaceHolder>" ; } isFound ( ) { return found ; }
org . junit . Assert . assertEquals ( found , entry . isFound ( ) )
testDeleteDir_InexistentDir ( ) { java . lang . String outputDir = utils . getOutputDirectory ( ) ; java . lang . String testDir = outputDir + "a" ; java . io . File dir = new java . io . File ( testDir ) ; org . matsim . core . utils . io . IOUtils . deleteDirectoryRecursively ( dir . toPath ( ) ) ; "<AssertPlaceHolder>" ; } deleteDirectoryRecursively ( java . nio . file . Path ) { try { java . nio . file . Files . walkFileTree ( path , new java . nio . file . SimpleFileVisitor < java . nio . file . Path > ( ) { @ org . matsim . core . utils . io . Override public java . nio . file . FileVisitResult visitFile ( java . nio . file . Path file , java . nio . file . attribute . BasicFileAttributes attrs ) throws java . io . IOException { java . nio . file . Files . delete ( file ) ; return java . nio . file . FileVisitResult . CONTINUE ; } @ org . matsim . core . utils . io . Override public java . nio . file . FileVisitResult postVisitDirectory ( java . nio . file . Path dir , java . io . IOException exc ) throws java . io . IOException { java . nio . file . Files . delete ( dir ) ; return java . nio . file . FileVisitResult . CONTINUE ; } } ) ; } catch ( java . io . IOException e ) { throw new org . matsim . core . utils . io . UncheckedIOException ( e . getMessage ( ) , e ) ; } }
org . junit . Assert . assertFalse ( dir . exists ( ) )
testLinearROI ( ) { double xStart = 10.23 ; double xStop = 34.25 ; double yStart = - 12.3 ; double yStop = 11.4 ; org . eclipse . dawnsci . analysis . dataset . roi . LinearROI linearROI = new org . eclipse . dawnsci . analysis . dataset . roi . LinearROI ( new double [ ] { xStart , yStart } , new double [ ] { xStop , yStop } ) ; java . lang . Object expected = linearROI . copy ( ) ; json = marshaller . marshal ( linearROI ) ; java . lang . Object actual = marshaller . unmarshal ( json , null ) ; "<AssertPlaceHolder>" ; } unmarshal ( java . lang . String , java . lang . Class ) { try { if ( ( registeredClassMapper ) == null ) registeredClassMapper = createRegisteredClassMapper ( ) ; if ( beanClass != null ) { return registeredClassMapper . readValue ( string , beanClass ) ; } @ org . eclipse . dawnsci . json . SuppressWarnings ( "unchecked" ) U result = ( ( U ) ( registeredClassMapper . readValue ( string , java . lang . Object . class ) ) ) ; return result ; } catch ( com . fasterxml . jackson . databind . JsonMappingException | java . lang . IllegalArgumentException ex ) { if ( ( ( ex instanceof com . fasterxml . jackson . databind . JsonMappingException ) && ( ex . getMessage ( ) . contains ( org . eclipse . dawnsci . json . MarshallerService . TYPE_INFO_FIELD_NAME ) ) ) || ( ( ex instanceof java . lang . IllegalArgumentException ) && ( ( ex . getCause ( ) ) instanceof java . lang . ClassNotFoundException ) ) ) { try { if ( ( oldMapper ) == null ) oldMapper = createOldMapper ( ) ; return oldMapper . readValue ( string , beanClass ) ; } catch ( java . lang . Exception withoutTypeException ) { throw ex ; } } throw ex ; } }
org . junit . Assert . assertEquals ( expected , actual )
testMaxRecommended ( ) { org . apache . hadoop . conf . Configuration conf = new org . apache . hadoop . conf . Configuration ( ) ; conf . setInt ( PartitionUtils . MAX_REDUCERS , 400 ) ; when ( pcollection . getSize ( ) ) . thenReturn ( ( ( ( 1000 * 1000L ) * 1000L ) * 1000L ) ) ; when ( pcollection . getPipeline ( ) ) . thenReturn ( pipeline ) ; when ( pipeline . getConfiguration ( ) ) . thenReturn ( conf ) ; "<AssertPlaceHolder>" ; } getRecommendedPartitions ( org . apache . crunch . PCollection ) { org . apache . hadoop . conf . Configuration conf = pcollection . getPipeline ( ) . getConfiguration ( ) ; return org . apache . crunch . util . PartitionUtils . getRecommendedPartitions ( pcollection , conf ) ; }
org . junit . Assert . assertEquals ( 400 , org . apache . crunch . util . PartitionUtils . getRecommendedPartitions ( pcollection ) )
testReadPKCS1 ( ) { java . lang . String keyFile = "keys/pkcs1-unencrypted.pem" ; try ( java . io . InputStream keyStream = cl . getResourceAsStream ( keyFile ) ; java . io . Reader expectedReader = new java . io . InputStreamReader ( cl . getResourceAsStream ( keyFile ) ) ) { java . security . PrivateKey actualKey = constructor . newInstance ( ) . read ( keyStream , null ) ; org . bouncycastle . openssl . PEMKeyPair expected = ( ( org . bouncycastle . openssl . PEMKeyPair ) ( new org . bouncycastle . openssl . PEMParser ( expectedReader ) . readObject ( ) ) ) ; java . security . PrivateKey expectedKey = new org . bouncycastle . openssl . jcajce . JcaPEMKeyConverter ( ) . setProvider ( org . candlepin . pki . ProviderBasedPrivateKeyReaderTest . BC_PROVIDER ) . getKeyPair ( expected ) . getPrivate ( ) ; "<AssertPlaceHolder>" ; } } read ( java . lang . String , java . lang . String ) { try ( java . io . FileInputStream fis = new java . io . FileInputStream ( caKeyPath ) ) { return read ( fis , caKeyPassword ) ; } }
org . junit . Assert . assertEquals ( actualKey , expectedKey )
testCalendarOnInvalidType ( ) { org . simpleflatmapper . reflect . Getter < org . simpleflatmapper . jdbc . test . impl . getter . ResultSet , org . simpleflatmapper . jdbc . test . impl . getter . Calendar > getter = factory . < org . simpleflatmapper . jdbc . test . impl . getter . Calendar > newGetter ( org . simpleflatmapper . jdbc . test . impl . getter . Calendar . class , key ( Types . VARCHAR ) , org . simpleflatmapper . jdbc . test . impl . getter . ResultSetGetterFactoryTest . IDENTITY . properties ( ) ) ; "<AssertPlaceHolder>" ; } properties ( ) { if ( ( org . jooq . academy . tools . Tools . properties ) == null ) { try { org . jooq . academy . tools . Tools . properties = new java . util . Properties ( ) ; org . jooq . academy . tools . Tools . properties . load ( org . jooq . academy . tools . Tools . class . getResourceAsStream ( "/config.properties" ) ) ; } catch ( java . lang . Exception e ) { throw new java . lang . RuntimeException ( e ) ; } } return org . jooq . academy . tools . Tools . properties ; }
org . junit . Assert . assertNull ( getter )
testReadAllWithSmallSize ( ) { for ( int i = 10 ; i <= 10000 ; i *= 10 ) { byte [ ] input = randomBytes ( i ) ; byte [ ] output = edu . umd . cs . findbugs . io . IO . readAll ( new java . io . ByteArrayInputStream ( input ) , ( i - 9 ) ) ; "<AssertPlaceHolder>" ; } } readAll ( java . io . InputStream , int ) { try { if ( size == 0 ) throw new java . lang . IllegalArgumentException ( ) ; byte [ ] result = new byte [ size ] ; int pos = 0 ; while ( true ) { int sz ; while ( ( sz = in . read ( result , pos , ( size - pos ) ) ) > 0 ) { pos += sz ; } if ( pos < size ) return edu . umd . cs . findbugs . io . IO . copyOf ( result , pos ) ; int nextByte = in . read ( ) ; if ( nextByte == ( - 1 ) ) return result ; size = ( size * 2 ) + 500 ; result = edu . umd . cs . findbugs . io . IO . copyOf ( result , size ) ; result [ ( pos ++ ) ] = ( ( byte ) ( nextByte ) ) ; } } finally { edu . umd . cs . findbugs . io . IO . close ( in ) ; } }
org . junit . Assert . assertArrayEquals ( input , output )
testBuildImage_registryUnauthorizedException_noCredentials ( ) { org . mockito . Mockito . when ( mockRegistryUnauthorizedException . getHttpResponseException ( ) ) . thenReturn ( mockHttpResponseException ) ; org . mockito . Mockito . when ( mockRegistryUnauthorizedException . getRegistry ( ) ) . thenReturn ( "someregistry" ) ; org . mockito . Mockito . when ( mockRegistryUnauthorizedException . getRepository ( ) ) . thenReturn ( "somerepository" ) ; org . mockito . Mockito . when ( mockHttpResponseException . getStatusCode ( ) ) . thenReturn ( ( - 1 ) ) ; org . mockito . Mockito . doThrow ( mockRegistryUnauthorizedException ) . when ( mockJibContainerBuilder ) . containerize ( mockContainerizer ) ; try { testBuildImageStepsRunner . build ( mockJibContainerBuilder , mockContainerizer , mockEventDispatcher , com . google . cloud . tools . jib . plugins . common . BuildStepsRunnerTest . TEST_HELPFUL_SUGGESTIONS ) ; org . junit . Assert . fail ( "buildImage<sp>should<sp>have<sp>thrown<sp>an<sp>exception" ) ; } catch ( com . google . cloud . tools . jib . plugins . common . BuildStepsExecutionException ex ) { "<AssertPlaceHolder>" ; } } forNoCredentialsDefined ( java . lang . String , java . lang . String ) { com . google . common . base . Preconditions . checkNotNull ( baseImageReference ) ; com . google . common . base . Preconditions . checkNotNull ( targetImageReference ) ; if ( ( ( noCredentialsDefinedForBaseImage ) && ( registry . equals ( baseImageReference . getRegistry ( ) ) ) ) && ( repository . equals ( baseImageReference . getRepository ( ) ) ) ) { return forNoCredentialHelpersDefined ( baseImageCredHelperConfiguration , baseImageAuthConfiguration . apply ( registry ) ) ; } if ( ( ( noCredentialsDefinedForTargetImage ) && ( registry . equals ( targetImageReference . getRegistry ( ) ) ) ) && ( repository . equals ( targetImageReference . getRepository ( ) ) ) ) { return forNoCredentialHelpersDefined ( targetImageCredHelperConfiguration , targetImageAuthConfiguration . apply ( registry ) ) ; } return forCredentialsNotCorrect ( registry ) ; }
org . junit . Assert . assertEquals ( com . google . cloud . tools . jib . plugins . common . BuildStepsRunnerTest . TEST_HELPFUL_SUGGESTIONS . forNoCredentialsDefined ( "someregistry" , "somerepository" ) , ex . getMessage ( ) )
verifySubclassed ( ) { final java . util . Map < java . lang . String , java . lang . String > typesForNames = geoapi . typesForNames ( ) ; hasSubTypes . values ( ) . removeIf ( ( v ) -> ! v ) ; if ( ! ( hasSubTypes . keySet ( ) . equals ( geoapi . subclassed ( ) ) ) ) { final java . lang . String [ ] parentTypes = new java . lang . String [ hasSubTypes . size ( ) ] ; int i = 0 ; for ( final java . lang . Class < ? > c : hasSubTypes . keySet ( ) ) { parentTypes [ ( i ++ ) ] = c . getName ( ) ; } "<AssertPlaceHolder>" ; java . util . Arrays . sort ( parentTypes ) ; final java . lang . String lineSeparator = java . lang . System . lineSeparator ( ) ; final java . lang . StringBuilder buffer = new java . lang . StringBuilder ( 500 ) . append ( "Content<sp>of<sp>" ) . append ( Interfacing . GeoAPI . SUBCLASSED_LIST ) . append ( "<sp>should<sp>be:" ) . append ( lineSeparator ) ; for ( final java . lang . String type : parentTypes ) { buffer . append ( type ) . append ( lineSeparator ) ; } org . junit . Assert . fail ( buffer . toString ( ) ) ; } } getName ( ) { return "departure" ; }
org . junit . Assert . assertEquals ( parentTypes . length , i )
testEndsWithExpressionNegative ( ) { org . odata4j . expression . BoolMethodExpression ex = org . odata4j . expression . Expression . endsWith ( org . odata4j . expression . Expression . string ( "ABCDE" ) , org . odata4j . expression . Expression . string ( "CD" ) ) ; boolean evaluate = org . odata4j . producer . inmemory . InMemoryEvaluation . evaluate ( ex , this , new org . odata4j . producer . inmemory . BeanBasedPropertyModel ( getClass ( ) ) ) ; "<AssertPlaceHolder>" ; } evaluate ( org . odata4j . expression . CommonExpression , java . lang . Object , org . odata4j . producer . inmemory . PropertyModel ) { if ( expression instanceof org . odata4j . expression . LiteralExpression ) return org . odata4j . expression . Expression . literalValue ( ( ( org . odata4j . expression . LiteralExpression ) ( expression ) ) ) ; if ( expression instanceof org . odata4j . expression . EntitySimpleProperty ) return properties . getPropertyValue ( target , ( ( org . odata4j . expression . EntitySimpleProperty ) ( expression ) ) . getPropertyName ( ) ) ; if ( expression instanceof org . odata4j . expression . BoolCommonExpression ) return org . odata4j . producer . inmemory . InMemoryEvaluation . evaluate ( ( ( org . odata4j . expression . BoolCommonExpression ) ( expression ) ) , target , properties ) ; if ( expression instanceof org . odata4j . expression . AddExpression ) return org . odata4j . producer . inmemory . InMemoryEvaluation . binaryFunction ( ( ( org . odata4j . expression . BinaryCommonExpression ) ( expression ) ) , target , properties , org . odata4j . producer . inmemory . InMemoryEvaluation . BinaryFunction . ADD ) ; if ( expression instanceof org . odata4j . expression . SubExpression ) return org . odata4j . producer . inmemory . InMemoryEvaluation . binaryFunction ( ( ( org . odata4j . expression . BinaryCommonExpression ) ( expression ) ) , target , properties , org . odata4j . producer . inmemory . InMemoryEvaluation . BinaryFunction . SUB ) ; if ( expression instanceof org . odata4j . expression . MulExpression ) return org . odata4j . producer . inmemory . InMemoryEvaluation . binaryFunction ( ( ( org . odata4j . expression . BinaryCommonExpression ) ( expression ) ) , target , properties , org . odata4j . producer . inmemory . InMemoryEvaluation . BinaryFunction . MUL ) ; if ( expression instanceof org . odata4j . expression . DivExpression ) return org . odata4j . producer . inmemory . InMemoryEvaluation . binaryFunction ( ( ( org . odata4j . expression . BinaryCommonExpression ) ( expression ) ) , target , properties , org . odata4j . producer . inmemory . InMemoryEvaluation . BinaryFunction . DIV ) ; if ( expression instanceof org . odata4j . expression . ModExpression ) return org . odata4j . producer . inmemory . InMemoryEvaluation . binaryFunction ( ( ( org . odata4j . expression . BinaryCommonExpression ) ( expression ) ) , target , properties , org . odata4j . producer . inmemory . InMemoryEvaluation . BinaryFunction . MOD ) ; if ( expression instanceof org . odata4j . expression . ParenExpression ) return org . odata4j . producer . inmemory . InMemoryEvaluation . evaluate ( ( ( org . odata4j . expression . ParenExpression ) ( expression ) ) . getExpression ( ) , target , properties ) ; if ( expression instanceof org . odata4j . expression . BoolParenExpression ) return org . odata4j . producer . inmemory . InMemoryEvaluation . evaluate ( ( ( org . odata4j . expression . BoolParenExpression ) ( expression ) ) . getExpression ( ) , target , properties ) ; if ( expression instanceof org . odata4j . expression . CastExpression ) { org . odata4j . expression . CastExpression castExpression = ( ( org . odata4j . expression . CastExpression ) ( expression ) ) ; org . odata4j . edm . EdmSimpleType < ? > t = org . odata4j . edm . EdmType . getSimple ( castExpression . getType ( ) ) ; if ( t == null ) throw new java . lang . UnsupportedOperationException ( "Only<sp>simple<sp>types<sp>supported" ) ; java . lang . Class < ? > javaType = t . getJavaTypes ( ) . iterator ( ) . next ( ) ; return org . odata4j . internal . TypeConverter . convert ( org . odata4j . producer . inmemory . InMemoryEvaluation . evaluate ( castExpression . getExpression ( ) , target , properties ) , javaType ) ; } if ( expression instanceof org . odata4j . expression . ToLowerMethodCallExpression ) { org . odata4j . expression . ToLowerMethodCallExpression e = ( ( org . odata4j . expression . ToLowerMethodCallExpression ) ( expression ) ) ; java . lang . String value = org . odata4j . producer . inmemory . InMemoryEvaluation . evaluateToString ( e . getTarget ( ) , target , properties ) ; return value == null ? null : value . toLowerCase ( ) ; } if ( expression instanceof org . odata4j . expression . ToUpperMethodCallExpression ) { org . odata4j . expression . ToUpperMethodCallExpression e = ( ( org . odata4j . expression . ToUpperMethodCallExpression ) ( expression ) ) ; java . lang . String value = org . odata4j . producer . inmemory . InMemoryEvaluation . evaluateToString ( e . getTarget ( ) , target , properties ) ; return value == null ? null : value . toUpperCase ( ) ; } if ( expression instanceof org . odata4j . expression . SubstringMethodCallExpression ) { org . odata4j . expression . SubstringMethodCallExpression e = ( ( org . odata4j . expression . SubstringMethodCallExpression ) ( expression ) ) ; java . lang . String value = org . odata4j . producer . inmemory . InMemoryEvaluation . evaluateToString ( e . getTarget ( )
org . junit . Assert . assertFalse ( evaluate )
setSoutheast_whenCreatingAndNoCornersAreSet_shouldSetCorner2AtBottom ( ) { org . bukkit . World worldMock = mock ( org . bukkit . World . class ) ; com . tommytony . war . Warzone zoneMock = mock ( com . tommytony . war . Warzone . class ) ; when ( zoneMock . getTeams ( ) ) . thenReturn ( new java . util . ArrayList < com . tommytony . war . Team > ( ) ) ; when ( zoneMock . getMonuments ( ) ) . thenReturn ( new java . util . ArrayList < com . tommytony . war . structure . Monument > ( ) ) ; com . tommytony . war . volume . ZoneVolume volume = new com . tommytony . war . volume . ZoneVolume ( "test" , worldMock , zoneMock ) ; org . bukkit . Location se = new org . bukkit . Location ( worldMock , 0 , 64 , 0 ) ; volume . setSoutheast ( se ) ; org . bukkit . Location movedOne = new org . bukkit . Location ( worldMock , 0 , 0 , 0 ) ; "<AssertPlaceHolder>" ; } getCornerTwo ( ) { return this . cornerTwo ; }
org . junit . Assert . assertEquals ( movedOne , volume . getCornerTwo ( ) )
testCanNotRepeatMissingStructure ( ) { uk . gov . dstl . baleen . uima . utils . SelectorPath minimal = uk . gov . dstl . baleen . uima . utils . SelectorPath . parse ( "Table" ) ; uk . gov . dstl . baleen . annotators . templates . RepeatSearch repeatSearch = new uk . gov . dstl . baleen . annotators . templates . RepeatSearch ( com . google . common . collect . ImmutableList . of ( minimal ) , minimal ) ; java . util . Optional < uk . gov . dstl . baleen . types . structure . Structure > structure = recordStructureManager . select ( "Document<sp>><sp>Heading" ) ; "<AssertPlaceHolder>" ; } repeatRecord ( java . util . Optional , uk . gov . dstl . baleen . annotators . templates . RepeatSearch , boolean ) { java . util . Optional < java . util . List < uk . gov . dstl . baleen . types . structure . Structure > > repeat = getRepeat ( preceding , repeatSearch ) ; if ( repeat . isPresent ( ) ) { java . util . List < uk . gov . dstl . baleen . types . structure . Structure > structures = repeat . get ( ) ; if ( ! isFirst ) { recordMatch ( structures ) ; } return java . util . Optional . of ( structures . get ( ( ( structures . size ( ) ) - 1 ) ) ) ; } else { if ( isFirst ) { recordMissing ( repeatSearch . getCoveredRepeat ( ) ) ; } return java . util . Optional . empty ( ) ; } }
org . junit . Assert . assertFalse ( recordStructureManager . repeatRecord ( structure , repeatSearch , true ) . isPresent ( ) )
disableFeignTracing ( ) { org . springframework . context . annotation . AnnotationConfigApplicationContext context = new org . springframework . context . annotation . AnnotationConfigApplicationContext ( ) ; context . register ( io . opentracing . contrib . spring . cloud . feign . FeignTracingAutoConfigurationTest . TracerConfig . class , io . opentracing . contrib . spring . cloud . feign . FeignTracingAutoConfiguration . class ) ; org . springframework . boot . test . util . EnvironmentTestUtils . addEnvironment ( context , "opentracing.spring.cloud.feign.enabled:false" ) ; context . refresh ( ) ; java . lang . String [ ] feignContextBeans = context . getBeanNamesForType ( io . opentracing . contrib . spring . cloud . feign . TraceFeignContext . class ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertThat ( feignContextBeans . length , org . hamcrest . Matchers . is ( 0 ) )
testParseActionMapErr ( ) { queriesString = "type=node&enabled=true&status=established&actions=port01" ; target = new org . o3project . odenos . core . component . network . flow . query . OFPFlowQuery ( queriesString ) ; "<AssertPlaceHolder>" ; } parse ( ) { if ( ! ( super . parse ( ) ) ) { return false ; } if ( ! ( org . o3project . odenos . core . component . network . BasicQuery . checkMapExactly ( this . actions , new java . lang . String [ ] { } ) ) ) { return false ; } return true ; }
org . junit . Assert . assertThat ( target . parse ( ) , org . hamcrest . CoreMatchers . is ( false ) )
ToRelationnullNullOProperty ( ) { org . odata4j . core . OProperty < ? > expected = org . odata4j . core . OProperties . null_ ( SentMessage . P_TO_RELATION . getName ( ) , EdmSimpleType . STRING ) ; org . odata4j . core . OProperty < ? > result = this . setDefaultValue ( SentMessage . P_TO_RELATION . build ( ) , SentMessage . P_TO_RELATION . getName ( ) , org . odata4j . core . OProperties . string ( SentMessage . P_TO_RELATION . getName ( ) , "" ) ) ; "<AssertPlaceHolder>" ; } getValue ( ) { return value ; }
org . junit . Assert . assertEquals ( expected . getValue ( ) , result . getValue ( ) )
testOverlapping ( ) { org . hibernate . tool . internal . reveng . OverrideRepository or = new org . hibernate . tool . internal . reveng . OverrideRepository ( ) ; or . addSchemaSelection ( new org . hibernate . tool . api . reveng . SchemaSelection ( null , "OVRTEST" ) ) ; or . addSchemaSelection ( new org . hibernate . tool . api . reveng . SchemaSelection ( null , null , "MASTER" ) ) ; or . addSchemaSelection ( new org . hibernate . tool . api . reveng . SchemaSelection ( null , null , "CHILD" ) ) ; org . hibernate . tool . api . reveng . ReverseEngineeringStrategy res = or . getReverseEngineeringStrategy ( new org . hibernate . tool . internal . reveng . DefaultReverseEngineeringStrategy ( ) ) ; org . hibernate . boot . Metadata metadata = org . hibernate . tool . api . metadata . MetadataDescriptorFactory . createJdbcDescriptor ( res , null , true ) . createMetadata ( ) ; java . util . Set < org . hibernate . tool . api . reveng . TableIdentifier > tables = new java . util . HashSet < org . hibernate . tool . api . reveng . TableIdentifier > ( ) ; java . util . Iterator < org . hibernate . mapping . Table > iter = metadata . collectTableMappings ( ) . iterator ( ) ; while ( iter . hasNext ( ) ) { org . hibernate . mapping . Table element = iter . next ( ) ; boolean added = tables . add ( org . hibernate . tool . api . reveng . TableIdentifier . create ( element ) ) ; if ( ! added ) org . junit . Assert . fail ( ( "duplicate<sp>table<sp>found<sp>for<sp>" + element ) ) ; } "<AssertPlaceHolder>" ; } create ( org . hibernate . mapping . Table ) { return new org . hibernate . tool . api . reveng . TableIdentifier ( table . getCatalog ( ) , table . getSchema ( ) , table . getName ( ) ) ; }
org . junit . Assert . assertEquals ( 4 , tables . size ( ) )
testReadFully ( ) { for ( int i = 0 ; i < ( bytes . capacity ( ) ) ; i ++ ) bytes . write ( i ) ; bytes . position ( 0 ) ; byte [ ] bytes = new byte [ ( ( int ) ( this . bytes . capacity ( ) ) ) ] ; this . bytes . readFully ( bytes ) ; for ( int i = 0 ; i < ( this . bytes . capacity ( ) ) ; i ++ ) "<AssertPlaceHolder>" ; } capacity ( ) { return ( capacity ) - ( start ) ; }
org . junit . Assert . assertEquals ( ( ( byte ) ( i ) ) , bytes [ i ] )
testPutEndpointEntry ( ) { com . aliyuncs . DefaultAcsClient client = mock ( com . aliyuncs . DefaultAcsClient . class ) ; com . aliyuncs . profile . DefaultProfile profile = mock ( com . aliyuncs . profile . DefaultProfile . class ) ; when ( profile . isUsingVpcEndpoint ( ) ) . thenReturn ( false ) ; when ( profile . isUsingInternalLocationService ( ) ) . thenReturn ( true ) ; com . aliyuncs . endpoint . DefaultEndpointResolver resolver = new com . aliyuncs . endpoint . DefaultEndpointResolver ( client , profile ) ; resolver . putEndpointEntry ( "cn-hangzhou" , "ecs" , "userCustomized-ecs.aliyuncs.com" ) ; com . aliyuncs . endpoint . ResolveEndpointRequest request = new com . aliyuncs . endpoint . ResolveEndpointRequest ( "cn-hangzhou" , "ecs" , null , null ) ; "<AssertPlaceHolder>" ; } resolve ( com . aliyuncs . endpoint . ResolveEndpointRequest ) { java . lang . String productCode = request . productCode . toLowerCase ( ) ; java . lang . String regionId = request . regionId . toLowerCase ( ) ; return java . lang . String . format ( "%s-vpc.%s.aliyuncs.com" , productCode , regionId ) ; }
org . junit . Assert . assertEquals ( "userCustomized-ecs.aliyuncs.com" , resolver . resolve ( request ) )
testToJson ( ) { org . apache . tajo . datum . Datum d = org . apache . tajo . datum . DatumFactory . createTimeStamp ( org . apache . tajo . datum . TestTimestampDatum . timestamp ) ; org . apache . tajo . datum . Datum copy = org . apache . tajo . json . CommonGsonHelper . fromJson ( d . toJson ( ) , org . apache . tajo . datum . Datum . class ) ; "<AssertPlaceHolder>" ; } toJson ( ) { return org . apache . tajo . engine . json . CoreGsonHelper . toJson ( this , org . apache . tajo . engine . planner . logical . LogicalNode . class ) ; }
org . junit . Assert . assertEquals ( d , copy )
deveObterInfoCancelamentoComoFoiSetado ( ) { final com . fincatto . documentofiscal . nfe400 . classes . evento . cancelamento . NFRetornoCancelamento cancelamento = new com . fincatto . documentofiscal . nfe400 . classes . evento . cancelamento . NFRetornoCancelamento ( ) ; final com . fincatto . documentofiscal . nfe400 . classes . evento . cancelamento . NFRetornoInfoCancelamento infoCancelamento = new com . fincatto . documentofiscal . nfe400 . classes . evento . cancelamento . NFRetornoInfoCancelamento ( ) ; cancelamento . setInfoCancelamento ( infoCancelamento ) ; "<AssertPlaceHolder>" ; } getInfoCancelamento ( ) { return this . infoCancelamento ; }
org . junit . Assert . assertEquals ( infoCancelamento , cancelamento . getInfoCancelamento ( ) )
testInterceptionServlet_withKarafEtc_overrideBanner ( ) { javax . servlet . http . HttpServletResponse resp = org . mockito . Mockito . mock ( javax . servlet . http . HttpServletResponse . class ) ; org . mockito . Mockito . when ( resp . getOutputStream ( ) ) . thenReturn ( org . mockito . Mockito . mock ( javax . servlet . ServletOutputStream . class ) ) ; javax . servlet . http . HttpServletRequest req = org . mockito . Mockito . mock ( javax . servlet . http . HttpServletRequest . class ) ; org . mockito . Mockito . when ( req . getServletPath ( ) ) . thenReturn ( net . roboconf . dm . web . administration . WebAdminInterceptionServlet . BANNER_IMAGE ) ; javax . servlet . ServletConfig sc = org . mockito . Mockito . mock ( javax . servlet . ServletConfig . class ) ; javax . servlet . ServletContext ctx = org . mockito . Mockito . mock ( javax . servlet . ServletContext . class ) ; org . mockito . Mockito . when ( sc . getServletContext ( ) ) . thenReturn ( ctx ) ; net . roboconf . dm . web . administration . WebAdminInterceptionServlet servlet = new net . roboconf . dm . web . administration . WebAdminInterceptionServlet ( ) ; servlet . init ( sc ) ; java . io . File dir = this . folder . newFolder ( ) ; servlet . karafEtc = dir . getAbsolutePath ( ) ; java . io . File f = new java . io . File ( dir , net . roboconf . dm . web . administration . WebAdminInterceptionServlet . OVERRIDE_IMAGE ) ; net . roboconf . core . utils . Utils . writeStringInto ( "something" , f ) ; "<AssertPlaceHolder>" ; servlet . doGet ( req , resp ) ; org . mockito . Mockito . verify ( req , org . mockito . Mockito . atLeast ( 1 ) ) . getServletPath ( ) ; org . mockito . Mockito . verify ( resp , org . mockito . Mockito . only ( ) ) . getOutputStream ( ) ; } writeStringInto ( java . lang . String , java . io . File ) { java . io . InputStream in = new java . io . ByteArrayInputStream ( s . getBytes ( StandardCharsets . UTF_8 ) ) ; net . roboconf . core . utils . Utils . copyStream ( in , outputFile ) ; }
org . junit . Assert . assertTrue ( f . exists ( ) )
testBug51544Direct ( ) { javax . el . ExpressionFactory factory = javax . el . ExpressionFactory . newInstance ( ) ; javax . el . ELContext context = new org . apache . jasper . el . ELContextImpl ( ) ; java . util . List < ? > list = java . util . Collections . emptyList ( ) ; javax . el . ValueExpression var = factory . createValueExpression ( list , java . util . List . class ) ; context . getVariableMapper ( ) . setVariable ( "list" , var ) ; javax . el . ValueExpression ve = factory . createValueExpression ( context , "${list.size()}" , org . apache . el . Integer . class ) ; java . lang . Integer result = ( ( java . lang . Integer ) ( ve . getValue ( context ) ) ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertEquals ( java . lang . Integer . valueOf ( 0 ) , result )
testGetXMPWithValidImageNotContainingXMP ( ) { java . nio . file . Path file = edu . illinois . library . cantaloupe . test . TestUtil . getImage ( "gif" ) ; try ( javax . imageio . stream . ImageInputStream is = javax . imageio . ImageIO . createImageInputStream ( file . toFile ( ) ) ) { instance . setSource ( is ) ; "<AssertPlaceHolder>" ; } } getXMP ( ) { return java . util . Optional . ofNullable ( xmp ) ; }
org . junit . Assert . assertNull ( instance . getXMP ( ) )
testNoGroupBy ( ) { final java . lang . String xml = "/net/meisen/dissertation/impl/parser/query/testPersonModel.xml" ; final java . lang . String query = "select<sp>timeseries<sp>from<sp>testPersonModel<sp>in<sp>[03.03.2014,05.03.2014)" ; m ( xml ) ; final net . meisen . dissertation . impl . parser . query . select . SelectResult res = factory . evaluateQuery ( q ( query ) , null ) ; "<AssertPlaceHolder>" ; } getGroupResult ( ) { return groupResult ; }
org . junit . Assert . assertNull ( res . getGroupResult ( ) )
cannotHeartbeatLockYouDontOwn ( ) { final com . amazonaws . services . dynamodbv2 . LockItem item = this . lockClient . acquireLock ( com . amazonaws . services . dynamodbv2 . ACQUIRE_LOCK_OPTIONS_TEST_KEY_1 ) ; "<AssertPlaceHolder>" ; final com . amazonaws . services . dynamodbv2 . AmazonDynamoDBLockClient lockClient2 = new com . amazonaws . services . dynamodbv2 . AmazonDynamoDBLockClient ( com . amazonaws . services . dynamodbv2 . AmazonDynamoDBLockClientOptions . builder ( this . dynamoDBMock , com . amazonaws . services . dynamodbv2 . TABLE_NAME ) . withOwnerName ( com . amazonaws . services . dynamodbv2 . BasicLockClientTests . INTEGRATION_TESTER_2 ) . withLeaseDuration ( 30L ) . withHeartbeatPeriod ( 2L ) . withTimeUnit ( TimeUnit . SECONDS ) . withCreateHeartbeatBackgroundThread ( false ) . build ( ) ) ; final java . util . Optional < com . amazonaws . services . dynamodbv2 . LockItem > item2 = lockClient2 . getLock ( "testKey1" , java . util . Optional . empty ( ) ) ; lockClient2 . sendHeartbeat ( item2 . get ( ) ) ; lockClient2 . close ( ) ; } getPartitionKey ( ) { return this . partitionKey ; }
org . junit . Assert . assertEquals ( item . getPartitionKey ( ) , "testKey1" )
shouldReturnFalseWhenValidatingPatternWithHigherNumberOfTransitions ( ) { java . lang . String invalidPattern = com . mifmif . common . regex . GenerexUnitTest . createPatternWithTransitions ( 1000000 ) ; boolean valid = com . mifmif . common . regex . Generex . isValidPattern ( invalidPattern ) ; "<AssertPlaceHolder>" ; } isValidPattern ( java . lang . String ) { try { com . mifmif . common . regex . Generex . createRegExp ( regex ) ; return true ; } catch ( java . lang . IllegalArgumentException ignore ) { } catch ( java . lang . StackOverflowError ignore ) { } return false ; }
org . junit . Assert . assertThat ( valid , org . hamcrest . Matchers . is ( org . hamcrest . Matchers . equalTo ( false ) ) )
testConstructor ( ) { org . openscience . cdk . stereo . DoubleBondStereochemistry stereo = new org . openscience . cdk . stereo . DoubleBondStereochemistry ( org . openscience . cdk . stereo . DoubleBondStereochemistryTest . molecule . getBond ( 1 ) , org . openscience . cdk . stereo . DoubleBondStereochemistryTest . ligands , org . openscience . cdk . interfaces . IDoubleBondStereochemistry . Conformation . OPPOSITE ) ; "<AssertPlaceHolder>" ; } getBond ( int ) { if ( ( idx < 0 ) || ( idx >= ( bondCount ) ) ) throw new java . lang . IndexOutOfBoundsException ( ( ( ( "Bond<sp>index<sp>out<sp>of<sp>bounds:<sp>0<sp><=<sp>" + idx ) + "<sp><<sp>" ) + ( bondCount ) ) ) ; return bonds [ idx ] ; }
org . junit . Assert . assertNotNull ( stereo )
testBoostingQuery ( ) { com . liferay . portal . search . query . Query positiveQuery = null ; com . liferay . portal . search . query . Query negativeQuery = null ; com . liferay . portal . search . query . BoostingQuery boostingQuery = com . liferay . portal . search . query . test . QueriesInstantiationTest . _queries . boosting ( positiveQuery , negativeQuery ) ; "<AssertPlaceHolder>" ; } boosting ( com . liferay . portal . search . query . Query , com . liferay . portal . search . query . Query ) { return new com . liferay . portal . search . internal . query . BoostingQueryImpl ( positiveQuery , negativeQuery ) ; }
org . junit . Assert . assertNotNull ( boostingQuery )
testCurlNull ( ) { "<AssertPlaceHolder>" ; } curl ( java . lang . Object , int [ ] ) { if ( input == null ) { return null ; } if ( ( ! ( input . getClass ( ) . isArray ( ) ) ) || ( input . getClass ( ) . getComponentType ( ) . isArray ( ) ) ) { throw new java . lang . RuntimeException ( "Attempt<sp>to<sp>curl<sp>non-1D<sp>array" ) ; } int size = java . lang . reflect . Array . getLength ( input ) ; int test = 1 ; for ( int dimen : dimens ) { test *= dimen ; } if ( test != size ) { throw new java . lang . RuntimeException ( "Curled<sp>array<sp>does<sp>not<sp>fit<sp>desired<sp>dimensions" ) ; } java . lang . Object newArray = nom . tam . util . ArrayFuncs . newInstance ( nom . tam . util . ArrayFuncs . getBaseClass ( input ) , dimens ) ; nom . tam . util . array . MultiArrayCopier . copyInto ( input , newArray ) ; return newArray ; }
org . junit . Assert . assertNull ( nom . tam . util . ArrayFuncs . curl ( null , null ) )
testGetDefaultIndexPatternWhenConfigDoesNotExist ( ) { givenSearchResultForDocuments ( ".kibana.foo" , new java . util . HashMap ( ) ) ; java . lang . String defaultPattern = utils . getDefaultIndexPattern ( ".kibana.foo" , "test-index-pattern" ) ; "<AssertPlaceHolder>" ; } getDefaultIndexPattern ( java . lang . String , java . lang . String ) { try { org . elasticsearch . action . search . SearchResponse response = pluginClient . search ( kibanaIndex , "config" ) ; final long totalHits = response . getHits ( ) . getTotalHits ( ) ; if ( totalHits == 0 ) { return defaultIfNotSet ; } else if ( totalHits == 1 ) { return getDefaultFromContent ( response . getHits ( ) . getHits ( ) [ 0 ] . getSourceAsString ( ) , defaultIfNotSet ) ; } java . util . Map < com . github . zafarkhaja . semver . Version , java . lang . String > patternMap = new java . util . HashMap ( ) ; for ( org . elasticsearch . search . SearchHit hit : response . getHits ( ) . getHits ( ) ) { java . lang . String source = hit . getSourceAsString ( ) ; java . lang . String defaultIndex = defaultIfNotSet ; try { defaultIndex = defaultPath . read ( source ) ; } catch ( com . jayway . jsonpath . PathNotFoundException e ) { } patternMap . put ( com . github . zafarkhaja . semver . Version . valueOf ( hit . getId ( ) ) , defaultIndex ) ; } java . util . List < com . github . zafarkhaja . semver . Version > versions = new java . util . ArrayList ( patternMap . keySet ( ) ) ; java . util . Collections . sort ( versions ) ; if ( versions . contains ( defaultVersion ) ) { return org . apache . commons . lang . StringUtils . defaultIfBlank ( patternMap . get ( defaultVersion ) , "" ) ; } else { return patternMap . get ( versions . get ( ( ( versions . size ( ) ) - 1 ) ) ) ; } } catch ( org . elasticsearch . index . IndexNotFoundException e ) { return defaultIfNotSet ; } }
org . junit . Assert . assertEquals ( "test-index-pattern" , defaultPattern )
loadEmptyScenario ( ) { final org . uberfire . backend . vfs . Path scenarioPath = getEmptyScenarioPath ( ) ; final org . drools . workbench . models . testscenarios . shared . Scenario loadedScenario = testEditorService . load ( scenarioPath ) ; "<AssertPlaceHolder>" ; } load ( org . uberfire . backend . vfs . Path ) { try { final java . lang . String content = ioService . readAllString ( org . uberfire . backend . server . util . Paths . convert ( path ) ) ; return ( ( org . drools . workbench . models . guided . template . shared . TemplateModel ) ( org . drools . workbench . models . guided . template . backend . RuleTemplateModelXMLPersistenceImpl . getInstance ( ) . unmarshal ( content ) ) ) ; } catch ( java . lang . Exception e ) { throw org . guvnor . common . services . backend . exceptions . ExceptionUtilities . handleException ( e ) ; } }
org . junit . Assert . assertNotNull ( loadedScenario )
testRemoteAccess ( ) { final javax . naming . Context context = org . jboss . as . test . shared . integration . ejb . security . Util . createNamingContext ( ) ; org . jboss . as . test . integration . ws . ejb . SimpleStatelessWebserviceEndpointIface ejb3Remote = ( ( org . jboss . as . test . integration . ws . ejb . SimpleStatelessWebserviceEndpointIface ) ( context . lookup ( ( "ejb:/stateless-ws-endpoint-example/SimpleStatelessWebserviceEndpointImpl!" + ( org . jboss . as . test . integration . ws . ejb . SimpleStatelessWebserviceEndpointIface . class . getName ( ) ) ) ) ) ) ; java . lang . String helloWorld = "Hello<sp>world!" ; java . lang . Object retObj = ejb3Remote . echo ( helloWorld ) ; "<AssertPlaceHolder>" ; } echo ( java . lang . String ) { org . jboss . as . test . integration . web . sso . interfaces . StatelessSessionBean . log . debug ( ( "echo,<sp>arg=" + arg ) ) ; java . security . Principal p = sessionContext . getCallerPrincipal ( ) ; org . jboss . as . test . integration . web . sso . interfaces . StatelessSessionBean . log . debug ( ( "echo,<sp>callerPrincipal=" + p ) ) ; return p . getName ( ) ; }
org . junit . Assert . assertEquals ( helloWorld , retObj )
testGetFirstMapping ( ) { org . openscience . cdk . interfaces . IAtom atomSource = new org . openscience . cdk . Atom ( "R" ) ; org . openscience . cdk . interfaces . IAtom atomTarget = new org . openscience . cdk . Atom ( "R" ) ; org . openscience . cdk . interfaces . IAtomContainer source = new org . openscience . cdk . AtomContainer ( ) ; source . addAtom ( atomSource ) ; org . openscience . cdk . interfaces . IAtomContainer target = new org . openscience . cdk . AtomContainer ( ) ; target . addAtom ( atomTarget ) ; boolean removeHydrogen = false ; org . openscience . cdk . smsd . algorithm . single . SingleMappingHandler instance = new org . openscience . cdk . smsd . algorithm . single . SingleMappingHandler ( removeHydrogen ) ; org . openscience . cdk . smsd . tools . MolHandler mol1 = new org . openscience . cdk . smsd . tools . MolHandler ( source , true , true ) ; org . openscience . cdk . smsd . tools . MolHandler mol2 = new org . openscience . cdk . smsd . tools . MolHandler ( target , true , true ) ; instance . set ( mol1 , mol2 ) ; instance . searchMCS ( true ) ; "<AssertPlaceHolder>" ; } getFirstMapping ( ) { return firstSolution . isEmpty ( ) ? null : firstSolution ; }
org . junit . Assert . assertNotNull ( instance . getFirstMapping ( ) )
testParameterValue_singletonList ( ) { com . thoughtworks . qdox . model . expression . AnnotationValue value = mock ( com . thoughtworks . qdox . model . expression . AnnotationValue . class ) ; when ( value . getParameterValue ( ) ) . thenReturn ( "2" ) ; com . thoughtworks . qdox . model . expression . AnnotationValueList expr = new com . thoughtworks . qdox . model . expression . AnnotationValueList ( java . util . Collections . singletonList ( value ) ) ; "<AssertPlaceHolder>" ; } getParameterValue ( ) { return ( ( getLeft ( ) . getParameterValue ( ) ) + "<sp><<sp>" ) + ( getRight ( ) . getParameterValue ( ) ) ; }
org . junit . Assert . assertEquals ( java . util . Collections . singletonList ( "2" ) , expr . getParameterValue ( ) )
shouldKillOneHeroAnother ( ) { ( ( com . codenjoy . dojo . spacerace . model . Hero ) ( game3 . getPlayer ( ) . getHero ( ) ) ) . recharge ( ) ; game1 . getJoystick ( ) . up ( ) ; game2 . getJoystick ( ) . up ( ) ; field . tick ( ) ; asrtFl1 ( ( "☼<sp>☼\n" + ( ( ( "☼<sp>☼\n" + "☼<sp>☼\n" ) + "☼☺☻<sp>☼\n" ) + "☼<sp>☻☼\n" ) ) ) ; game1 . getJoystick ( ) . up ( ) ; game2 . getJoystick ( ) . up ( ) ; game3 . getJoystick ( ) . left ( ) ; field . tick ( ) ; asrtFl1 ( ( "☼<sp>☼\n" + ( ( ( "☼<sp>☼\n" + "☼☺☻<sp>☼\n" ) + "☼<sp>☼\n" ) + "☼<sp>☻<sp>☼\n" ) ) ) ; dice ( ( - 1 ) , ( - 1 ) ) ; game3 . getJoystick ( ) . act ( ) ; field . tick ( ) ; asrtFl1 ( ( "☼<sp>☼\n" + ( ( ( "☼<sp>☼\n" + "☼☺☻<sp>☼\n" ) + "☼<sp>*<sp>☼\n" ) + "☼<sp>☻<sp>☼\n" ) ) ) ; field . tick ( ) ; asrtFl1 ( ( "☼<sp>☼\n" + ( ( ( "☼<sp>☼\n" + "☼☺+<sp>☼\n" ) + "☼<sp>☼\n" ) + "☼<sp>☻<sp>☼\n" ) ) ) ; verify ( listener3 ) . event ( Events . DESTROY_ENEMY ) ; verify ( listener2 ) . event ( Events . LOOSE ) ; verifyNoMoreInteractions ( listener1 ) ; "<AssertPlaceHolder>" ; dice ( 1 , 0 ) ; game2 . newGame ( ) ; field . tick ( ) ; asrtFl1 ( ( "☼<sp>☼\n" + ( ( ( "☼<sp>☼\n" + "☼☺<sp>☼\n" ) + "☼<sp>☼\n" ) + "☼☻☻<sp>☼\n" ) ) ) ; } isGameOver ( ) { return false ; }
org . junit . Assert . assertTrue ( game2 . isGameOver ( ) )
testTranform ( ) { gov . hhs . fha . nhinc . orchestration . Orchestratable message = null ; gov . hhs . fha . nhinc . orchestration . PolicyTransformer . Direction direction = null ; gov . hhs . fha . nhinc . docretrieve . entity . OutboundDocRetrievePolicyTransformer_a0 instance = new gov . hhs . fha . nhinc . docretrieve . entity . OutboundDocRetrievePolicyTransformer_a0 ( ) ; gov . hhs . fha . nhinc . common . nhinccommonadapter . CheckPolicyRequestType expResult = null ; gov . hhs . fha . nhinc . common . nhinccommonadapter . CheckPolicyRequestType result = instance . transform ( message , direction ) ; "<AssertPlaceHolder>" ; } transform ( gov . hhs . fha . nhinc . orchestration . Orchestratable , gov . hhs . fha . nhinc . docretrieve . nhin . Direction ) { gov . hhs . fha . nhinc . common . nhinccommonadapter . CheckPolicyRequestType policyReq = null ; if ( message instanceof gov . hhs . fha . nhinc . docretrieve . nhin . InboundDocRetrieveOrchestratable ) { policyReq = transformInbound ( ( ( gov . hhs . fha . nhinc . docretrieve . nhin . InboundDocRetrieveOrchestratable ) ( message ) ) ) ; } return policyReq ; }
org . junit . Assert . assertEquals ( expResult , result )
nearSphereWithMinDistance ( ) { org . springframework . data . geo . Point point = new org . springframework . data . geo . Point ( ( - 73.99171 ) , 40.738868 ) ; java . util . List < org . springframework . data . mongodb . core . Venue > venues = template . find ( query ( where ( "location" ) . nearSphere ( point ) . minDistance ( 0.01 ) ) , org . springframework . data . mongodb . core . Venue . class ) ; "<AssertPlaceHolder>" ; } where ( org . springframework . data . mongodb . core . query . Criteria ) { super . where ( criteria ) ; return this ; }
org . junit . Assert . assertThat ( venues . size ( ) , is ( 1 ) )
testTransformWithNoFunctions ( ) { java . lang . String sql = "select<sp>*<sp>from<sp>Foo" ; com . liferay . portal . dao . sql . transformer . SQLTransformer sqlTransformer = new com . liferay . portal . dao . sql . transformer . DefaultSQLTransformer ( new java . util . function . Function [ 0 ] ) ; "<AssertPlaceHolder>" ; } transform ( java . lang . String ) { if ( html == null ) { return null ; } if ( ( ! ( html . contains ( "<img" ) ) ) || ( ! ( html . contains ( "/documents/" ) ) ) ) { return html ; } return super . transform ( html ) ; }
org . junit . Assert . assertEquals ( sql , sqlTransformer . transform ( sql ) )
getAangifteAdreshoudingOkTest ( ) { final java . lang . String code = "A" ; final java . lang . String expedtedLabel = "Ambtshalve" ; final java . lang . String expected = java . lang . String . format ( nl . bzk . migratiebrp . ggo . viewer . service . impl . Lo3StamtabelServiceTest . STRING_FORMAT , code , expedtedLabel ) ; final java . lang . String resultNat = lo3StamtabelService . getAangifteAdreshouding ( code ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertEquals ( expected , resultNat )
getUniqueUserIdWithUserInSecondaryRealm ( ) { java . lang . String user = "vmmtestuser@SecondaryRealm" ; java . lang . String uniqueUserId = "vmmtestuser@SecondaryRealm" ; com . ibm . websphere . simplicity . log . Log . info ( com . ibm . ws . security . wim . adapter . ldap . fat . URAPIs_Federation_2LDAPs_2RealmsTest . c , "getUniqueUserIdWithUserInSecondaryRealm" , "Checking<sp>with<sp>a<sp>valid<sp>user." ) ; "<AssertPlaceHolder>" ; } getUniqueUserId ( java . lang . String ) { return userRegistry . getUniqueUserId ( securityName ) ; }
org . junit . Assert . assertEquals ( uniqueUserId , com . ibm . ws . security . wim . adapter . ldap . fat . URAPIs_Federation_2LDAPs_2RealmsTest . servlet . getUniqueUserId ( user ) )
testSkipCache ( ) { org . tests . model . basic . ResetBasicData . reset ( ) ; io . ebean . Ebean . find ( org . tests . model . basic . Country . class , "NZ" ) ; io . ebean . Query < org . tests . model . basic . Country > query = io . ebean . Ebean . find ( org . tests . model . basic . Country . class ) . setId ( "NZ" ) . setUseCache ( false ) ; query . findOne ( ) ; "<AssertPlaceHolder>" . isNotNull ( ) ; } getGeneratedSql ( ) { return generatedSql ; }
org . junit . Assert . assertThat ( query . getGeneratedSql ( ) )
testCheckIfAllLigandsAreDifferent_False ( ) { org . openscience . cdk . geometry . cip . ILigand [ ] sameLigands = new org . openscience . cdk . geometry . cip . ILigand [ ] { org . openscience . cdk . geometry . cip . CIPToolTest . ligands [ 0 ] , org . openscience . cdk . geometry . cip . CIPToolTest . ligands [ 0 ] , org . openscience . cdk . geometry . cip . CIPToolTest . ligands [ 1 ] , org . openscience . cdk . geometry . cip . CIPToolTest . ligands [ 2 ] } ; "<AssertPlaceHolder>" ; } checkIfAllLigandsAreDifferent ( org . openscience . cdk . geometry . cip . ILigand [ ] ) { for ( int i = 0 ; i < ( ( ligands . length ) - 1 ) ; i ++ ) { if ( ( org . openscience . cdk . geometry . cip . CIPTool . cipRule . compare ( ligands [ i ] , ligands [ ( i + 1 ) ] ) ) == 0 ) return false ; } return true ; }
org . junit . Assert . assertFalse ( org . openscience . cdk . geometry . cip . CIPTool . checkIfAllLigandsAreDifferent ( sameLigands ) )
testConstructor ( ) { @ org . openhealthtools . mdht . uml . hl7 . datatypes . operations . SuppressWarnings ( "unused" ) org . openhealthtools . mdht . uml . hl7 . datatypes . operations . EIVL_eventOperations obj = new org . openhealthtools . mdht . uml . hl7 . datatypes . operations . EIVL_eventOperations ( ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertTrue ( true )
testGetParameters ( ) { java . lang . Long orderTypeId = 1L ; org . lnu . is . domain . order . type . OrderType orderType = new org . lnu . is . domain . order . type . OrderType ( ) ; orderType . setId ( orderTypeId ) ; java . lang . Long employeeId = 2L ; org . lnu . is . domain . employee . Employee employee = new org . lnu . is . domain . employee . Employee ( ) ; employee . setId ( employeeId ) ; java . lang . Long assetId = 3L ; org . lnu . is . domain . asset . Asset asset = new org . lnu . is . domain . asset . Asset ( ) ; asset . setId ( assetId ) ; java . lang . Long partnerId = 4L ; org . lnu . is . domain . partner . Partner partner = new org . lnu . is . domain . partner . Partner ( ) ; partner . setId ( partnerId ) ; java . lang . Long operationTypeId = 5L ; org . lnu . is . domain . optype . OperationType opType = new org . lnu . is . domain . optype . OperationType ( ) ; opType . setId ( operationTypeId ) ; java . lang . Long reasonId = 6L ; org . lnu . is . domain . reason . Reason reason = new org . lnu . is . domain . reason . Reason ( ) ; reason . setId ( reasonId ) ; java . lang . Long parentId = 7L ; org . lnu . is . domain . order . Order parent = new org . lnu . is . domain . order . Order ( ) ; parent . setId ( parentId ) ; java . lang . String reasonText = "reason<sp>text" ; java . lang . String docSeries = "doc<sp>series" ; java . lang . String docNum = "dco<sp>num" ; java . util . Date docDate = new java . util . Date ( ) ; java . util . Date evDate = new java . util . Date ( ) ; java . lang . String docIssued = "employee" 2 ; org . lnu . is . domain . order . Order entity = new org . lnu . is . domain . order . Order ( ) ; entity . setOrderType ( orderType ) ; entity . setEmployee ( employee ) ; entity . setAsset ( asset ) ; entity . setPartner ( partner ) ; entity . setOpType ( opType ) ; entity . setReason ( reason ) ; entity . setParent ( parent ) ; entity . setReasonText ( reasonText ) ; entity . setDocSeries ( docSeries ) ; entity . setDocNum ( docNum ) ; entity . setDocDate ( docDate ) ; entity . setDocIssued ( docIssued ) ; entity . setEvDate ( evDate ) ; java . util . Map < java . lang . String , java . lang . Object > expected = new java . util . HashMap < java . lang . String , java . lang . Object > ( ) ; expected . put ( "orderType" , orderType ) ; expected . put ( "employee" , employee ) ; expected . put ( "asset" , asset ) ; expected . put ( "employee" 8 , partner ) ; expected . put ( "opType" , opType ) ; expected . put ( "employee" 4 , reason ) ; expected . put ( "employee" 7 , parent ) ; expected . put ( "employee" 6 , reasonText ) ; expected . put ( "employee" 1 , docSeries ) ; expected . put ( "docNum" , docNum ) ; expected . put ( "employee" 0 , docDate ) ; expected . put ( "docIssued" , docIssued ) ; expected . put ( "employee" 5 , evDate ) ; expected . put ( "employee" 3 , RowStatus . ACTIVE ) ; expected . put ( "userGroups" , groups ) ; when ( orderTypeDao . getEntityById ( anyLong ( ) ) ) . thenReturn ( orderType ) ; when ( employeeDao . getEntityById ( anyLong ( ) ) ) . thenReturn ( employee ) ; when ( assetDao . getEntityById ( anyLong ( ) ) ) . thenReturn ( asset ) ; when ( partnerDao . getEntityById ( anyLong ( ) ) ) . thenReturn ( partner ) ; when ( operationTypeDao . getEntityById ( anyLong ( ) ) ) . thenReturn ( opType ) ; when ( reasonDao . getEntityById ( anyLong ( ) ) ) . thenReturn ( reason ) ; when ( orderDao . getEntityById ( anyLong ( ) ) ) . thenReturn ( parent ) ; java . util . Map < java . lang . String , java . lang . Object > actual = unit . getParameters ( entity ) ; verify ( orderTypeDao ) . getEntityById ( orderTypeId ) ; verify ( employeeDao ) . getEntityById ( employeeId ) ; verify ( assetDao ) . getEntityById ( assetId ) ; verify ( partnerDao ) . getEntityById ( partnerId ) ; verify ( operationTypeDao ) . getEntityById ( operationTypeId ) ; verify ( reasonDao ) . getEntityById ( reasonId ) ; verify ( orderDao ) . getEntityById ( parentId ) ; "<AssertPlaceHolder>" ; } getEntityById ( KEY ) { org . lnu . is . dao . dao . DefaultDao . LOG . info ( "Getting<sp>{}.entity<sp>wit<sp>id" , getEntityClass ( ) . getSimpleName ( ) , id ) ; return persistenceManager . findById ( getEntityClass ( ) , id ) ; }
org . junit . Assert . assertEquals ( expected , actual )
testDeleteSubnetwork_Null ( ) { org . easymock . EasyMock . expect ( computeRpcMock . deleteSubnetwork ( com . google . cloud . compute . deprecated . ComputeImplTest . SUBNETWORK_ID . getRegion ( ) , com . google . cloud . compute . deprecated . ComputeImplTest . SUBNETWORK_ID . getSubnetwork ( ) , com . google . cloud . compute . deprecated . ComputeImplTest . EMPTY_RPC_OPTIONS ) ) . andReturn ( null ) ; org . easymock . EasyMock . replay ( computeRpcMock ) ; compute = options . getService ( ) ; "<AssertPlaceHolder>" ; } deleteSubnetwork ( com . google . cloud . compute . v1 . ProjectRegionSubnetworkName ) { com . google . cloud . compute . v1 . DeleteSubnetworkHttpRequest request = com . google . cloud . compute . v1 . DeleteSubnetworkHttpRequest . newBuilder ( ) . setSubnetwork ( ( subnetwork == null ? null : subnetwork . toString ( ) ) ) . build ( ) ; return deleteSubnetwork ( request ) ; }
org . junit . Assert . assertNull ( compute . deleteSubnetwork ( com . google . cloud . compute . deprecated . ComputeImplTest . SUBNETWORK_ID ) )