input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
testLimitLogs ( ) { java . util . Date start = getDate ( 2007 , 0 , 1 ) ; java . util . Date end = getDate ( 2007 , 0 , 10 ) ; com . ewcms . common . query . jpa . EntityQueryTemplate joinTemplate = new com . ewcms . common . query . jpa . EntityQueryTemplate ( entityManagerFactory . createEntityManager ( ) , com . ewc...
org . junit . Assert . assertTrue ( ( ( list . size ( ) ) == 3 ) )
test_contactdb_recipients_search_get ( ) { com . sendgrid . SendGrid sg = new com . sendgrid . SendGrid ( "SENDGRID_API_KEY" , true ) ; sg . setHost ( "localhost:4010" ) ; sg . addRequestHeader ( "X-Mock" , "200" ) ; com . sendgrid . Request request = new com . sendgrid . Request ( ) ; request . setMethod ( Method . GE...
org . junit . Assert . assertEquals ( 200 , response . getStatusCode ( ) )
shouldLimitAndDeduplicateEntries ( ) { final uk . gov . gchq . gaffer . commonutil . iterable . LimitedInMemorySortedIterable < java . lang . Integer > list = new uk . gov . gchq . gaffer . commonutil . iterable . LimitedInMemorySortedIterable < java . lang . Integer > ( java . util . Comparator . naturalOrder ( ) , 2 ...
org . junit . Assert . assertEquals ( java . util . Arrays . asList ( 1 , 2 ) , com . google . common . collect . Lists . newArrayList ( list ) )
testNDArrayWritablesZeroIndex ( ) { org . nd4j . linalg . api . ndarray . INDArray arr2 = org . nd4j . linalg . factory . Nd4j . zeros ( 2 ) ; arr2 . putScalar ( 0 , 11 ) ; arr2 . putScalar ( 1 , 12 ) ; org . nd4j . linalg . api . ndarray . INDArray arr3 = org . nd4j . linalg . factory . Nd4j . zeros ( 3 ) ; arr3 . put...
org . junit . Assert . assertEquals ( lineOriginal , lineNew )
testPerspectiveShortcut ( ) { java . lang . String [ ] perspectiveShortcutIds = org . eclipse . ui . PlatformUI . getWorkbench ( ) . getActiveWorkbenchWindow ( ) . getActivePage ( ) . getPerspectiveShortcuts ( ) ; java . lang . String [ ] expectedIds = new java . lang . String [ ] { "org.eclipse.debug.ui.DebugPerspecti...
org . junit . Assert . assertArrayEquals ( expectedIds , perspectiveShortcutIds )
testUnmarshal_WrappedStringId ( ) { com . jmethods . catatumbo . entities . WrappedStringIdEntity entity = com . jmethods . catatumbo . entities . WrappedStringIdEntity . getSample4 ( ) ; com . google . cloud . datastore . Entity nativeEntity = ( ( com . google . cloud . datastore . Entity ) ( com . jmethods . catatumb...
org . junit . Assert . assertTrue ( entity . equals ( entity2 ) )
buildDownstream_derived_makeUpstream ( ) { java . lang . System . setProperty ( Property . buildDownstream . fullName ( ) , "derived" ) ; when ( mavenExecutionRequestMock . getMakeBehavior ( ) ) . thenReturn ( MavenExecutionRequest . REACTOR_MAKE_UPSTREAM ) ; com . vackosar . gitflowincrementalbuild . boundary . Config...
org . junit . Assert . assertFalse ( configuration . buildDownstream )
whenReadLargeFileJava7_thenCorrect ( ) { final java . lang . String expected_value = "Hello<sp>world" ; final java . nio . file . Path path = java . nio . file . Paths . get ( "src/test/resources/test_read.in" ) ; final org . baeldung . java . io . BufferedReader reader = java . nio . file . Files . newBufferedReader (...
org . junit . Assert . assertEquals ( expected_value , line )
testi386Arch ( ) { java . util . Properties props = new java . util . Properties ( ) ; props . setProperty ( "os.name" , "dummy" ) ; props . setProperty ( "os.arch" , "i386" ) ; java . lang . Process process = new java . lang . Process ( props ) ; "<AssertPlaceHolder>" ; } arch ( ) { if ( isX64 ( ) ) { return "x64" ; }...
org . junit . Assert . assertEquals ( "ia32" , process . arch ( ) )
getAll_shouldGellVisitAttributeTypesIfIncludeAllIsSetToTrue ( ) { org . openmrs . module . webservices . rest . SimpleObject result = deserialize ( handle ( newGetRequest ( getURI ( ) , new org . openmrs . module . webservices . rest . web . v1_0 . controller . openmrs1_9 . Parameter ( org . openmrs . module . webservi...
org . junit . Assert . assertEquals ( 5 , org . openmrs . module . webservices . rest . test . Util . getResultsSize ( result ) )
runTest ( ) { boolean result = checkNoError ( "Social_Search_Blog_Constraint" ) ; "<AssertPlaceHolder>" ; } getNoErrorMsg ( ) { return noErrorMsg ; }
org . junit . Assert . assertTrue ( getNoErrorMsg ( ) , result )
chainedFunctionCallExpression ( ) { io . burt . jmespath . Expression < java . lang . Object > expected = Sequence ( Property ( "foo" ) , FunctionCall ( "to_string" , java . util . Arrays . asList ( Current ( ) ) ) ) ; io . burt . jmespath . Expression < java . lang . Object > actual = compile ( "foo.to_string(@)" ) ; ...
org . junit . Assert . assertThat ( actual , org . hamcrest . Matchers . is ( expected ) )
testGetLocationHeader ( ) { System . out . println ( "Testing<sp>JsonResponseTest.getLocationHeader" ) ; "<AssertPlaceHolder>" ; } getLocationHeader ( ) { return locationHeader ; }
org . junit . Assert . assertEquals ( null , response . getLocationHeader ( ) )
testConstructor ( ) { new org . openhealthtools . mdht . uml . cda . operations . EntryOperations ( ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertTrue ( true )
testRoundTripWithPlainTextMediaType ( ) { org . sagebionetworks . repo . web . controller . JSONEntityHttpMessageConverter converter = new org . sagebionetworks . repo . web . controller . JSONEntityHttpMessageConverter ( ) ; converter . write ( project , MediaType . TEXT_PLAIN , mockOutMessage ) ; java . io . ByteArra...
org . junit . Assert . assertEquals ( project , results )
testSerialization1 ( ) { org . nd4j . linalg . api . ndarray . INDArray array = org . nd4j . linalg . factory . Nd4j . linspace ( 1 , 5 , 10 ) ; java . io . File tempFile = java . io . File . createTempFile ( "alpha" , "11" ) ; tempFile . deleteOnExit ( ) ; try ( java . io . DataOutputStream dos = new java . io . DataO...
org . junit . Assert . assertEquals ( array , restored )
testReflectInnerClass ( ) { org . apache . hadoop . io . serializer . avro . TestAvroSerialization . InnerRecord before = new org . apache . hadoop . io . serializer . avro . TestAvroSerialization . InnerRecord ( ) ; before . x = 10 ; org . apache . hadoop . io . serializer . avro . TestAvroSerialization . conf . set (...
org . junit . Assert . assertEquals ( before , after )
validateTimeUnit_TimeUnitChanged ( ) { org . oscm . internal . vo . VOPriceModel inputPriceModel = givenVOPriceModel ( CURRENCYISOCODE_USD , Period_DAY ) ; java . lang . String errorMessage = "ex.PriceModelException.UNMODIFIABLE_TIMEUNIT" ; try { bean . validateTimeUnit ( existingPriceModel , inputPriceModel ) ; } catc...
org . junit . Assert . assertEquals ( errorMessage , e . getMessageKey ( ) )
testReplaceAuthorityWithVariable ( ) { java . lang . String input = "content://androi.authority/test/${field0}/${field1}" ; java . lang . String expected = "content://androi.authority/test/#/*" ; log ( input ) ; com . abubusoft . kripton . processor . sqlite . grammars . uri . ContentUriChecker checker = com . abubusof...
org . junit . Assert . assertEquals ( actual , expected )
testGetUrl ( ) { final java . lang . String uuid = "29942295-8683-4e65-917b-f7e7f98e4ad5" ; final java . lang . String serverName = "default" ; final java . lang . String propertyPath = "default" ; final java . lang . String expectedUrl = ( ( ( ( ( "restAPI/preview/" + serverName ) + "/" ) + uuid ) + "/" ) + propertyPa...
org . junit . Assert . assertEquals ( expectedUrl , url )
getAddedValue ( ) { subject . set ( key , value ) ; "<AssertPlaceHolder>" ; } get ( java . lang . Class ) { return getChunk ( ) . getBlockComponentOwner ( x , y , z , true ) . get ( type ) ; }
org . junit . Assert . assertThat ( subject . get ( key ) , org . hamcrest . CoreMatchers . is ( value ) )
sa07_ResponseHeader_onPojo_nocode ( ) { org . apache . juneau . rest . annotation . HeaderInfo x = org . apache . juneau . rest . annotation . ResponseHeaderAnnotationTest . sa . getResponseInfo ( "/sa07" , "get" , 200 ) . getHeader ( "H" ) ; "<AssertPlaceHolder>" ; } getDescription ( ) { return mb . getString ( "descr...
org . junit . Assert . assertEquals ( "a" , x . getDescription ( ) )
testGetSecurityRoleTrimParameters ( ) { securityRoleDaoTestHelper . createSecurityRoleEntity ( org . finra . herd . service . SECURITY_ROLE , org . finra . herd . service . DESCRIPTION ) ; org . finra . herd . model . api . xml . SecurityRole securityRole = securityRoleService . getSecurityRole ( new org . finra . herd...
org . junit . Assert . assertEquals ( new org . finra . herd . model . api . xml . SecurityRole ( SECURITY_ROLE , DESCRIPTION ) , securityRole )
getFileRevisions_shouldReturnTheCommitsWhereTheSpecifiedFileIsChanged ( ) { writeSomethingToCache ( ) ; commitToBranch ( "test_branch" ) ; writeToCache ( "/test_file.txt" ) ; org . eclipse . jgit . revwalk . RevCommit commit2 = commitToBranch ( "test_branch" ) ; updateFile ( "/test_file.txt" , "some<sp>new<sp>text<sp>d...
org . junit . Assert . assertEquals ( expected , actual )
or_tag_predicate_matches_pickle_with_one_of_the_tags ( ) { gherkin . events . PickleEvent pickleEvent = createPickleWithTags ( asList ( cucumber . runtime . filter . TagPredicateTest . FOO_TAG ) ) ; cucumber . runtime . filter . TagPredicate predicate = new cucumber . runtime . filter . TagPredicate ( asList ( cucumber...
org . junit . Assert . assertTrue ( predicate . apply ( pickleEvent ) )
fetchFirstItems ( ) { itemProvider . addItems ( book . twju . chapter_3 . Listing_4_Mock_TimelineTest . FIRST_ITEM , book . twju . chapter_3 . Listing_4_Mock_TimelineTest . SECOND_ITEM ) ; timeline . setFetchCount ( 1 ) ; sessionStorage . setExpectedTopItem ( book . twju . chapter_3 . Listing_4_Mock_TimelineTest . SECO...
org . junit . Assert . assertArrayEquals ( new book . twju . chapter_3 . Item [ ] { book . twju . chapter_3 . Listing_4_Mock_TimelineTest . SECOND_ITEM } , actual . toArray ( new book . twju . chapter_3 . Item [ 1 ] ) )
testParseSimpleWithDecimalsTrunc ( ) { java . lang . String source = ( ( ( ( ( "{{1" + ( getDecimalCharacter ( ) ) ) + "2323,1" ) + ( getDecimalCharacter ( ) ) ) + "4343,1" ) + ( getDecimalCharacter ( ) ) ) + "6333}}" ; org . apache . commons . math3 . linear . RealMatrix expected = org . apache . commons . math3 . lin...
org . junit . Assert . assertEquals ( expected , actual )
cutMenuItemShouldHaveCorrectKeyAsAccelerator ( ) { final javax . swing . KeyStroke ctrlX = javax . swing . KeyStroke . getKeyStroke ( KeyEvent . VK_X , getMenuKey ( ) ) ; final javax . swing . KeyStroke accelerator = cutMenuItem . getAccelerator ( ) ; "<AssertPlaceHolder>" ; } getMenuKey ( ) { if ( net . usikkert . kou...
org . junit . Assert . assertSame ( ctrlX , accelerator )
testImportTechnicalService_OneSubscriptionNotSet ( ) { svcProv . importTechnicalServices ( org . oscm . serviceprovisioningservice . bean . TECHNICAL_SERVICES_XML . getBytes ( "UTF-8" ) ) ; runTX ( new java . util . concurrent . Callable < java . lang . Void > ( ) { @ org . oscm . serviceprovisioningservice . bean . Ov...
org . junit . Assert . assertEquals ( false , techPrd . isOnlyOneSubscriptionAllowed ( ) )
renderConfluencePage_asciiDocWithAllPossibleSectionLevels_returnsConfluencePageContentWithAllSectionHavingCorrectMarkup ( ) { java . lang . String adocContent = "=<sp>Title<sp>level<sp>0\n\n" + ( ( ( ( "==<sp>Title<sp>level<sp>1\n" + "===<sp>Title<sp>level<sp>2\n" ) + "====<sp>Title<sp>level<sp>3\n" ) + "=====<sp>Title...
org . junit . Assert . assertThat ( asciidocConfluencePage . content ( ) , org . hamcrest . Matchers . is ( expectedContent ) )
testInEmpty ( ) { instance . in ( "id" , Collections . EMPTY_LIST ) ; org . dayatang . persistence . jpa . List < org . dayatang . persistence . test . domain . Dictionary > results = repository . find ( instance ) ; "<AssertPlaceHolder>" ; } isEmpty ( ) { return true ; }
org . junit . Assert . assertTrue ( results . isEmpty ( ) )
canWriteOffsetPieceInSingleFileMode ( ) { java . lang . String baseDir = ( this . getClass ( ) . getResource ( "/" ) . getFile ( ) ) + "/files" ; baseDir = java . net . URLDecoder . decode ( baseDir , "utf-8" ) ; baseDir = new java . io . File ( baseDir ) . getPath ( ) ; files . TorrentFile torrent = mock ( files . Tor...
org . junit . Assert . assertEquals ( "test" , s )
getKafkaProperties ( ) { org . apache . hadoop . conf . Configuration config = new org . apache . hadoop . conf . Configuration ( false ) ; java . lang . String propertyKey = "fake.kafka.property" ; java . lang . String propertyValue = testName . getMethodName ( ) ; config . set ( propertyKey , propertyValue ) ; java ....
org . junit . Assert . assertThat ( props . get ( propertyKey ) , org . hamcrest . core . Is . is ( ( ( java . lang . Object ) ( propertyValue ) ) ) )
testGetPlatformIDs ( ) { int [ ] numPlatforms = new int [ ] { 0 } ; org . jocl . CL . clGetPlatformIDs ( 0 , null , numPlatforms ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertTrue ( ( ( numPlatforms [ 0 ] ) > 0 ) )
test40_algext ( ) { cc . redberry . rings . poly . univar . UnivariatePolynomial < cc . redberry . rings . Rational < cc . redberry . rings . bigint . BigInteger > > minimalPoly = cc . redberry . rings . poly . univar . UnivariatePolynomial . create ( ( - 2 ) , 0 , 0 , 0 , 0 , 0 , 1 ) . mapCoefficients ( cc . redberry ...
org . junit . Assert . assertEquals ( mod , half )
testSetNotificationNewProfile ( ) { eu . dime . commons . dto . Request < eu . dime . commons . dto . ExternalNotificationDTO > mockRequest = buildMockNotification ( ) ; this . buildMockResponsesNewProfile ( ) ; eu . dime . ps . communications . requestbroker . controllers . servicegateway . PSServicesController servic...
org . junit . Assert . assertNotNull ( response )
shouldDeserialiseEdgeId ( ) { final uk . gov . gchq . gaffer . data . element . id . EdgeId expectedElementId = new uk . gov . gchq . gaffer . operation . data . EdgeSeed ( "source1" , "dest1" , true ) ; final uk . gov . gchq . gaffer . data . element . Edge edge = new uk . gov . gchq . gaffer . data . element . Edge ....
org . junit . Assert . assertEquals ( expectedElementId , elementId )
testNan ( ) { org . apache . commons . math4 . linear . RealMatrix m = org . apache . commons . math4 . linear . MatrixUtils . createRealMatrix ( new double [ ] [ ] { new double [ ] { Double . NaN , Double . NaN , Double . NaN } } ) ; java . lang . String expected = "{{(NaN),(NaN),(NaN)}}" ; java . lang . String actual...
org . junit . Assert . assertEquals ( expected , actual )
testServerAll ( ) { append ( "[groups]" , globalPolicyFile ) ; append ( "group<sp>=<sp>malicious_role" , globalPolicyFile ) ; append ( "[roles]" , globalPolicyFile ) ; append ( "malicious_role<sp>=<sp>server=*" , globalPolicyFile ) ; org . apache . sentry . policy . common . PolicyEngine policy = org . apache . sentry ...
org . junit . Assert . assertTrue ( permissions . toString ( ) , permissions . isEmpty ( ) )
testRollover ( ) { try ( org . apache . drill . exec . vector . UInt4Vector vector = allocVector ( 1000 ) ) { org . apache . drill . test . rowSet . test . TestFixedWidthWriter . TestIndex index = new org . apache . drill . test . rowSet . test . TestFixedWidthWriter . TestIndex ( ) ; org . apache . drill . exec . vect...
org . junit . Assert . assertEquals ( ( i * 10 ) , vector . getAccessor ( ) . get ( i ) )
testSocket ( ) { System . out . println ( "socket" ) ; kg . apc . io . SocketChannelWithTimeoutsTest . SocketChannelWithTimeoutsEmul instance = new kg . apc . io . SocketChannelWithTimeoutsTest . SocketChannelWithTimeoutsEmul ( ) ; java . net . Socket result = instance . socket ( ) ; "<AssertPlaceHolder>" ; } socket ( ...
org . junit . Assert . assertNotNull ( result )
testInvalidNodeId ( ) { de . javagl . jgltf . impl . v1 . GlTF gltf = new de . javagl . jgltf . impl . v1 . GlTF ( ) ; de . javagl . jgltf . impl . v1 . Scene scene = new de . javagl . jgltf . impl . v1 . Scene ( ) ; scene . addNodes ( "INVALID_ID" ) ; gltf . addScenes ( "scene0" , scene ) ; de . javagl . jgltf . valid...
org . junit . Assert . assertEquals ( 1 , validatorResult . getErrors ( ) . size ( ) )
testGetAllWhitelists ( ) { whitelistService . create ( testwlv , "test" ) ; java . util . List < gov . gtas . vo . WhitelistVo > wlvs = whitelistService . getAllWhitelists ( ) ; "<AssertPlaceHolder>" ; } getAllWhitelists ( ) { java . util . List < gov . gtas . model . Whitelist > whitelists = whitelistRepository . find...
org . junit . Assert . assertNotNull ( wlvs )
testReplication ( ) { try ( java . sql . Connection connection = getNewConnection ( false ) ) { java . sql . Statement stmt = connection . createStatement ( ) ; stmt . execute ( ( "drop<sp>table<sp>if<sp>exists<sp>auroraReadSlave" + ( jobId ) ) ) ; stmt . execute ( ( ( "create<sp>table<sp>auroraReadSlave" + ( jobId ) )...
org . junit . Assert . assertTrue ( rs . next ( ) )
testStumpCreationForSpecifiedAttributeValuePair ( ) { aima . core . learning . framework . DataSet ds = aima . core . learning . framework . DataSetFactory . getRestaurantDataSet ( ) ; java . util . List < java . lang . String > unmatchedValues = new java . util . ArrayList < java . lang . String > ( ) ; unmatchedValue...
org . junit . Assert . assertNotNull ( dt )
whenAddingVehicleWithDiffStartAndEnd_endLocationMustBeRegisteredInLocationMap ( ) { com . graphhopper . jsprit . core . problem . vehicle . VehicleImpl vehicle = VehicleImpl . Builder . newInstance ( "v" ) . setStartLocation ( com . graphhopper . jsprit . core . problem . Location . newInstance ( "start" ) ) . setEndLo...
org . junit . Assert . assertTrue ( vrpBuilder . getLocationMap ( ) . containsKey ( "end" ) )
deveObterDataRetornoComoFoiSetado ( ) { final com . fincatto . documentofiscal . nfe310 . classes . statusservico . consulta . NFStatusServicoConsultaRetorno consultaRetorno = new com . fincatto . documentofiscal . nfe310 . classes . statusservico . consulta . NFStatusServicoConsultaRetorno ( ) ; final java . time . Lo...
org . junit . Assert . assertEquals ( dataRetorno , consultaRetorno . getDataRetorno ( ) )
testIndexPruning ( ) { org . apache . jackrabbit . oak . plugins . index . property . strategy . IndexStoreStrategy store = new org . apache . jackrabbit . oak . plugins . index . property . strategy . ContentMirrorStoreStrategy ( ) ; org . apache . jackrabbit . oak . spi . state . NodeState root = EMPTY_NODE ; org . a...
org . junit . Assert . assertEquals ( 0 , index . getChildNodeCount ( 1 ) )
testGetMetadataInstanceFromNullMid ( ) { "<AssertPlaceHolder>" ; } getMetadataInstance ( java . lang . String ) { if ( org . springframework . roo . metadata . MetadataIdentificationUtils . isIdentifyingInstance ( metadataId ) ) { return metadataId . substring ( ( ( metadataId . indexOf ( org . springframework . roo . ...
org . junit . Assert . assertNull ( org . springframework . roo . metadata . MetadataIdentificationUtils . getMetadataInstance ( null ) )
testQueryMetadataIndexManager2 ( ) { com . orientechnologies . orient . core . sql . executor . OResultSet result = com . orientechnologies . orient . core . sql . executor . OSelectStatementExecutionTest . db . query ( "select<sp>expand(indexes)<sp>from<sp>metadata:indexmanager" ) ; com . orientechnologies . orient . ...
org . junit . Assert . assertTrue ( result . hasNext ( ) )
testHashSetClusteringAtFront ( ) { int keys = 500000 ; com . carrotsearch . hppc . IntHashSet target = new com . carrotsearch . hppc . IntHashSet ( keys , 0.9 ) { @ com . carrotsearch . hppc . Override protected void allocateBuffers ( int arraySize ) { super . allocateBuffers ( arraySize ) ; System . out . println ( ( ...
org . junit . Assert . assertEquals ( source . keys . length , target . keys . length )
whenDecrypting_cacheHit ( ) { com . amazonaws . encryptionsdk . model . DecryptionMaterialsRequest request = com . amazonaws . encryptionsdk . caching . CacheTestFixtures . createDecryptRequest ( 0 ) ; com . amazonaws . encryptionsdk . model . DecryptionMaterials result = com . amazonaws . encryptionsdk . caching . Cac...
org . junit . Assert . assertEquals ( result , actual )
testSetRootResourceDirectoriesEmptySetInput ( ) { ddf . catalog . resource . impl . URLResourceReader resourceReader = new ddf . catalog . resource . impl . URLResourceReader ( mimeTypeMapper , clientFactoryFactory ) ; resourceReader . setRootResourceDirectories ( com . google . common . collect . ImmutableSet . of ( (...
org . junit . Assert . assertThat ( rootResourceDirectories . size ( ) , org . hamcrest . Matchers . is ( 0 ) )
testUniqueTableIds ( ) { java . util . Set < java . lang . Long > ids = new java . util . HashSet < java . lang . Long > ( ) ; java . lang . Long id ; for ( java . lang . String table : com . nearinfinity . honeycomb . hbase . HBaseMetadataPropertyTest . tableSchemas . keySet ( ) ) { id = com . nearinfinity . honeycomb...
org . junit . Assert . assertFalse ( ids . contains ( id ) )
testBuildWithDisabledSecurityConstraint ( ) { unit . setSecurity ( false ) ; org . lnu . is . domain . enrolment . enrolment . subject . EnrolmentEnrolmentSubject context = new org . lnu . is . domain . enrolment . enrolment . subject . EnrolmentEnrolmentSubject ( ) ; java . lang . String expectedQuery = "SELECT<sp>e<s...
org . junit . Assert . assertEquals ( expectedQuery , actualQuery )
testGetSizeOnOsd ( ) { java . lang . String volumeName = "testGetSizeOnOsd" ; org . xtreemfs . common . libxtreemfs . FileHandleImplementationTest . testEnv . startAdditionalOSDs ( 3 ) ; org . xtreemfs . common . libxtreemfs . FileHandleImplementationTest . client . createVolume ( org . xtreemfs . common . libxtreemfs ...
org . junit . Assert . assertEquals ( length , size )
testValidateAnnotatedObject_IllegalNullValue ( ) { uow . transformMessage ( ( m ) -> new GenericMessage < java . lang . Object > ( new org . axonframework . messaging . interceptors . JSR303AnnotatedInstance ( null ) ) ) ; try { testSubject . handle ( uow , mockInterceptorChain ) ; org . junit . Assert . fail ( "Expect...
org . junit . Assert . assertFalse ( e . getViolations ( ) . isEmpty ( ) )
test_GetSplitButton_By_AutomationId ( ) { when ( element . findFirst ( mmarquee . automation . BaseAutomationTest . isTreeScope ( TreeScope . Descendants ) , any ( ) ) ) . thenReturn ( targetElement ) ; mmarquee . automation . controls . AutomationSplitButton btn = spyWndw . getSplitButton ( mmarquee . automation . con...
org . junit . Assert . assertEquals ( targetElement , btn . getElement ( ) )
testWithDefaultsPreservesSideInputs ( ) { final org . apache . beam . sdk . values . PCollectionView < java . lang . Integer > view = pipeline . apply ( org . apache . beam . sdk . transforms . Create . of ( 1 ) ) . apply ( org . apache . beam . sdk . transforms . Sum . integersGlobally ( ) . asSingletonView ( ) ) ; Co...
org . junit . Assert . assertEquals ( java . util . Collections . singletonList ( view ) , combine . getSideInputs ( ) )
testGetStepData ( ) { org . pentaho . di . trans . kafka . consumer . KafkaConsumerMeta m = new org . pentaho . di . trans . kafka . consumer . KafkaConsumerMeta ( ) ; "<AssertPlaceHolder>" ; } getStepData ( ) { return new org . pentaho . di . trans . kafka . consumer . KafkaConsumerData ( ) ; }
org . junit . Assert . assertEquals ( org . pentaho . di . trans . kafka . consumer . KafkaConsumerData . class , m . getStepData ( ) . getClass ( ) )
testClearArgs ( ) { final org . apache . oozie . fluentjob . api . action . SparkActionBuilder builder = getBuilderInstance ( ) ; for ( final java . lang . String file : org . apache . oozie . fluentjob . api . action . TestSparkActionBuilder . ARGS ) { builder . withArg ( file ) ; } builder . clearArgs ( ) ; final org...
org . junit . Assert . assertEquals ( 0 , argList . size ( ) )
testTotalTermFreq ( ) { final java . lang . String tableName = "testTotalTermFreq" ; org . apache . blur . thrift . TableGen . define ( tableName ) . cols ( "test" , "col1" ) . addRows ( 100 , 20 , "r1" , "rec-###" , "value" ) . build ( getClient ( ) ) ; $ . TermsCommand command = new $ . TermsCommand ( ) ; command . s...
org . junit . Assert . assertEquals ( list , terms )
shouldReturnFalseOnInitIfTheFileWasCreated ( ) { org . neo4j . kernel . impl . store . id . IdContainer idContainer = new org . neo4j . kernel . impl . store . id . IdContainer ( fs , file , 100 , false ) ; "<AssertPlaceHolder>" ; idContainer . close ( 100 ) ; } init ( ) { }
org . junit . Assert . assertFalse ( idContainer . init ( ) )
testDropIgnoreNamedPrimaryIndexThatDoesntExistSucceeds ( ) { boolean dropped = indexedBucket . bucketManager ( ) . dropN1qlPrimaryIndex ( "invalidPrimaryIndex" , true ) ; "<AssertPlaceHolder>" ; } dropN1qlPrimaryIndex ( java . lang . String , boolean ) { return drop ( ignoreIfNotExist , com . couchbase . client . java ...
org . junit . Assert . assertFalse ( dropped )
saveAndRetrieveTypeWithoutIdPropertyViaRepositoryFindOne ( ) { org . springframework . data . mongodb . core . NoExplicitIdTests . TypeWithoutIdProperty noid = new org . springframework . data . mongodb . core . NoExplicitIdTests . TypeWithoutIdProperty ( ) ; noid . someString = "o.O" ; repo . save ( noid ) ; java . ut...
org . junit . Assert . assertThat ( retrieved . get ( ) . someString , org . hamcrest . core . Is . is ( noid . someString ) )
testSerialization2 ( ) { org . jfree . data . statistics . DefaultStatisticalCategoryDataset d1 = new org . jfree . data . statistics . DefaultStatisticalCategoryDataset ( ) ; d1 . add ( 1.2 , 3.4 , "Row<sp>1" , "Column<sp>1" ) ; org . jfree . data . statistics . DefaultStatisticalCategoryDataset d2 = ( ( org . jfree ....
org . junit . Assert . assertEquals ( d1 , d2 )
testXMLInput ( ) { org . teiid . core . types . XMLType doc = new org . teiid . core . types . XMLType ( new org . teiid . core . types . SQLXMLImpl ( "<foo/>" ) ) ; java . lang . String xpath = "a/b/c" ; java . lang . String value = org . teiid . xquery . saxon . XMLFunctions . xpathValue ( doc , xpath ) ; "<AssertPla...
org . junit . Assert . assertNull ( value )
testScalarArithmetic ( ) { org . nd4j . linalg . api . ndarray . INDArray linspace = org . nd4j . linalg . factory . Nd4j . linspace ( 1 , 6 , 6 ) ; org . nd4j . linalg . api . ndarray . INDArray plusOne = org . nd4j . linalg . factory . Nd4j . linspace ( 2 , 7 , 6 ) ; org . nd4j . linalg . factory . Nd4j . getExecutio...
org . junit . Assert . assertEquals ( plusOne , linspace )
testODataApplicationException1 ( ) { org . apache . olingo . server . api . ODataApplicationException exp = new org . apache . olingo . server . api . ODataApplicationException ( "Exception" , 500 , java . util . Locale . ENGLISH , new java . lang . RuntimeException ( "Error" ) ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertNotNull ( exp )
GetAllRatePlans ( ) { net . billforward . model . RatePlan [ ] ratePlans = net . billforward . model . RatePlan . getAll ( ) ; "<AssertPlaceHolder>" ; } getAll ( ) { return net . billforward . model . RatePlan . getAll ( net . billforward . model . RatePlan . ResourcePath ( ) ) ; }
org . junit . Assert . assertNotNull ( ratePlans )
testReadFromWithIllegalMessageNum8 ( ) { java . util . Map < java . lang . String , java . lang . String > attributes = new java . util . HashMap < java . lang . String , java . lang . String > ( ) ; attributes . put ( "ATT456" , "VAL456" ) ; org . msgpack . MessagePack msg = new org . msgpack . MessagePack ( ) ; java ...
org . junit . Assert . assertTrue ( ( e instanceof java . io . IOException ) )
setValuesMap ( ) { final com . arangodb . internal . DocumentCache cache = new com . arangodb . internal . DocumentCache ( ) ; final java . util . Map < java . lang . String , java . lang . String > map = new java . util . HashMap < java . lang . String , java . lang . String > ( ) ; final java . util . Map < com . ara...
org . junit . Assert . assertThat ( map . isEmpty ( ) , org . hamcrest . Matchers . is ( true ) )
reportsWrongTreatmentTimeline ( ) { final java . util . List < com . hartwig . hmftools . common . ecrf . datamodel . ValidationFinding > findings = com . hartwig . hmftools . patientdb . validators . PatientValidator . validateTreatments ( com . hartwig . hmftools . patientdb . validators . PatientValidatorTest . PATI...
org . junit . Assert . assertEquals ( 1 , findings . size ( ) )
shouldHaveOnlyAsManyMessagesAsTheSizeOfTheAuditorLog ( ) { org . ei . drishti . common . audit . Auditor auditor = new org . ei . drishti . common . audit . Auditor ( 2 ) ; audit ( auditor , "Message<sp>1" ) ; audit ( auditor , "Message<sp>2" ) ; audit ( auditor , "Message<sp>3" ) ; "<AssertPlaceHolder>" ; } messagesSi...
org . junit . Assert . assertThat ( auditor . messagesSince ( 0 ) . size ( ) , org . hamcrest . CoreMatchers . is ( 2 ) )
testWriterIsClosed_BadCase ( ) { java . io . PrintWriter pw = mock ( java . io . PrintWriter . class ) ; doThrow ( new java . lang . IllegalStateException ( "Thrown<sp>to<sp>test<sp>if<sp>PrintWriter<sp>is<sp>closed<sp>on<sp>exception" ) ) . when ( pw ) . print ( anyString ( ) ) ; org . oscm . operatorsvc . client . co...
org . junit . Assert . assertFalse ( comm . run ( ctx ) )
constraintsPreventSwitch ( ) { graph = getCrossFormedGraphWithConstraintsInSecondLayer ( ) ; decider = givenDeciderForFreeLayer ( 1 , CrossingCountSide . WEST ) ; "<AssertPlaceHolder>" ; } doesSwitchReduceCrossings ( int , int ) { if ( constraintsPreventSwitch ( upperNodeIndex , lowerNodeIndex ) ) { return false ; } or...
org . junit . Assert . assertThat ( decider . doesSwitchReduceCrossings ( 0 , 1 ) , org . hamcrest . CoreMatchers . is ( false ) )
sublist_4d ( ) { final com . ericsson . otp . erlang . OtpErlangList r = ( ( com . ericsson . otp . erlang . OtpErlangList ) ( termParser . parse ( "[1,2,3|4]" ) ) ) ; final com . ericsson . otp . erlang . OtpErlangObject s = termParser . parse ( "4" ) ; final com . ericsson . otp . erlang . OtpErlangObject ss = r . ge...
org . junit . Assert . assertEquals ( s , ss )
createUnboundFunctionQuery ( ) { com . sdl . odata . client . api . ODataClientQuery query = new com . sdl . odata . client . FunctionImportClientQuery . Builder ( ) . withEntityType ( com . sdl . odata . client . DefaultODataClientQueryTest . EmptyEntity . class ) . withFunctionName ( "SampleFunction" ) . withFunction...
org . junit . Assert . assertThat ( query . getQuery ( ) , org . hamcrest . core . Is . is ( expectedToString ) )
testCreateTestWithLogWithDuplicatedStatement ( ) { spoon . reflect . declaration . CtClass testClass = eu . stamp_project . Utils . findClass ( "fr.inria.sample.TestClassWithoutAssert" ) ; final spoon . reflect . declaration . CtMethod < ? > test2 = ( ( spoon . reflect . declaration . CtMethod < ? > ) ( testClass . get...
org . junit . Assert . assertEquals ( expectedMethod , testWithLog . toString ( ) )
testPreserveCase ( ) { java . nio . file . Path fAr = root . resolve ( "fAr" ) ; java . nio . file . Files . createDirectories ( fAr ) ; try ( java . nio . file . DirectoryStream < java . nio . file . Path > paths = java . nio . file . Files . newDirectoryStream ( root ) ) { "<AssertPlaceHolder>" ; } } getFileName ( ) ...
org . junit . Assert . assertEquals ( fAr . getFileName ( ) . toString ( ) , paths . iterator ( ) . next ( ) . getFileName ( ) . toString ( ) )
testCopyRequestHeaders ( ) { org . apache . shindig . gadgets . http . HttpRequest origRequest = new org . apache . shindig . gadgets . http . HttpRequest ( org . apache . shindig . common . uri . Uri . parse ( "http://www.example.org/data.html" ) ) ; org . apache . shindig . gadgets . uri . Map < java . lang . String ...
org . junit . Assert . assertEquals ( headers , req . getHeaders ( ) )
testNewXPath ( ) { javax . xml . xpath . XPath path = org . apache . tuscany . sca . common . xml . xpath . XPathHelperTestCase . xpathHelper . newXPath ( ) ; "<AssertPlaceHolder>" ; } newXPath ( ) { return factory . newXPath ( ) ; }
org . junit . Assert . assertNotNull ( path )
testStartServerUsedPort ( ) { int port = getFreePort ( 1024 ) ; java . net . InetAddress addr = java . net . InetAddress . getByName ( "localhost" ) ; ( ( org . apache . accumulo . core . conf . ConfigurationCopy ) ( org . apache . accumulo . server . util . TServerUtilsTest . factory . getSystemConfiguration ( ) ) ) ....
org . junit . Assert . assertNotNull ( s )
testFindSetNames ( ) { org . oscarehr . common . model . DemographicSets entity = new org . oscarehr . common . model . DemographicSets ( ) ; org . oscarehr . common . dao . utils . EntityDataGenerator . generateTestDataForModelClass ( entity ) ; entity . setName ( "a" ) ; dao . persist ( entity ) ; entity = new org . ...
org . junit . Assert . assertEquals ( 2 , dao . findSetNames ( ) . size ( ) )
testJavaFileIsCreatedInOutputDirectory ( ) { org . gradle . api . Project project = org . gradle . testfixtures . ProjectBuilder . builder ( ) . build ( ) ; project . getPluginManager ( ) . apply ( com . fizzed . rocker . gradle . RockerPlugin . class ) ; com . fizzed . rocker . gradle . RockerTask . doCompileRocker ( ...
org . junit . Assert . assertTrue ( templateFile . exists ( ) )
testAudoBroadcastAddMatrix ( ) { org . nd4j . linalg . api . ndarray . INDArray arr = org . nd4j . linalg . factory . Nd4j . linspace ( 1 , 4 , 4 ) . reshape ( 2 , 2 ) ; org . nd4j . linalg . api . ndarray . INDArray row = org . nd4j . linalg . factory . Nd4j . ones ( 2 ) ; org . nd4j . linalg . api . ndarray . INDArra...
org . junit . Assert . assertEquals ( assertion , test )
write_max ( ) { com . asakusafw . runtime . value . ByteOption option = new com . asakusafw . runtime . value . ByteOption ( ) ; option . modify ( Byte . MAX_VALUE ) ; com . asakusafw . runtime . value . ByteOption restored = restore ( option ) ; "<AssertPlaceHolder>" ; } get ( ) { if ( canGet ) { return next ; } throw...
org . junit . Assert . assertThat ( restored . get ( ) , is ( option . get ( ) ) )
testPregnantTreatmentTypeSets ( ) { java . lang . String code = "" ; try { code = _setupTestPregnantTreatmentType ( true ) ; _checkPregnantTreatmentTypeIntoDb ( code ) ; } catch ( java . lang . Exception e ) { e . printStackTrace ( ) ; "<AssertPlaceHolder>" ; } return ; } _checkPregnantTreatmentTypeIntoDb ( java . lang...
org . junit . Assert . assertEquals ( true , false )
testRetryBackoff ( ) { org . apache . hadoop . hbase . master . assignment . AssignmentManager am = org . apache . hadoop . hbase . master . procedure . TestReopenTableRegionsProcedureBackoff . UTIL . getMiniHBaseCluster ( ) . getMaster ( ) . getAssignmentManager ( ) ; org . apache . hadoop . hbase . procedure2 . Proce...
org . junit . Assert . assertTrue ( ( ( regionNode . getOpenSeqNum ( ) ) > openSeqNum ) )
testPriority ( ) { java . lang . String json = "{" + ( "<sp>\"priority\":<sp>5" + "}" ) ; com . urbanairship . api . push . model . notification . ios . IOSDevicePayload payload = com . urbanairship . api . push . parse . notification . ios . PayloadDeserializerTest . mapper . readValue ( json , com . urbanairship . ap...
org . junit . Assert . assertTrue ( payload . getPriority ( ) . get ( ) . equals ( 5 ) )
testResponse200OnGet ( ) { com . liferay . petra . json . web . service . client . internal . JSONWebServiceClientImpl jsonWebServiceClientImpl = new com . liferay . petra . json . web . service . client . internal . JSONWebServiceClientImpl ( ) ; java . util . Map < java . lang . String , java . lang . Object > proper...
org . junit . Assert . assertTrue ( json , json . contains ( SimulatorConstants . HTTP_PARAMETER_RESPOND_WITH_STATUS ) )
editWithComplaintTypeLocationRequiredFalse ( ) { complaint = new org . egov . pgr . entity . Complaint ( ) ; complaint . setComplaintType ( complaintType ) ; complaint . setDetails ( "Already<sp>Registered<sp>complaint" ) ; when ( complaintService . getComplaintByCRN ( "CRN-123" ) ) . thenReturn ( complaint ) ; when ( ...
org . junit . Assert . assertEquals ( complaint . getDetails ( ) , existing . getDetails ( ) )
shouldNotReturnAnyElementOnEmptySupplier ( ) { org . neo4j . kernel . impl . util . collection . ContinuableArrayCursor cursor = new org . neo4j . kernel . impl . util . collection . ContinuableArrayCursor ( ( ) -> null ) ; "<AssertPlaceHolder>" ; } next ( ) { return false ; }
org . junit . Assert . assertFalse ( cursor . next ( ) )
testGetPlaceholderSentenceWhenTypeIsNotBuiltInType ( ) { final java . lang . String expectedPlaceholder = "Enter<sp>a<sp>valid<sp>expression" ; when ( translationService . format ( "ConstraintPlaceholderHelper.SentenceDefault" ) ) . thenReturn ( expectedPlaceholder ) ; final java . lang . String actualPlaceholder = pla...
org . junit . Assert . assertEquals ( expectedPlaceholder , actualPlaceholder )
testGetStaticLabel ( ) { System . out . println ( "getStaticLabel" ) ; kg . apc . jmeter . reporters . FlexibleFileWriterGui instance = new kg . apc . jmeter . reporters . FlexibleFileWriterGui ( ) ; java . lang . String result = instance . getStaticLabel ( ) ; "<AssertPlaceHolder>" ; } getStaticLabel ( ) { return kg ....
org . junit . Assert . assertTrue ( ( ( result . length ( ) ) > 0 ) )
testDecodeGeneralizedTimeWithPosTimeZone ( ) { java . util . Calendar cal = java . util . Calendar . getInstance ( ) ; cal . clear ( ) ; cal . set ( Calendar . YEAR , 2010 ) ; cal . set ( Calendar . MONTH , Calendar . JULY ) ; cal . set ( Calendar . DAY_OF_MONTH , 12 ) ; cal . set ( Calendar . HOUR_OF_DAY , 21 ) ; cal ...
org . junit . Assert . assertEquals ( expectedDate , actualDate )
testBigIntToIPv6 ( ) { java . lang . String ip = "::feef:aeae" ; java . lang . String expected = new org . openstack . atlas . util . ip . IPv6 ( ip ) . expand ( ) ; java . math . BigInteger in = new java . math . BigInteger ( "4277120686" ) ; java . lang . String actual = new org . openstack . atlas . util . ip . IPv6...
org . junit . Assert . assertEquals ( expected , actual )
shouldGetAsArray ( ) { uk . co . webamoeba . mockito . collections . util . LinkedSortedSet < java . lang . Object > set = new uk . co . webamoeba . mockito . collections . util . LinkedSortedSet < java . lang . Object > ( ) ; java . lang . Object [ ] expectedObjects = new java . lang . Object [ ] { 'E' , 9 , null , - ...
org . junit . Assert . assertArrayEquals ( expectedObjects , array )
shouldNotDeleteAll ( ) { final com . couchbase . client . java . bucket . BucketManager bucketManager = bucket . bucketManager ( ) ; final com . couchbase . client . java . view . View view = com . couchbase . client . java . view . DefaultView . create ( "all" , org . apache . commons . io . IOUtils . toString ( getCl...
org . junit . Assert . assertEquals ( com . google . common . collect . ImmutableList . of ( ) , found )
testCreateWithNoMap ( ) { java . util . Optional < com . gh . mygreen . xlsmapper . fieldaccessor . ArrayLabelSetter > labelSetter = setterFactory . create ( com . gh . mygreen . xlsmapper . fieldaccessor . ArrayLabelSetterFactoryTest . ByMapField . NoMapRecord . class , "test" ) ; "<AssertPlaceHolder>" . isEmpty ( ) ;...
org . junit . Assert . assertThat ( labelSetter )