input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
testGetDecompressorType ( ) { "<AssertPlaceHolder>" ; } getDecompressorType ( ) { com . conductor . hadoop . compress . SnappyFramedCodec . LOG . warn ( "This<sp>codec<sp>doesn't<sp>use<sp>a<sp>decompressor,<sp>returning<sp>null." ) ; return null ; }
org . junit . Assert . assertNull ( subject . getDecompressorType ( ) )
testAclTreatmentCloneToCpu ( ) { org . onosproject . net . flow . TrafficTreatment treatment = org . onosproject . net . flow . DefaultTrafficTreatment . builder ( ) . punt ( ) . build ( ) ; org . onosproject . net . pi . runtime . PiAction mappedAction = interpreter . mapTreatment ( treatment , FabricConstants . FABRI...
org . junit . Assert . assertEquals ( expectedAction , mappedAction )
listOfEnumSingleValue ( ) { java . util . Map < ? , ? > map = newMap ( com . hotels . bdp . circustrain . core . util . MoreMapUtilsTest . KEY , com . hotels . bdp . circustrain . core . util . MoreMapUtilsTest . MyEnum . ONE ) ; java . util . List < com . hotels . bdp . circustrain . core . util . MoreMapUtilsTest . M...
org . junit . Assert . assertThat ( actualEnums , org . hamcrest . CoreMatchers . is ( expectedEnums ) )
testCreateAccountAndFindAccount ( ) { es . udc . pojo . minibank . model . account . Account account = accountService . createAccount ( new es . udc . pojo . minibank . model . account . Account ( 1 , 10 ) ) ; es . udc . pojo . minibank . model . account . Account account2 = accountService . findAccount ( account . get...
org . junit . Assert . assertEquals ( account , account2 )
testContiguousFrameTarget ( ) { org . apache . uima . collection . CollectionReaderDescription reader = createReaderDescription ( de . tudarmstadt . ukp . dkpro . core . io . tiger . TigerXmlReader . class , TigerXmlReader . PARAM_SOURCE_LOCATION , "src/test/resources/" , TigerXmlReader . PARAM_PATTERNS , "[+]tiger-sam...
org . junit . Assert . assertEquals ( true , found )
testJar ( ) { java . lang . String jar = org . apache . hadoop . util . JarFinder . getJar ( org . apache . commons . logging . LogFactory . class ) ; "<AssertPlaceHolder>" ; } getJar ( java . lang . Class ) { com . google . common . base . Preconditions . checkNotNull ( klass , "klass" ) ; java . lang . ClassLoader lo...
org . junit . Assert . assertTrue ( new java . io . File ( jar ) . exists ( ) )
testReference_XPath ( ) { org . omg . bpmn . miwg . api . AnalysisJob job = new org . omg . bpmn . miwg . api . AnalysisJob ( "Reference" , "C.3.0" , org . omg . bpmn . miwg . api . Variant . Reference , new org . omg . bpmn . miwg . api . input . ResourceAnalysisInput ( getClass ( ) , "/Reference/C.3.0.bpmn" ) ) ; job...
org . junit . Assert . assertEquals ( 0 , result . numFindings ( ) )
test1 ( ) { org . jerlang . type . Binary expected = new org . jerlang . type . Binary ( new byte [ ] { 65 , 65 , 69 , 67 , 65 , 119 , 81 , 70 , 66 , 103 , 99 , 73 , 67 , 81 , 61 , 61 } ) ; org . jerlang . type . Term result = apply ( org . jerlang . stdlib . Base64Test . base64test , org . jerlang . stdlib . Base64Tes...
org . junit . Assert . assertEquals ( expected , result )
testIsSSLDefaultConfig ( ) { mock . checking ( new org . jmock . Expectations ( ) { { one ( conn ) . getRequest ( ) ; will ( returnValue ( request ) ) ; one ( conn ) . useTrustedHeaders ( ) ; will ( returnValue ( true ) ) ; one ( conn ) . getTrustedHeader ( "$WSIS" ) ; will ( returnValue ( null ) ) ; one ( conn ) . get...
org . junit . Assert . assertFalse ( ssl )
testSerialization ( ) { org . jfree . chart . axis . CategoryTick t1 = new org . jfree . chart . axis . CategoryTick ( "C1" , new org . jfree . chart . text . TextBlock ( ) , org . jfree . chart . text . TextBlockAnchor . CENTER , org . jfree . chart . ui . TextAnchor . CENTER , 1.5F ) ; java . io . ByteArrayOutputStre...
org . junit . Assert . assertEquals ( t1 , t2 )
testCheckOptions ( ) { java . util . List < org . pentaho . di . core . CheckResultInterface > remarks = new java . util . ArrayList ( ) ; org . pentaho . di . trans . step . mqtt . MQTTProducerMeta meta = new org . pentaho . di . trans . step . mqtt . MQTTProducerMeta ( ) ; meta . mqttServer = "theserver:1883" ; meta ...
org . junit . Assert . assertEquals ( 0 , remarks . size ( ) )
testRelativePathsAreRelativeToMountPoint ( ) { com . tddinaction . fs . FileSystem fs = getImplementation ( ) ; fs . writeFile ( "file.txt" , "content" . getBytes ( ) ) ; java . io . File expectedFile = new java . io . File ( mountPoint , "file.txt" ) ; java . io . FileInputStream stream = new java . io . FileInputStre...
org . junit . Assert . assertEquals ( "content" , new java . lang . String ( actual ) )
testWithGhostObject ( ) { when ( mockEditor . composeEmail ( ) ) . thenReturn ( "test<sp>email" ) ; java . lang . String reply = emailController . getWithGhostEditor ( ) ; "<AssertPlaceHolder>" ; } getWithGhostEditor ( ) { editorService = new EnglishEditorServiceImpl ( ) ; return editorService . composeEmail ( ) ; }
org . junit . Assert . assertEquals ( "test<sp>email" , reply )
testDiff ( ) { com . deepoove . swagger . diff . SwaggerDiff diff = com . deepoove . swagger . diff . SwaggerDiff . compareV2 ( SWAGGER_V2_DOC1 , SWAGGER_V2_DOC2 ) ; java . util . List < com . deepoove . swagger . diff . model . ChangedEndpoint > changedEndPoints = diff . getChangedEndpoints ( ) ; java . lang . String ...
org . junit . Assert . assertFalse ( changedEndPoints . isEmpty ( ) )
testFolderClosedExceptionHeaders ( ) { com . sun . mail . test . TestServer server = null ; try { final com . sun . mail . pop3 . POP3Handler handler = new com . sun . mail . pop3 . POP3FolderClosedExceptionTest . POP3HandlerTimeoutHeader ( ) ; server = new com . sun . mail . test . TestServer ( handler ) ; server . st...
org . junit . Assert . assertFalse ( folder . isOpen ( ) )
instantTest ( ) { com . salesforce . grpc . contrib . Instant now1 = com . salesforce . grpc . contrib . Instant . now ( com . salesforce . grpc . contrib . Clock . systemUTC ( ) ) ; com . salesforce . grpc . contrib . Instant now2 = com . salesforce . grpc . contrib . MoreTimestamps . toInstantUtc ( com . salesforce ....
org . junit . Assert . assertEquals ( now1 , now2 )
testRequestWithInvalidFinishTimeEndQuery ( ) { org . apache . hadoop . yarn . api . protocolrecords . GetApplicationsRequest request = org . apache . hadoop . yarn . server . resourcemanager . webapp . ApplicationsRequestBuilder . create ( ) . withFinishTimeEnd ( "bla" ) . build ( ) ; org . apache . hadoop . yarn . api...
org . junit . Assert . assertEquals ( expectedRequest , request )
parseWhenNullSource ( ) { org . xwiki . rendering . block . XDOM xdom = mocker . getComponentUnderTest ( ) . parse ( null , Syntax . PLAIN_1_0 ) ; "<AssertPlaceHolder>" ; } getChildren ( ) { return this . runners ; }
org . junit . Assert . assertEquals ( 0 , xdom . getChildren ( ) . size ( ) )
testSubtractOfCompletelyContainedRange ( ) { org . antlr . v4 . runtime . misc . IntervalSet s = org . antlr . v4 . runtime . misc . IntervalSet . of ( 10 , 20 ) ; org . antlr . v4 . runtime . misc . IntervalSet s2 = org . antlr . v4 . runtime . misc . IntervalSet . of ( 12 , 15 ) ; java . lang . String expecting = "{1...
org . junit . Assert . assertEquals ( expecting , result )
testNotifications ( ) { org . apache . fluo . accumulo . iterators . TestData input = new org . apache . fluo . accumulo . iterators . TestData ( ) ; input . add ( "0<sp>ntfy<sp>foo:bar<sp>7" , "" ) ; input . add ( "0<sp>ntfy<sp>foo:bar<sp>5" , "" ) ; input . add ( "0<sp>ntfy<sp>foo:bar<sp>4" , "" ) ; input . add ( "1<...
org . junit . Assert . assertEquals ( input , output )
testZeroSizedIteration ( ) { org . eclipse . january . dataset . Dataset ta = org . eclipse . january . dataset . DatasetFactory . createRange ( 24 ) ; org . eclipse . january . dataset . IndexIterator it = ta . getSliceIterator ( null , new int [ ] { 0 } , null ) ; "<AssertPlaceHolder>" ; } hasNext ( ) { int j = endra...
org . junit . Assert . assertFalse ( it . hasNext ( ) )
DeclarationVariableStatic ( ) { java . lang . String fromClass = "Domain.Direct.Violating.DeclarationVariableStatic" ; java . lang . String toClass = "Technology.Direct.Dao.ProfileDAO" ; java . util . ArrayList < java . lang . String > typesToFind = new java . util . ArrayList < java . lang . String > ( ) ; typesToFind...
org . junit . Assert . assertTrue ( areDependencyTypesDetected ( fromClass , toClass , typesToFind , false ) )
test999_Teardown ( ) { "<AssertPlaceHolder>" ; } stopAllBookies ( com . github . dockerjava . api . DockerClient ) { return org . apache . bookkeeper . tests . integration . utils . BookKeeperClusterUtils . allBookies ( ) . stream ( ) . map ( ( b ) -> stopBookie ( docker , b ) ) . reduce ( true , org . apache . bookkee...
org . junit . Assert . assertTrue ( org . apache . bookkeeper . tests . integration . utils . BookKeeperClusterUtils . stopAllBookies ( docker ) )
testBlasGemm2 ( ) { if ( org . nd4j . linalg . factory . Nd4j . getExecutioner ( ) . getClass ( ) . getSimpleName ( ) . toLowerCase ( ) . contains ( "cuda" ) ) return ; lombok . val A = org . nd4j . linalg . factory . Nd4j . linspace ( 1 , 9 , 9 , DataType . DOUBLE ) . reshape ( 'c' , 3 , 3 ) . dup ( 'f' ) ; lombok . v...
org . junit . Assert . assertEquals ( exp , res )
projectionAsFirstOperation2 ( ) { io . burt . jmespath . Expression < java . lang . Object > expected = Sequence ( Property ( "Records" ) , Projection ( Sequence ( Property ( "requestParameters" ) , Property ( "keyName" ) ) ) ) ; io . burt . jmespath . Expression < java . lang . Object > actual = compile ( "Records[*]....
org . junit . Assert . assertThat ( actual , org . hamcrest . Matchers . is ( expected ) )
getExecProbeWithInvalidExecTest ( ) { probeConfig = new io . fabric8 . maven . core . config . ProbeConfig . Builder ( ) . initialDelaySeconds ( 5 ) . timeoutSeconds ( 5 ) . exec ( "<sp>" ) . build ( ) ; probe = probeHandler . getProbe ( probeConfig ) ; "<AssertPlaceHolder>" ; } getProbe ( io . fabric8 . maven . core ....
org . junit . Assert . assertNull ( probe )
testVoerRegelUitMetLandOverlijdenCodeNederland ( ) { final nl . bzk . brp . model . bericht . kern . PersoonBericht nieuweSituatie = maakNieuweSituatie ( LandGebiedCodeAttribuut . NL_LAND_CODE_SHORT ) ; final java . util . List < nl . bzk . brp . model . basis . BerichtEntiteit > resultaat = brby0906 . voerRegelUit ( n...
org . junit . Assert . assertEquals ( 1 , resultaat . size ( ) )
testBinaryContentImplNegativeSize ( ) { java . io . InputStream is ; try { is = new java . io . FileInputStream ( content ) ; ddf . catalog . data . impl . BinaryContentImpl bci = new ddf . catalog . data . impl . BinaryContentImpl ( is , mimeType ) ; bci . setSize ( ( - 20L ) ) ; "<AssertPlaceHolder>" ; } catch ( java...
org . junit . Assert . assertEquals ( ( - 1 ) , bci . getSize ( ) )
testGetPermittedAccessTypesNonexistentChildUnauthorized ( ) { java . lang . String repositoryPath = ( org . sagebionetworks . repo . manager . AuthorizationManagerImplUnitTest . PARENT_ID ) + "/non-existent-repo" ; when ( mockDockerNodeDao . getEntityIdForRepositoryName ( ( ( ( org . sagebionetworks . repo . manager . ...
org . junit . Assert . assertTrue ( permitted . toString ( ) , permitted . isEmpty ( ) )
testReciprocalZero ( ) { "<AssertPlaceHolder>" ; } reciprocal ( ) { if ( isNaN ) { return org . hipparchus . complex . Complex . NaN ; } if ( ( ( real ) == 0.0 ) && ( ( imaginary ) == 0.0 ) ) { return org . hipparchus . complex . Complex . INF ; } if ( isInfinite ) { return org . hipparchus . complex . Complex . ZERO ;...
org . junit . Assert . assertEquals ( Complex . ZERO . reciprocal ( ) , Complex . INF )
testCallRemoteKieServerOperationWhenContainerSpecIsNull ( ) { final java . util . List < org . kie . server . controller . api . model . runtime . Container > containers = instanceManager . callRemoteKieServerOperation ( serverTemplate , null , operation ) ; "<AssertPlaceHolder>" ; } isEmpty ( ) { return people . isEmp...
org . junit . Assert . assertTrue ( containers . isEmpty ( ) )
testGetText ( ) { opennlp . tools . parser . Parse p = opennlp . tools . parser . Parse . parseParse ( opennlp . tools . parser . ParseTest . PARSE_STRING ) ; java . lang . String expectedText = "She<sp>was<sp>just<sp>another<sp>freighter<sp>from<sp>the<sp>States<sp>,<sp>" + "and<sp>she<sp>seemed<sp>as<sp>commonplace<s...
org . junit . Assert . assertEquals ( expectedText , p . getText ( ) )
test_without_createKeyIndexVertexType ( ) { final com . tinkerpop . blueprints . impls . orient . OrientGraph graph = new com . tinkerpop . blueprints . impls . orient . OrientGraph ( ( "memory:" + ( com . tinkerpop . blueprints . impls . orient . BlueprintsKeyIndexTest . class . getSimpleName ( ) ) ) ) ; graph . setWa...
org . junit . Assert . assertEquals ( 1 , rootNodes . size ( ) )
testGenerateNextValue ( ) { "<AssertPlaceHolder>" ; fieldValueGenerator . generateNextValue ( lastDayInMonth ) ; } generateNextValue ( int ) { return 0 ; }
org . junit . Assert . assertEquals ( lastDayInMonth , fieldValueGenerator . generateNextValue ( 1 ) )
testInterruptedDuringNotification ( ) { java . util . concurrent . Callable < java . lang . Boolean > requestedShutdownCallable = buildRequestedShutdownCallable ( ) ; when ( notificationCompleteLatch . await ( anyLong ( ) , any ( java . util . concurrent . TimeUnit . class ) ) ) . thenAnswer ( ( invocation ) -> { java ...
org . junit . Assert . assertThat ( requestedShutdownCallable . call ( ) , org . hamcrest . CoreMatchers . equalTo ( false ) )
testRemoveAllEmpty ( ) { "<AssertPlaceHolder>" ; } removeAll ( java . lang . String ) { checkPointer ( ( key != null ) ) ; java . util . Set < V > value = map . remove ( key ) ; return value != null ? value : new java . util . HashSet ( ) ; }
org . junit . Assert . assertFalse ( set . removeAll ( java . util . Arrays . asList ( ) ) )
testStartOnline ( ) { System . out . println ( "startOnline" ) ; org . loadosophia . jmeter . LoadosophiaAPIClientEmul instance = new org . loadosophia . jmeter . LoadosophiaAPIClientEmul ( this ) ; net . sf . json . JSONObject resp = new net . sf . json . JSONObject ( ) ; resp . put ( "OnlineID" , "123123" ) ; instanc...
org . junit . Assert . assertEquals ( expResult , result )
testEquals1481087 ( ) { org . jfree . chart . labels . StandardCategoryItemLabelGenerator g1 = new org . jfree . chart . labels . StandardCategoryItemLabelGenerator ( "{0}" , new java . text . DecimalFormat ( "0.00" ) ) ; org . jfree . chart . labels . StandardCategoryToolTipGenerator g2 = new org . jfree . chart . lab...
org . junit . Assert . assertFalse ( g1 . equals ( g2 ) )
testAuthorizeReturningTrue ( ) { edu . illinois . library . cantaloupe . resource . RequestContext context = new edu . illinois . library . cantaloupe . resource . RequestContext ( ) ; context . setIdentifier ( new edu . illinois . library . cantaloupe . image . Identifier ( "whatever" ) ) ; instance . setRequestContex...
org . junit . Assert . assertTrue ( ( ( boolean ) ( instance . authorize ( ) ) ) )
testGetMaxCapacity ( ) { com . jmethods . catatumbo . impl . LRUCache < java . lang . Integer , java . lang . Integer > cache = new com . jmethods . catatumbo . impl . LRUCache ( 5 , 10 ) ; "<AssertPlaceHolder>" ; } getMaxCapacity ( ) { return maxCapacity ; }
org . junit . Assert . assertTrue ( ( ( cache . getMaxCapacity ( ) ) == 10 ) )
validateNoDelimiterSmallInitialBuffer ( ) { java . lang . String data = "Learn<sp>from<sp>yesterday,<sp>live<sp>for<sp>today,<sp>hope<sp>for<sp>tomorrow.<sp>The<sp>important<sp>thing<sp>is<sp>not<sp>to<sp>stop<sp>questioning." ; java . io . ByteArrayInputStream is = new java . io . ByteArrayInputStream ( data . getByte...
org . junit . Assert . assertTrue ( java . util . Arrays . equals ( data . getBytes ( StandardCharsets . UTF_8 ) , scanner . nextToken ( ) ) )
testMultiRowRangeFilterWithEmptyStopRow ( ) { tableName = org . apache . hadoop . hbase . TableName . valueOf ( name . getMethodName ( ) ) ; org . apache . hadoop . hbase . client . Table ht = org . apache . hadoop . hbase . filter . TestMultiRowRangeFilter . TEST_UTIL . createTable ( tableName , family , Integer . MAX...
org . junit . Assert . assertEquals ( results1 . size ( ) , resultsSize )
testTimeout ( ) { java . util . concurrent . atomic . AtomicInteger count = new java . util . concurrent . atomic . AtomicInteger ( 0 ) ; org . nustaq . kontraktor . IPromise p = new org . nustaq . kontraktor . Promise ( ) . timeoutIn ( 1000 ) ; java . lang . Thread . sleep ( 2000 ) ; p . then ( new kontraktor . Callba...
org . junit . Assert . assertTrue ( ( ( count . get ( ) ) == 9 ) )
testDecodePath ( ) { final java . lang . String ESCAPED_PATH = "/test%25+1%26%3Dtest?op=OPEN&foo=bar" ; final java . lang . String EXPECTED_PATH = "/test%+1&=test" ; org . apache . hadoop . conf . Configuration conf = new org . apache . hadoop . conf . Configuration ( ) ; io . netty . handler . codec . http . QueryStri...
org . junit . Assert . assertEquals ( EXPECTED_PATH , testParser . path ( ) )
ShouldCallGetWarnings ( ) { "<AssertPlaceHolder>" ; } getWarnings ( ) { if ( ( warnings ) == null ) { if ( ! ( results . hasWarnings ( ) ) ) { warnings = java . util . Collections . emptyList ( ) ; } else { java . util . List < java . lang . String > messages = new java . util . LinkedList < java . lang . String > ( ) ...
org . junit . Assert . assertNull ( conn . getWarnings ( ) )
givenDbConnectionL_whenFetch_thenCorrect ( ) { java . sql . PreparedStatement pstmt = null ; java . sql . ResultSet rs = null ; java . util . List < com . baeldung . jdbc . Employee > listOfEmployees = new java . util . ArrayList < com . baeldung . jdbc . Employee > ( ) ; try { pstmt = com . baeldung . jdbc . ResultSet...
org . junit . Assert . assertEquals ( 2 , listOfEmployees . size ( ) )
testPutStatusFaildAllFlow ( ) { "<AssertPlaceHolder>" ; }
org . junit . Assert . assertThat ( result . size ( ) , org . hamcrest . CoreMatchers . is ( 1 ) )
givenStringBuilder_whenAppended_thenModified ( ) { java . lang . StringBuilder test = new java . lang . StringBuilder ( ) ; test . append ( "a" ) ; int firstAddressOfTest = java . lang . System . identityHashCode ( test ) ; test . append ( "b" ) ; int secondAddressOfTest = java . lang . System . identityHashCode ( test...
org . junit . Assert . assertEquals ( firstAddressOfTest , secondAddressOfTest )
testAmbiguityFromAutoValueType ( ) { com . google . auto . value . AutoValueTest . Optional autoOptional = com . google . auto . value . AutoValueTest . Optional . create ( com . google . common . base . Optional . absent ( ) ) ; "<AssertPlaceHolder>" ; } getOptional ( ) { return optional ; }
org . junit . Assert . assertEquals ( com . google . common . base . Optional . absent ( ) , autoOptional . getOptional ( ) )
testGetRampUp ( ) { System . out . println ( "getRampUp" ) ; kg . apc . jmeter . threads . SteppingThreadGroup instance = new kg . apc . jmeter . threads . SteppingThreadGroup ( ) ; java . lang . String expResult = "" ; java . lang . String result = instance . getRampUp ( ) ; "<AssertPlaceHolder>" ; } getRampUp ( ) { r...
org . junit . Assert . assertEquals ( expResult , result )
testUserExists ( ) { boolean b = dao . exists ( ( - 1L ) ) ; "<AssertPlaceHolder>" ; } exists ( PK extends java . io . Serializable ) { org . hibernate . Session sess = getSession ( ) ; org . hibernate . IdentifierLoadAccess byId = sess . byId ( persistentClass ) ; T entity = ( ( T ) ( byId . load ( id ) ) ) ; return e...
org . junit . Assert . assertTrue ( b )
testGetAuthObjWithAzureCli ( ) { final com . microsoft . azure . maven . auth . AzureAuthHelper helper = new com . microsoft . azure . maven . auth . AzureAuthHelper ( mojo ) ; final com . microsoft . azure . maven . auth . AzureAuthHelper helperSpy = spy ( helper ) ; doReturn ( authenticated ) . when ( helperSpy ) . g...
org . junit . Assert . assertSame ( authenticated , helperSpy . getAuthObj ( ) )
upgradeFundingsToVrc2Test ( ) { javax . xml . bind . JAXBContext jaxbContext1 = javax . xml . bind . JAXBContext . newInstance ( org . orcid . jaxb . model . record . summary_rc1 . Fundings . class ) ; javax . xml . bind . JAXBContext jaxbContext2 = javax . xml . bind . JAXBContext . newInstance ( org . orcid . jaxb . ...
org . junit . Assert . assertEquals ( rc2Fundings1 . getLastModifiedDate ( ) , rc2Fundings2 . getLastModifiedDate ( ) )
__A$Object_Exists ( ) { com . m3 . scalaflavor4j . SMap < java . lang . String , java . lang . Integer > map = com . m3 . scalaflavor4j . SMap . < java . lang . String , java . lang . Integer > apply ( ) . updated ( "foo" , 123 ) . updated ( "bar" , 234 ) ; java . lang . Integer v = map . apply ( "foo" ) ; "<AssertPlac...
org . junit . Assert . assertThat ( v , org . hamcrest . CoreMatchers . is ( org . hamcrest . CoreMatchers . equalTo ( 123 ) ) )
classLoaderModelWithIncludeTestDependencies ( ) { D desc = createArtifactDescriptor ( ( ( getArtifactRootFolder ( ) ) + "/include-test-dependencies" ) ) ; org . mule . runtime . module . artifact . api . descriptor . ClassLoaderModel classLoaderModel = desc . getClassLoaderModel ( ) ; "<AssertPlaceHolder>" ; } isInclud...
org . junit . Assert . assertThat ( classLoaderModel . isIncludeTestDependencies ( ) , org . hamcrest . core . Is . is ( true ) )
equalsReflexiveTest ( ) { System . out . print ( "-><sp>Reflexive<sp>equals<sp>-<sp>" ) ; ua . com . alexcoffee . model . position . SalePosition position = new ua . com . alexcoffee . model . position . SalePosition ( ) ; "<AssertPlaceHolder>" ; System . out . println ( "OK!" ) ; } equals ( java . lang . Object ) { bo...
org . junit . Assert . assertTrue ( position . equals ( position ) )
testViewInitialization ( ) { org . dashbuilder . dataset . filter . DataSetFilter filter = new org . dashbuilder . dataset . filter . DataSetFilter ( ) ; org . dashbuilder . dataset . filter . ColumnFilter filter1 = org . dashbuilder . dataset . filter . FilterFactory . equalsTo ( "column1" , "Test" ) ; filter . addFil...
org . junit . Assert . assertEquals ( filterView , filterEditor . view )
testLooseInvocationRightBoxing ( ) { java . util . List < net . sourceforge . pmd . lang . java . typeresolution . typeinference . BoundOrConstraint > result = new net . sourceforge . pmd . lang . java . typeresolution . typeinference . Constraint ( number , primitiveInt , LOOSE_INVOCATION ) . reduce ( ) ; "<AssertPlac...
org . junit . Assert . assertEquals ( 1 , result . size ( ) )
testQueryableChain ( ) { final java . util . Iterator < java . lang . Integer > expected = java . util . Arrays . asList ( 2 , 2 , 2 ) . iterator ( ) ; me . josephzhu . java8inaction . test . queryable . Queryable . of ( data ) . distinct ( ) . filter ( ( w ) -> ! ( w . startsWith ( "-" ) ) ) . map ( String :: length )...
org . junit . Assert . assertEquals ( expected . next ( ) , l )
getPentahoMapReduceReducerClass ( ) { "<AssertPlaceHolder>" ; } getPentahoMapReduceReducerClass ( ) { org . junit . Assert . assertEquals ( org . pentaho . hadoop . mapreduce . GenericTransReduce . class , new org . pentaho . hadoop . shim . common . CommonHadoopShim ( ) . getPentahoMapReduceReducerClass ( ) ) ; }
org . junit . Assert . assertEquals ( org . pentaho . hadoop . mapreduce . GenericTransReduce . class , new org . pentaho . hadoop . shim . common . CommonHadoopShim ( ) . getPentahoMapReduceReducerClass ( ) )
testIO ( ) { ivory . bloomir . data . Bits bits = new ivory . bloomir . data . Bits ( 40 ) ; int [ ] indexes = new int [ ] { 0 , 5 , 10 , 38 } ; for ( int i : indexes ) { bits . set ( i ) ; } java . io . ByteArrayOutputStream byteOut = new java . io . ByteArrayOutputStream ( ) ; java . io . DataOutputStream dataOut = n...
org . junit . Assert . assertEquals ( bits , bitsCopy )
testCloseListener1 ( ) { final java . util . concurrent . atomic . AtomicInteger acc = new java . util . concurrent . atomic . AtomicInteger ( 0 ) ; com . moilioncircle . redis . replicator . Replicator replicator = new com . moilioncircle . redis . replicator . RedisReplicator ( new com . moilioncircle . redis . repli...
org . junit . Assert . assertEquals ( 1 , acc . get ( ) )
testDeleteWordFromList ( ) { System . out . println ( "deleteWordFromList" ) ; java . lang . String permalink = net . jeremybrooks . knicker . WordListApiTest . testList . getPermalink ( ) ; java . lang . String word = "test" ; net . jeremybrooks . knicker . WordListApi . deleteWordFromList ( net . jeremybrooks . knick...
org . junit . Assert . assertEquals ( result . size ( ) , 0 )
testFromStringValid ( ) { java . lang . String [ ] validCpfCnpjs = new java . lang . String [ ] { "855.826.525-90" 9 , "60.871.888/0001-60" 0 , "60.871.888/0001-60" 1 , "855.826.525-90" 1 , "855.826.525-90" 5 , "04642835903" , "023.750.169-47" , "02375016947" , "855.826.525-90" , "855.826.525-90" 2 , "06.305.901/0001-7...
org . junit . Assert . assertNotNull ( br . com . insula . opes . CpfCnpj . fromString ( cpfCnpj ) )
shouldReturnNotEqual ( ) { org . eclipse . jgit . lib . Repository leftRepo = lookupRepository ( leftRepoFile ) ; org . eclipse . jgit . lib . Repository rightRepo = lookupRepository ( rightRepoFile ) ; org . eclipse . egit . ui . internal . synchronize . model . GitModelRepository left = new org . eclipse . egit . ui ...
org . junit . Assert . assertFalse ( actual )
testMarshalObject ( ) { java . lang . String result = ( ( java . lang . String ) ( producerTemplate . sendBody ( "direct:internal1" , ExchangePattern . InOut , "message" ) ) ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertEquals ( "message" , result )
testReadNoType ( ) { com . github . anno4j . Anno4j anno4j = new com . github . anno4j . Anno4j ( new org . openrdf . repository . sail . SailRepository ( new org . openrdf . sail . memory . MemoryStore ( ) ) , null , false ) ; org . openrdf . repository . RepositoryConnection repoConnection = anno4j . getRepository ( ...
org . junit . Assert . assertNull ( p )
usesCustomCollectionIfGiven ( ) { org . springframework . data . mongodb . repository . query . MongoEntityInformation < org . springframework . data . mongodb . repository . Person , java . lang . Long > information = new org . springframework . data . mongodb . repository . support . MappingMongoEntityInformation < o...
org . junit . Assert . assertThat ( information . getCollectionName ( ) , org . hamcrest . CoreMatchers . is ( "foobar" ) )
shouldBeAbleToExportArchive ( ) { java . lang . String content = org . jboss . shrinkwrap . api . ShrinkWrap . create ( org . jboss . shrinkwrap . api . spec . WebArchive . class , "test.jar" ) . addAsResource ( new java . io . File ( "src/test/resources/tooling/arquillian.xml" ) , org . jboss . shrinkwrap . api . Arch...
org . junit . Assert . assertNotNull ( content )
testInvalidPort ( ) { node . getAttributes ( ) . put ( "port" , "1234567890" ) ; "<AssertPlaceHolder>" ; } buildPlugin ( ) { return ( ( org . apache . logging . log4j . core . config . plugins . validation . HostAndPort ) ( new org . apache . logging . log4j . core . config . plugins . util . PluginBuilder ( plugin ) ....
org . junit . Assert . assertNull ( buildPlugin ( ) )
testOk ( ) { final nl . bzk . migratiebrp . bericht . model . sync . impl . BlokkeringAntwoordBericht antwoord = new nl . bzk . migratiebrp . bericht . model . sync . impl . BlokkeringAntwoordBericht ( ) ; antwoord . setStatus ( StatusType . OK ) ; final java . util . Map < java . lang . String , java . lang . Object >...
org . junit . Assert . assertEquals ( null , subject . execute ( parameters ) )
addPlayerShouldHaveSurvivalKey ( ) { org . bukkit . entity . Player player = mockPlayer ( "playah" , GameMode . SURVIVAL ) ; me . gnat008 . perworldinventory . groups . Group group = me . gnat008 . perworldinventory . TestHelper . mockGroup ( "test" ) ; given ( settings . getProperty ( PwiProperties . SEPARATE_GAMEMODE...
org . junit . Assert . assertThat ( result , org . hamcrest . Matchers . equalTo ( expected ) )
test_simple_replace_3 ( ) { final java . lang . String input = "{{!PREFIX<sp>local:<sp><http://localhost/local/>" + ( ( "PREFIX<sp>:<sp><http://default/>}}\n" + "{{:name}}\n" ) + "{{local:name}}" ) ; final java . lang . String expected = "\n" + ( "{{http://default/name}}\n" + "{{http://localhost/local/name}}" ) ; "<Ass...
org . junit . Assert . assertEquals ( expected , com . linkedpipes . plugin . transformer . mustachechunked . MustacheTemplatePrefixExpander . expand ( input ) )
testGetParametersWithDefaultEntityAndDisabledStatus ( ) { unit . setActive ( false ) ; org . lnu . is . domain . specoffer . SpecOfferType entity = new org . lnu . is . domain . specoffer . SpecOfferType ( ) ; java . util . Map < java . lang . String , java . lang . Object > expected = new java . util . HashMap < java ...
org . junit . Assert . assertEquals ( expected , actual )
givenLUAScript_thenExecuteScriptOnRedis ( ) { com . baeldung . RedissonIntegrationTest . client . getBucket ( "foo" ) . set ( "bar" ) ; java . lang . String result = com . baeldung . RedissonIntegrationTest . client . getScript ( ) . eval ( RScript . Mode . READ_ONLY , "return<sp>redis.call('get',<sp>'foo')" , RScript ...
org . junit . Assert . assertTrue ( result . equals ( "bar" ) )
redundant ( ) { java . util . List < de . hu . berlin . wbi . objects . MutationMention > mutationMentions = seth . findMutations ( "Mention<sp>with<sp>hyphens:<sp>(rs1001),<sp>colon<sp>:rs123,<sp>slash<sp>/rs754;<sp>" ) ; "<AssertPlaceHolder>" ; } findMutations ( java . lang . String ) { seth . Set < seth . MutationMe...
org . junit . Assert . assertEquals ( mutationMentions . size ( ) , 3 )
testResizeVolumeCommandException2 ( ) { final java . lang . String path = "nfs:/127.0.0.1/storage/secondary" ; final com . cloud . legacymodel . to . StorageFilerTO pool = org . mockito . Mockito . mock ( com . cloud . legacymodel . to . StorageFilerTO . class ) ; final java . lang . Long currentSize = 100L ; final jav...
org . junit . Assert . assertNotNull ( wrapper )
createsRole ( ) { org . springframework . data . jpa . domain . sample . Role reference = new org . springframework . data . jpa . domain . sample . Role ( "ADMIN" ) ; org . springframework . data . jpa . domain . sample . Role result = repository . save ( reference ) ; "<AssertPlaceHolder>" ; } save ( org . springfram...
org . junit . Assert . assertThat ( result , is ( reference ) )
testRelocationsWithArtifact ( ) { final java . util . Properties p = new java . util . Properties ( ) ; p . setProperty ( ( ( RelocationState . DEPENDENCY_RELOCATIONS ) + "oldGroupId:oldArtifactId@newGroupId:newArtifactId" ) , "1.10" ) ; final org . commonjava . maven . ext . core . state . RelocationState state = new ...
org . junit . Assert . assertThat ( state . isEnabled ( ) , org . hamcrest . CoreMatchers . equalTo ( true ) )
testSearchByNameAndDescription ( ) { addStructure ( com . liferay . dynamic . data . mapping . service . test . DDMStructureLocalServiceTest . _classNameId , "Contact" , "Contact" ) ; addStructure ( com . liferay . dynamic . data . mapping . service . test . DDMStructureLocalServiceTest . _classNameId , "Event" , "Even...
org . junit . Assert . assertEquals ( structures . toString ( ) , 2 , structures . size ( ) )
testGetLogSegments ( ) { java . util . List < org . apache . distributedlog . LogSegmentMetadata > segments = mock ( java . util . List . class ) ; when ( impl . getLogSegments ( ) ) . thenReturn ( segments ) ; "<AssertPlaceHolder>" ; verify ( impl , times ( 1 ) ) . getLogSegments ( ) ; } getLogSegments ( ) { return or...
org . junit . Assert . assertEquals ( segments , manager . getLogSegments ( ) )
testConstants_1 ( ) { org . jinstagram . realtime . Constants result = new org . jinstagram . realtime . Constants ( ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertNotNull ( result )
getPrefix_shouldReturnNullIfObscure_patientsIsSetToTrue ( ) { org . openmrs . util . OpenmrsConstants . OBSCURE_PATIENTS = true ; org . openmrs . PersonName pn = new org . openmrs . PersonName ( ) ; pn . setPrefix ( "a<sp>non-null<sp>name" ) ; "<AssertPlaceHolder>" ; org . openmrs . util . OpenmrsConstants . OBSCURE_PA...
org . junit . Assert . assertNull ( pn . getPrefix ( ) )
testDynamicQueryByProjectionMissing ( ) { com . liferay . portal . kernel . dao . orm . DynamicQuery dynamicQuery = com . liferay . portal . kernel . dao . orm . DynamicQueryFactoryUtil . forClass ( com . liferay . portal . workflow . kaleo . model . KaleoTaskInstanceToken . class , _dynamicQueryClassLoader ) ; dynamic...
org . junit . Assert . assertEquals ( 0 , result . size ( ) )
testSameX ( ) { java . util . List < org . openpnp . model . Placement > points = new java . util . ArrayList ( ) ; points . add ( ReferenceFiducialLocatorTest . createPlacement ( 10 , 0 ) ) ; points . add ( ReferenceFiducialLocatorTest . createPlacement ( 10 , 100 ) ) ; points . add ( ReferenceFiducialLocatorTest . cr...
org . junit . Assert . assertEquals ( results . size ( ) , 2 )
testDelete4_delete_black ( ) { tree . delete ( tree . search ( 4 ) ) ; "<AssertPlaceHolder>" ; validateTree ( tree . getRoot ( ) , 2 ) ; } search ( int ) { chapter5 . binarysearchtree . Node result = treeSearch ( node , searchKey ) ; if ( result != null ) { return "success" ; } else { return "fail" ; } }
org . junit . Assert . assertNull ( tree . search ( 4 ) )
testMergeOfRangesAndSingleValues ( ) { org . antlr . v4 . runtime . misc . IntervalSet s = org . antlr . v4 . runtime . misc . IntervalSet . of ( 0 , 41 ) ; s . add ( 42 ) ; s . add ( 43 , 65534 ) ; java . lang . String expecting = "{0..65534}" ; java . lang . String result = s . toString ( ) ; "<AssertPlaceHolder>" ; ...
org . junit . Assert . assertEquals ( expecting , result )
getNoPaymentTypeAvailableMSG_Admin ( ) { org . oscm . ui . model . Service service = new org . oscm . ui . model . Service ( new org . oscm . internal . vo . VOService ( ) ) ; service . setSubscribable ( true ) ; model . setService ( service ) ; when ( userBean . isLoggedInAndAdmin ( ) ) . thenReturn ( Boolean . TRUE )...
org . junit . Assert . assertEquals ( result , SubscriptionDetailsCtrlConstants . MESSAGE_NO_PAYMENT_TYPE_ENABLED )
creatingGroupsFromNoSourcePaths ( ) { com . google . common . collect . ImmutableList < com . facebook . buck . apple . GroupedSource > expected = com . google . common . collect . ImmutableList . of ( ) ; com . facebook . buck . core . sourcepath . resolver . SourcePathResolver resolver = com . facebook . buck . core ...
org . junit . Assert . assertEquals ( expected , actual )
update_by_form_1 ( ) { org . apache . jena . sparql . engine . http . Params params = new org . apache . jena . sparql . engine . http . Params ( ) . addParam ( "update" , "INSERT<sp>DATA{}" ) ; try ( org . apache . jena . atlas . web . TypedInputStream in = org . apache . jena . riot . web . HttpOp . execHttpPostFormS...
org . junit . Assert . assertNotNull ( in )
testGetColumnHeader ( ) { mmarquee . automation . AutomationElement element = org . mockito . Mockito . mock ( mmarquee . automation . AutomationElement . class ) ; mmarquee . automation . pattern . Value value = org . mockito . Mockito . mock ( mmarquee . automation . pattern . Value . class ) ; mmarquee . automation ...
org . junit . Assert . assertTrue ( item . getValue ( ) . equals ( "CELL-01" ) )
testGetRequestData ( ) { System . out . println ( "getRequestData" ) ; java . lang . String expResult = "" ; java . lang . String result = instance . getRequestData ( ) ; "<AssertPlaceHolder>" ; } getRequestData ( ) { return getPropertyAsString ( kg . apc . jmeter . samplers . DummySampler . REQUEST_DATA ) ; }
org . junit . Assert . assertEquals ( expResult , result )
testCreate ( ) { org . oscarehr . common . model . ScheduleHoliday entity = new org . oscarehr . common . model . ScheduleHoliday ( ) ; org . oscarehr . common . dao . utils . EntityDataGenerator . generateTestDataForModelClass ( entity ) ; entity . setId ( new java . util . Date ( ) ) ; dao . persist ( entity ) ; "<As...
org . junit . Assert . assertNotNull ( entity . getId ( ) )
testDeleteAttachmentRetryOnce ( ) { _resource . configure ( "BigSwitchBcfResource" , _parameters ) ; when ( _bigswitchBcfApi . deleteAttachment ( ( ( java . lang . String ) ( any ( ) ) ) , ( ( java . lang . String ) ( any ( ) ) ) , ( ( java . lang . String ) ( any ( ) ) ) ) ) . thenThrow ( new com . cloud . network . b...
org . junit . Assert . assertTrue ( ans . getResult ( ) )
deleteRequestBody ( ) { org . apache . camel . CamelContext camelctx = createCamelContext ( ) ; camelctx . addRoutes ( new org . apache . camel . builder . RouteBuilder ( ) { @ org . wildfly . camel . test . elasticsearch . Override public void configure ( ) throws org . wildfly . camel . test . elasticsearch . Excepti...
org . junit . Assert . assertNotNull ( response )
testIntervalBucketing ( ) { java . io . File tmpDir = temporaryFolder . newFolder ( ) ; java . io . File tmpFile = java . io . File . createTempFile ( "druid" , "index" , tmpDir ) ; try ( java . io . BufferedWriter writer = com . google . common . io . Files . newWriter ( tmpFile , StandardCharsets . UTF_8 ) ) { writer...
org . junit . Assert . assertEquals ( 1 , segments . size ( ) )
shouldRunLoadJobInTestMode ( ) { final com . google . cloud . bigquery . TableId dstTable = com . google . cloud . bigquery . TableId . of ( "foo" , "bar" , "baz" ) ; final java . lang . String srcUri = "gs://foo/bar" ; final com . spotify . flo . Task < com . google . cloud . bigquery . TableId > task = com . spotify ...
org . junit . Assert . assertThat ( result , org . hamcrest . Matchers . is ( dstTable ) )
testJTPSync4 ( ) { final java . util . concurrent . atomic . AtomicBoolean ok = new java . util . concurrent . atomic . AtomicBoolean ( false ) ; org . jrebirth . af . core . concurrent . JRebirth . runIntoJTPSync ( new org . jrebirth . af . core . concurrent . JrbReferenceRunnable ( "JTP_Sync<sp>test<sp>4" , ( ) -> { ...
org . junit . Assert . assertEquals ( true , ok . get ( ) )
update ( ) { org . jdom2 . Document xml1 = new org . jdom2 . Document ( new org . jdom2 . Element ( "root" ) ) ; org . mycore . datamodel . ifs2 . MCRStoredMetadata sm = getMetaDataStore ( ) . create ( new org . mycore . common . content . MCRJDOMContent ( xml1 ) ) ; org . jdom2 . Document xml2 = new org . jdom2 . Docu...
org . junit . Assert . assertEquals ( new org . mycore . common . content . MCRJDOMContent ( xml2 ) . asString ( ) , xml3 . asString ( ) )
getOptionsFromStrings ( ) { org . apache . pdfbox . pdmodel . interactive . form . PDChoice choiceField = new org . apache . pdfbox . pdmodel . interactive . form . PDComboBox ( acroForm ) ; org . apache . pdfbox . cos . COSArray choiceFieldOptions = new org . apache . pdfbox . cos . COSArray ( ) ; choiceFieldOptions ....
org . junit . Assert . assertEquals ( options , choiceField . getOptions ( ) )