input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
testGetSwitchNodeForInvalidSwitchId ( ) { com . vmware . vrack . hms . node . switches . SwitchNodeConnectorTest . logger . info ( "[TS]<sp>:<sp>testGetSwitchNodeForInvalidSwitchId" ) ; java . lang . String switchId = "S99" ; com . vmware . vrack . hms . node . switches . SwitchNodeConnectorTest . logger . info ( "[TS]...
org . junit . Assert . assertNull ( result )
columnIsNull ( ) { com . foundationdb . sql . optimizer . plan . ConditionExpression isNull = isNull ( firstName ) ; com . foundationdb . sql . optimizer . rule . range . ColumnRanges expected = columnRanges ( firstName , isNull , segment ( com . foundationdb . sql . optimizer . rule . range . RangeEndpoint . nullInclu...
org . junit . Assert . assertEquals ( expected , com . foundationdb . sql . optimizer . rule . range . ColumnRanges . rangeAtNode ( isNull ) )
calcHttpProxyTest ( ) { org . powermock . api . mockito . PowerMockito . mockStatic ( com . aliyuncs . http . clients . HttpUtil . class ) ; org . mockito . BDDMockito . given ( com . aliyuncs . http . clients . HttpUtil . needProxy ( ( ( java . lang . String ) ( isNotNull ( ) ) ) , ( ( java . lang . String ) ( isNull ...
org . junit . Assert . assertEquals ( proxy0 , proxy )
shouldSendRequestAndResponseToConsumerIfConfigured ( ) { java . util . concurrent . atomic . AtomicReference < com . spotify . apollo . Request > reference = new java . util . concurrent . atomic . AtomicReference ( ) ; decorator . setLogger ( ( request , response ) -> reference . set ( request . request ( ) ) ) ; deco...
org . junit . Assert . assertThat ( reference . get ( ) , org . hamcrest . CoreMatchers . is ( request ) )
testMissingMain ( ) { org . wildfly . swarm . bootstrap . modules . ClasspathModuleFinder finder = new org . wildfly . swarm . bootstrap . modules . ClasspathModuleFinder ( ) ; try { org . jboss . modules . ModuleSpec spec = finder . findModule ( "classpath.module.load.test.missing" , null ) ; "<AssertPlaceHolder>" ; }...
org . junit . Assert . assertNull ( spec )
testPositiveInfinity ( ) { org . apache . commons . math3 . geometry . euclidean . threed . Vector3D c = org . apache . commons . math3 . geometry . euclidean . threed . Vector3D . POSITIVE_INFINITY ; java . lang . String expected = "{(Infinity);<sp>(Infinity);<sp>(Infinity)}" ; java . lang . String actual = vector3DFo...
org . junit . Assert . assertEquals ( expected , actual )
set_if_exists_should_recycle_existing_component ( ) { @ com . artemis . annotations . Wire ( injectInherited = true ) class TestSystem extends com . artemis . ComponentMapperTest . BasicSystem { @ com . artemis . Override protected void process ( com . artemis . Entity e ) { com . artemis . ComponentMapperTest . Pos c1...
org . junit . Assert . assertEquals ( c1 , c2 )
testFileEntityRoundTrip ( ) { java . lang . String fileHandle = "12345" ; org . sagebionetworks . repo . model . FileEntity file = new org . sagebionetworks . repo . model . FileEntity ( ) ; file . setDataFileHandleId ( fileHandle ) ; org . sagebionetworks . repo . model . FileEntity clone = org . sagebionetworks . rep...
org . junit . Assert . assertEquals ( file , clone )
testLSet ( ) { connection . rPush ( "PopList" , "hello" ) ; connection . rPush ( "PopList" , "big" ) ; connection . rPush ( "PopList" , "world" ) ; connection . lSet ( "PopList" , 1 , "cruel" ) ; "<AssertPlaceHolder>" ; } lRange ( byte [ ] , long , long ) { return delegate . lRange ( key , begin , end ) ; }
org . junit . Assert . assertEquals ( java . util . Arrays . asList ( new java . lang . String [ ] { "hello" , "cruel" , "world" } ) , connection . lRange ( "PopList" , 0 , ( - 1 ) ) )
testXMLGregorianCalendar ( ) { if ( isValidationOnly ( ) ) return ; org . apache . juneau . a . rttests . GregorianCalendar gc = new org . apache . juneau . a . rttests . GregorianCalendar ( ) ; org . apache . juneau . a . rttests . XMLGregorianCalendar c = org . apache . juneau . a . rttests . DatatypeFactory . newIns...
org . junit . Assert . assertEquals ( c , c2 )
whenUsingFiles_thenCopyFile ( ) { final java . io . File src = new java . io . File ( ( ( ( ( ( ( ( ( ( ( "src" + ( java . io . File . separator ) ) + "test" ) + ( java . io . File . separator ) ) + "resources" ) + ( java . io . File . separator ) ) + "copyTest" ) + ( java . io . File . separator ) ) + "src" ) + ( java...
org . junit . Assert . assertTrue ( dest . exists ( ) )
givenCharArray_whenCallingStringConstructor_shouldConvertToString ( ) { char [ ] charArray = new char [ ] { 'c' , 'h' , 'a' , 'r' , 'a' , 'c' , 't' , 'e' , 'r' } ; java . lang . String result = new java . lang . String ( charArray ) ; java . lang . String expectedValue = "character" ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertEquals ( expectedValue , result )
testReadyAgentCountPublicAgentAllInactivy ( ) { java . lang . String currRegion = config . getRegion ( ) ; int oriCount = getAvailableAgentCountBy ( currRegion ) ; saveAgent ( "nhn" , AgentControllerState . INACTIVE ) ; saveAgent ( "nhn" , AgentControllerState . UNKNOWN ) ; saveAgent ( "nhn" , AgentControllerState . BU...
org . junit . Assert . assertThat ( newCount , org . hamcrest . Matchers . is ( ( oriCount + 0 ) ) )
shouldNotFindTestsInNestedCustomSuites ( ) { final java . util . Collection < org . pitest . testapi . TestUnit > actual = findWithTestee ( org . pitest . junit . JUnitCustomRunnerTestUnitFinderTest . NestCustomSuite . class ) ; "<AssertPlaceHolder>" ; } isEmpty ( ) { return this . members . isEmpty ( ) ; }
org . junit . Assert . assertTrue ( actual . isEmpty ( ) )
testSetPublicationStatuses5 ( ) { this . statuses . add ( this . invalidFlag ) ; this . solrSearchResult . setPublicationStatuses ( this . statuses ) ; "<AssertPlaceHolder>" ; } getPublicationStatuses ( ) { if ( ( this . publicationStatuses ) == null ) { this . publicationStatuses = new java . util . ArrayList ( ) ; } ...
org . junit . Assert . assertEquals ( this . statuses , solrSearchResult . getPublicationStatuses ( ) )
testEffect7 ( ) { java . lang . String words = segW . segWords ( "" , "|" ) ; "<AssertPlaceHolder>" ; } segWords ( java . lang . String , java . lang . String ) { return segWords ( new java . io . StringReader ( txt ) , wordSpilt ) ; }
org . junit . Assert . assertEquals ( "" , words )
testToMapWithOnlyValue_allowValuelessKeys ( ) { java . lang . String [ ] values = new java . lang . String [ ] { "key1:value1" , ":value2" , "key3:value3" } ; java . lang . String separator = ":" ; java . util . Map < java . lang . String , java . lang . String > expResult = new java . util . HashMap < java . lang . St...
org . junit . Assert . assertEquals ( expResult , result )
one_$this_elem_match_returns_true_when_at_least_one_value_in_array_matches ( ) { com . redhat . lightblue . query . QueryExpression expr = com . redhat . lightblue . eval . EvalTestContext . queryExpressionFromJson ( "{'array':'field8.nf1.$this.nnf4','elemMatch':{'field':'elemf3','op':'>','rvalue':5}}" ) ; com . redhat...
org . junit . Assert . assertTrue ( context . getResult ( ) )
testThatPostArticleReturnsOkWhenArticleDaoReturnsTrue ( ) { when ( articleDao . postArticle ( null , null ) ) . thenReturn ( true ) ; ninja . Result result = apiController . postArticleJson ( null , null ) ; "<AssertPlaceHolder>" ; } postArticleJson ( java . lang . String , models . ArticleDto ) { System . out . printl...
org . junit . Assert . assertEquals ( 200 , result . getStatusCode ( ) )
fakeGenericClassWithFakeHavingInvocationParameter ( ) { new mockit . MockUp < mockit . MoreFakingTest . GenericClass < java . lang . String > > ( ) { @ mockit . Mock java . lang . String doSomething ( mockit . Invocation inv ) { return "faked" ; } } ; mockit . MoreFakingTest . GenericClass < java . lang . String > fake...
org . junit . Assert . assertEquals ( "faked" , faked . doSomething ( ) )
test_sign_and_verify ( ) { java . lang . String src = "108253961490250993465260086000050576790" ; java . lang . String dsa = "SHA256WithRSA" ; try { java . lang . String priKey = com . li3huo . sdk . App . getProperty ( "500006.channel.huawei.pay.pri" , "" ) ; java . security . PrivateKey privateKey = com . li3huo . sd...
org . junit . Assert . assertTrue ( v )
testRemoveFromStringEmptyArray ( ) { java . lang . String [ ] array = new java . lang . String [ ] { } ; array = com . liferay . portal . kernel . util . ArrayUtil . remove ( array , "c" ) ; "<AssertPlaceHolder>" ; } isEmpty ( boolean [ ] ) { return com . liferay . portal . kernel . util . ArrayUtil . isEmpty ( array )...
org . junit . Assert . assertTrue ( com . liferay . portal . kernel . util . ArrayUtil . isEmpty ( array ) )
shouldParseDateTimeExtendFormat ( ) { java . util . Calendar parseIso8601 = iso8601 . toCalendar ( "1982-06-10T05:35:10.000-03:00" ) ; java . util . Calendar date = java . util . GregorianCalendar . getInstance ( java . util . TimeZone . getTimeZone ( "GMT-03:00" ) ) ; date . set ( 1982 , 5 , 10 , 5 , 35 , 10 ) ; date ...
org . junit . Assert . assertThat ( parseIso8601 , org . hamcrest . Matchers . is ( date ) )
testConstructorCenter1 ( ) { de . nx42 . maps4cim . util . gis . Coordinate center = new de . nx42 . maps4cim . util . gis . Coordinate ( 48.0 , 10.0 ) ; de . nx42 . maps4cim . util . gis . Area result = new de . nx42 . maps4cim . util . gis . Area ( center , 1.0 ) ; de . nx42 . maps4cim . util . gis . Area expResult =...
org . junit . Assert . assertEquals ( expResult , result )
testRoundToZero ( ) { mikera . vectorz . impl . SparseIndexedVector sv = mikera . vectorz . impl . SparseIndexedVector . create ( 10 , mikera . indexz . Index . of ( 1 , 3 , 6 ) , mikera . vectorz . Vector . of ( 0.001 , 0.01 , 0.1 ) ) ; mikera . vectorz . impl . ASparseVector rsv = sv . roundToZero ( 0.001 ) ; "<Asser...
org . junit . Assert . assertEquals ( mikera . vectorz . Vector . of ( 0 , 0 , 0 , 0.01 , 0 , 0 , 0.1 , 0 , 0 , 0 ) , rsv )
validRepresentationTest ( ) { org . apache . cxf . ws . transfer . validationtransformation . XSDResourceValidator validator = new org . apache . cxf . ws . transfer . validationtransformation . XSDResourceValidator ( new javax . xml . transform . stream . StreamSource ( getClass ( ) . getResourceAsStream ( "/xml/xsdre...
org . junit . Assert . assertTrue ( result )
testGetDecimalFormat ( ) { System . out . println ( "getDecimalFormat" ) ; org . krysalis . barcode4j . output . eps . EPSCanvasProvider instance = new org . krysalis . barcode4j . output . eps . EPSCanvasProvider ( out , orientation ) ; java . text . DecimalFormatSymbols dfs = new java . text . DecimalFormatSymbols ( ...
org . junit . Assert . assertEquals ( expResult , result )
testFormatMessage_ThrowableNull ( ) { com . sun . mail . util . logging . CompactFormatter cf = new com . sun . mail . util . logging . CompactFormatter ( ) ; java . lang . String result = cf . formatMessage ( ( ( java . lang . Throwable ) ( null ) ) ) ; "<AssertPlaceHolder>" ; } formatMessage ( java . lang . Throwable...
org . junit . Assert . assertEquals ( "" , result )
testRemove ( ) { com . liferay . portal . kernel . model . UserNotificationEvent newUserNotificationEvent = addUserNotificationEvent ( ) ; _persistence . remove ( newUserNotificationEvent ) ; com . liferay . portal . kernel . model . UserNotificationEvent existingUserNotificationEvent = _persistence . fetchByPrimaryKey...
org . junit . Assert . assertNull ( existingUserNotificationEvent )
isShowConfirm_NullCompatibleServices ( ) { initSelectedService ( PriceModelType . PER_UNIT ) ; boolean isShowConfirm = bean . isShowConfirm ( ) ; "<AssertPlaceHolder>" ; } isShowConfirm ( ) { if ( ( selectedService ) == null ) { return false ; } java . util . List < org . oscm . internal . vo . VOService > compatibleSe...
org . junit . Assert . assertFalse ( isShowConfirm )
testBuildWithDisabledSecuirtyConstraint ( ) { unit . setSecurity ( false ) ; org . lnu . is . domain . department . type . DepartmentType context = new org . lnu . is . domain . department . type . DepartmentType ( ) ; java . lang . String expected = "SELECT<sp>e<sp>FROM<sp>DepartmentType<sp>e<sp>WHERE<sp>e.status=:sta...
org . junit . Assert . assertEquals ( expected , actualQuery )
testInvalidRuleLabelAccessesParameter ( ) { java . lang . String action = "Java" 1 ; java . lang . String expecting = action ; org . antlr . test . ErrorQueue equeue = new org . antlr . test . ErrorQueue ( ) ; org . antlr . test . ErrorManager . setErrorListener ( equeue ) ; org . antlr . test . Grammar g = new org . a...
org . junit . Assert . assertEquals ( expecting , found )
testSetTopic ( ) { topicModel . setTopic ( "not-test-topic" ) ; "<AssertPlaceHolder>" ; topicModel . setTopic ( "test-topic" ) ; } getTopic ( ) { return getTopicARN ( ) ; }
org . junit . Assert . assertEquals ( "not-test-topic" , topicModel . getTopic ( ) )
testFindActive ( ) { int active1 = 1 ; int active2 = 2 ; org . oscarehr . common . model . AppointmentStatus apptStatus1 = new org . oscarehr . common . model . AppointmentStatus ( ) ; org . oscarehr . common . dao . utils . EntityDataGenerator . generateTestDataForModelClass ( apptStatus1 ) ; apptStatus1 . setActive (...
org . junit . Assert . assertTrue ( true )
fillupTest ( ) { org . directmemory . memory . MemoryManager . clear ( ) ; org . directmemory . memory . test . MemoryManagerTests . logger . info ( ( "payload<sp>size=" + ( org . directmemory . measures . Ram . inKb ( payload . length ) ) ) ) ; long howMany = ( org . directmemory . memory . MemoryManager . capacity ( ...
org . junit . Assert . assertNotNull ( p )
testGetModelContent ( ) { repositoryServer . perform ( get ( ( ( "/api/v1/models/" + ( testModel . prettyName ) ) + "/content" ) ) . with ( userCreator ) ) . andDo ( ( result ) -> System . out . println ( result . getResponse ( ) . getContentAsString ( ) ) ) . andDo ( ( result ) -> System . out . println ( result . get...
org . junit . Assert . assertTrue ( true )
testCleanupTaskReportsWithNullJob ( ) { org . apache . hadoop . mapred . JobClientUnitTest . TestJobClient client = new org . apache . hadoop . mapred . JobClientUnitTest . TestJobClient ( new org . apache . hadoop . mapred . JobConf ( ) ) ; org . apache . hadoop . mapreduce . Cluster mockCluster = mock ( org . apache ...
org . junit . Assert . assertEquals ( 0 , result . length )
getTypeLiteralInstance ( ) { java . util . LinkedList < java . lang . Object > dataList = new java . util . LinkedList ( ) ; new org . jooby . RequestTest . RequestMock ( ) { @ org . jooby . Override public < T > T require ( final com . google . inject . Key < T > key ) { dataList . add ( key ) ; return null ; } } . re...
org . junit . Assert . assertEquals ( java . util . Arrays . asList ( com . google . inject . Key . get ( java . lang . Object . class ) ) , dataList )
testShouldThrowAnExceptionWhenThereNotFoundElement ( ) { try { org . openqa . selenium . WebElement element = driver . findElement ( org . openqa . selenium . By . xpath ( "//QLabel[@id='Not<sp>here']" ) ) ; "<AssertPlaceHolder>" ; org . junit . Assert . fail ( "Should<sp>not<sp>have<sp>succeeded" ) ; } catch ( org . o...
org . junit . Assert . assertThat ( element . getText ( ) , equalTo ( "" ) )
testNormalizeLargeSet ( ) { ch . cyberduck . core . transfer . normalizer . UploadRootPathsNormalizer n = new ch . cyberduck . core . transfer . normalizer . UploadRootPathsNormalizer ( ) ; final java . util . List < ch . cyberduck . core . transfer . TransferItem > list = new java . util . ArrayList < ch . cyberduck ....
org . junit . Assert . assertEquals ( 1000 , normalized . size ( ) )
testOnCloseWithOtherOperators ( ) { final boolean [ ] state = new boolean [ ] { false } ; com . annimon . stream . Stream < java . lang . Integer > stream = com . annimon . stream . Stream . of ( 0 , 1 , 2 , 2 , 3 , 4 , 4 , 5 ) . filter ( new com . annimon . stream . function . Predicate < java . lang . Integer > ( ) {...
org . junit . Assert . assertTrue ( state [ 0 ] )
testGetStartValue ( ) { final java . lang . String expected = "someString" ; when ( startValueComponent . getValue ( ) ) . thenReturn ( expected ) ; final java . lang . String actual = view . getStartValue ( ) ; "<AssertPlaceHolder>" ; } getStartValue ( ) { return startValueComponent . getValue ( ) ; }
org . junit . Assert . assertEquals ( expected , actual )
testMoveToLefttIsNotAllowedWithLock ( ) { com . eclipsesource . tabris . internal . SwipeManager manager = new com . eclipsesource . tabris . internal . SwipeManager ( mock ( com . eclipsesource . tabris . widgets . swipe . SwipeItemProvider . class ) ) ; manager . lock ( SWT . LEFT , 1 , true ) ; boolean allowed = man...
org . junit . Assert . assertFalse ( allowed )
testRunQuery ( ) { java . sql . Connection connection = new org . pentaho . test . platform . plugin . SQLBaseComponentTest . MockNativeConnection ( ) ; org . pentaho . platform . plugin . services . connections . sql . SQLConnection sqlConnection = new org . pentaho . test . platform . plugin . SQLBaseComponentTest . ...
org . junit . Assert . assertTrue ( component . runQuery ( ) )
checkDate1 ( ) { char y0 = '2' ; char y1 = '1' ; char y2 = '1' ; char y3 = '1' ; char M0 = '1' ; char M1 = '0' ; int d0 = 51 ; int d1 = 48 ; java . lang . Class < ? > c = com . diffblue . deeptestutils . Reflector . forName ( "com.alibaba.fastjson.parser.JSONScanner" ) ; java . lang . reflect . Method m = c . getDeclar...
org . junit . Assert . assertEquals ( true , retval )
testBusinessObjectDataSearchWithSubPartitionValues ( ) { java . lang . String [ ] subpartions = new java . lang . String [ ] { "P1" , "P2" , "P3" , "P4" } ; java . util . List < java . lang . String > subpartitionList = java . util . Arrays . asList ( subpartions ) ; businessObjectDataDaoTestHelper . createBusinessObje...
org . junit . Assert . assertEquals ( 2 , result . size ( ) )
testWriteText ( ) { java . io . File f = new java . io . File ( "text.txt" ) ; try { util . writeText ( f , "text" , "GB2312" ) ; "<AssertPlaceHolder>" ; } finally { if ( f . exists ( ) ) f . delete ( ) ; } } writeText ( java . io . File , java . lang . String , java . lang . String ) { java . nio . charset . Charset c...
org . junit . Assert . assertTrue ( f . exists ( ) )
different_value_types ( ) { java . io . StringWriter sw = new java . io . StringWriter ( ) ; biweekly . io . json . JCalRawWriter writer = new biweekly . io . json . JCalRawWriter ( sw , false ) ; writer . writeStartComponent ( "comp" ) ; writer . writeProperty ( "prop" , ICalDataType . TEXT , biweekly . io . json . JC...
org . junit . Assert . assertEquals ( expected , actual )
testCompareToNullName1 ( ) { ch . puzzle . itc . mobiliar . business . resourcegroup . entity . ResourceGroupEntity entity1 = new ch . puzzle . itc . mobiliar . business . resourcegroup . entity . ResourceGroupEntity ( ) ; entity1 . setName ( null ) ; ch . puzzle . itc . mobiliar . business . resourcegroup . entity . R...
org . junit . Assert . assertEquals ( ( - 1 ) , entity1 . compareTo ( entity2 ) )
testPkcs7Padding ( ) { java . lang . String iv = org . apache . commons . lang3 . RandomStringUtils . randomAlphabetic ( 16 ) ; java . lang . String keyString = org . apache . commons . lang3 . RandomStringUtils . randomAlphabetic ( 32 ) ; org . onetwo . common . encrypt . EncryptCoder < ? > aes = org . onetwo . common...
org . junit . Assert . assertEquals ( content , dencryptContent )
testSkipDistCacheOption ( ) { java . lang . String [ ] args = new java . lang . String [ ] { "--skip-dist-cache" } ; org . apache . sqoop . SqoopOptions opts = parse ( args ) ; "<AssertPlaceHolder>" ; } isSkipDistCache ( ) { return this . skipDistCache ; }
org . junit . Assert . assertTrue ( opts . isSkipDistCache ( ) )
testExonicFivePrimeOma1 ( ) { final java . lang . String outPath = runJannovarOnVCFLine ( "/sv_header.vcf" , "1\t58946502\t.\tN\tG]1:42]\t.\t.\tSVTYPE=BND" ) ; final java . lang . String expected = "1\t58946502\t.\tN\tG]1:42]\t.\t.\t" + ( "SVANN=translocation&3_prime_UTR_exon_variant&structural_variant&coding_transcrip...
org . junit . Assert . assertEquals ( expected , actual )
selectRowIdAndVersionCount ( ) { org . sagebionetworks . table . cluster . SqlQuery translator = new org . sagebionetworks . table . cluster . SqlQueryBuilder ( "select<sp>count(*)<sp>from<sp>syn123" , tableSchema ) . build ( ) ; "<AssertPlaceHolder>" ; } includesRowIdAndVersion ( ) { return this . includesRowIdAndVers...
org . junit . Assert . assertFalse ( translator . includesRowIdAndVersion ( ) )
testCoreLock ( ) { org . apache . stanbol . ontologymanager . servicesapi . scope . OntologySpace space = org . apache . stanbol . ontologymanager . multiplexer . clerezza . scope . TestOntologySpaces . factory . createCoreOntologySpace ( "testCoreLock" , org . apache . stanbol . ontologymanager . multiplexer . clerezz...
org . junit . Assert . assertSame ( space , e . getOntologyCollector ( ) )
convertBootstrapSyncRequestTest ( ) { org . kaaproject . kaa . server . sync . platform . AvroEncDec avroEncDec = new org . kaaproject . kaa . server . sync . platform . AvroEncDec ( ) ; java . lang . reflect . Method method = org . kaaproject . kaa . server . sync . platform . AvroEncDec . class . getDeclaredMethod ( ...
org . junit . Assert . assertNull ( method . invoke ( avroEncDec , syncRequest ) )
deleteByStTest ( ) { prepareData ( tddlJT , "insert<sp>into<sp>normaltbl_0001<sp>(pk,gmt_create)<sp>values<sp>(?,?)" , new java . lang . Object [ ] { RANDOM_ID , time } ) ; java . lang . String sql = "delete<sp>from<sp>normaltbl_0001<sp>where<sp>pk=" + ( RANDOM_ID ) ; tddlJT . update ( sql ) ; com . taobao . tddl . com...
org . junit . Assert . assertEquals ( 0 , re . size ( ) )
testWordInMultipleFieldsQueryWithStopWords1 ( ) { java . lang . String query = "lin<sp>and<sp>and<sp>angry" ; java . util . ArrayList < java . lang . String > attributeNames = new java . util . ArrayList ( ) ; attributeNames . add ( TestConstants . FIRST_NAME ) ; attributeNames . add ( TestConstants . LAST_NAME ) ; att...
org . junit . Assert . assertTrue ( contains )
testRemoveValidatorOnZeroSpot ( ) { "<AssertPlaceHolder>" ; } removeValidator ( com . tech . configurations . tools . ValidationScopes , int ) { if ( i == 0 ) { return false ; } switch ( scope ) { case ROOM_NAME : if ( ( com . tech . models . dtos . chatroom . ChatroomQuitMemberDTO . ROOM_NAME_VALIDATORS . size ( ) ) >...
org . junit . Assert . assertFalse ( com . tech . models . dtos . chatroom . ChatroomQuitMemberDTO . removeValidator ( ValidationScopes . USER_NAME , 0 ) )
testPlainTextSizeLessThanBlockSize ( ) { javax . security . auth . kerberos . KerberosKey key = new javax . security . auth . kerberos . KerberosKey ( new javax . security . auth . kerberos . KerberosPrincipal ( "hnelson@EXAMPLE.COM" ) , org . apache . directory . server . kerberos . shared . crypto . encryption . DesC...
org . junit . Assert . assertTrue ( beginsWith ( plainText , recoveredText ) )
runTestStaticInitialization2 ( ) { soot . jimple . infoflow . results . InfoflowResults res = analyzeAPKFile ( "GeneralJava/StaticInitialization2.apk" ) ; "<AssertPlaceHolder>" ; } size ( ) { return set . size ( ) ; }
org . junit . Assert . assertEquals ( 1 , res . size ( ) )
testContentTypeCharsetWrongBoundaryAtEnd ( ) { final java . lang . String contentType = ( "multipart/mixed;<sp>charset=UTF-8;boundary=" + ( org . apache . olingo . odata2 . core . batch . BatchRequestParserTest . BOUNDARY ) ) + ";boundary=wrong_boundary" ; final java . lang . String batch = ( ( ( ( ( "--" + ( org . apa...
org . junit . Assert . assertEquals ( 1 , parts . size ( ) )
createStatement ( ) { try ( com . couchbase . jdbc . PreparedStatement preparedStatement = con . prepareStatement ( "select<sp>1" ) ) { "<AssertPlaceHolder>" ; preparedStatement . close ( ) ; } } prepareStatement ( java . lang . String ) { checkClosed ( ) ; return new com . couchbase . jdbc . CBPreparedStatement ( this...
org . junit . Assert . assertNotNull ( preparedStatement )
testEmbedDataBits ( ) { com . google . zxing . qrcode . encoder . ByteMatrix matrix = new com . google . zxing . qrcode . encoder . ByteMatrix ( 21 , 21 ) ; com . google . zxing . qrcode . encoder . MatrixUtil . clearMatrix ( matrix ) ; com . google . zxing . qrcode . encoder . MatrixUtil . embedBasicPatterns ( com . g...
org . junit . Assert . assertEquals ( expected , matrix . toString ( ) )
testFindCorrespondingResultWhereClassResultNameIsLastInCaseResultName ( ) { hudson . tasks . junit . ClassResult classResult = new hudson . tasks . junit . ClassResult ( null , "aaaa" ) ; hudson . tasks . junit . CaseResult caseResult = new hudson . tasks . junit . CaseResult ( null , "tc_aaaa" , null ) ; classResult ....
org . junit . Assert . assertEquals ( caseResult , result )
getNumberOfCategories ( ) { final org . bonitasoft . engine . bpm . category . Category category1 = getProcessAPI ( ) . createCategory ( ( ( name ) + 1 ) , description ) ; categories . add ( category1 ) ; final org . bonitasoft . engine . bpm . category . Category category2 = getProcessAPI ( ) . createCategory ( ( ( na...
org . junit . Assert . assertEquals ( 2 , categoriesCount )
test_in_by_int_array ( ) { int [ ] ids = new int [ ] { 3 , 5 , 7 } ; org . nutz . dao . Condition c = org . nutz . dao . Cnd . where ( "id" , "iN" , ids ) ; java . lang . String exp = "WHERE<sp>id<sp>IN<sp>(3,5,7)" ; "<AssertPlaceHolder>" ; } toSql ( org . nutz . dao . entity . Entity ) { return content ; }
org . junit . Assert . assertEquals ( exp , c . toSql ( null ) . trim ( ) )
validate_twoGenerators_firstHasErrors ( ) { java . util . SortedSet < liquibase . sqlgenerator . SqlGenerator > generators = new java . util . TreeSet < liquibase . sqlgenerator . SqlGenerator > ( new liquibase . sqlgenerator . SqlGeneratorComparator ( ) ) ; generators . add ( new liquibase . sqlgenerator . MockSqlGene...
org . junit . Assert . assertTrue ( validationErrors . hasErrors ( ) )
should_not_save_repeated_tags ( ) { org . mamute . dao . TagDAO tags = new org . mamute . dao . TagDAO ( session ) ; org . mamute . dao . User leo = createUser ( session , "leonardo" , "leo@leo" ) ; createTags ( session , leo ) ; int originalSize = tags . all ( ) . size ( ) ; org . mamute . dao . Tag csharp = new org ....
org . junit . Assert . assertEquals ( tags . all ( ) . size ( ) , ( originalSize + 1 ) )
testParamsInLetSubquery ( ) { com . orientechnologies . orient . core . sql . Map < java . lang . String , java . lang . Object > params = new com . orientechnologies . orient . core . sql . HashMap < java . lang . String , java . lang . Object > ( ) ; params . put ( "name" , "foo" ) ; com . orientechnologies . orient ...
org . junit . Assert . assertEquals ( qResult . size ( ) , 1 )
testSaveRestore ( ) { org . apache . kafka . connect . util . Callback < java . lang . Void > setCallback = expectSuccessfulSetCallback ( ) ; org . apache . kafka . connect . util . Callback < java . util . Map < java . nio . ByteBuffer , java . nio . ByteBuffer > > getCallback = expectSuccessfulGetCallback ( ) ; org ....
org . junit . Assert . assertEquals ( org . apache . kafka . connect . storage . FileOffsetBackingStoreTest . buffer ( "value" ) , values . get ( org . apache . kafka . connect . storage . FileOffsetBackingStoreTest . buffer ( "key" ) ) )
canRollForwardDateToMatchWeekOfMonthAndDayOfWeekWhenStartingOneWeekAndDayAhead ( ) { scheduledEvent = new org . mifos . domain . builders . ScheduledEventBuilder ( ) . every ( 1 ) . months ( ) . onWeekOfMonth ( 1 ) . on ( org . mifos . calendar . DayOfWeek . tuesday ( ) ) . build ( ) ; org . joda . time . DateTime wedn...
org . junit . Assert . assertThat ( result , org . hamcrest . CoreMatchers . is ( tuesdayOnFirstWeekOneMonthFrom ( wednesday7thOfApril ) ) )
testMissing ( ) { org . apache . druid . query . lookup . namespace . UriExtractionNamespace badNamespace = new org . apache . druid . query . lookup . namespace . UriExtractionNamespace ( namespace . getUri ( ) , null , null , namespace . getNamespaceParseSpec ( ) , org . joda . time . Period . millis ( ( ( int ) ( na...
org . junit . Assert . assertTrue ( new java . io . File ( namespace . getUri ( ) ) . delete ( ) )
testMappedRemoteUserNull ( ) { final org . glassfish . grizzly . http . server . BackendConfiguration backendConfiguration = new org . glassfish . grizzly . http . server . BackendConfiguration ( ) ; backendConfiguration . setRemoteUserMapping ( "my-user" ) ; final org . glassfish . grizzly . http . server . HttpPacket...
org . junit . Assert . assertNull ( remoteUser )
nullPlaceholder_serialize ( ) { java . io . ByteArrayOutputStream baos = new java . io . ByteArrayOutputStream ( ) ; java . io . ObjectOutputStream oos = new java . io . ObjectOutputStream ( baos ) ; oos . writeObject ( BasicConstant . NULL_PLACEHOLDER ) ; oos . close ( ) ; java . io . ByteArrayInputStream bais = new j...
org . junit . Assert . assertSame ( BasicConstant . NULL_PLACEHOLDER , ois . readObject ( ) )
testUnexpectedlyLongConstantByteArrayValues ( ) { try ( net . openhft . chronicle . map . ChronicleMap < java . lang . Long , byte [ ] > map = net . openhft . chronicle . map . ChronicleMapBuilder . of ( net . openhft . chronicle . map . Long . class , byte [ ] . class ) . constantValueSizeBySample ( new byte [ 512 * 1...
org . junit . Assert . assertTrue ( java . util . Arrays . equals ( map . get ( 1L ) , value ) )
testActionGoodCountry ( ) { oasis . names . tc . xacml . _3_0 . core . schema . wd_17 . RequestType request = ddf . security . pdp . realm . xacml . XacmlPdpTest . testRealm . createXACMLRequest ( ddf . security . pdp . realm . xacml . XacmlPdpTest . USER_NAME , generateSubjectInfo ( ddf . security . pdp . realm . xacm...
org . junit . Assert . assertThat ( ddf . security . pdp . realm . xacml . XacmlPdpTest . testRealm . isPermitted ( request ) , org . hamcrest . Matchers . equalTo ( true ) )
testFromEbXMLEmpty ( ) { org . openehealth . ipf . commons . ihe . xds . core . requests . query . GetSubmissionSetsQuery result = new org . openehealth . ipf . commons . ihe . xds . core . requests . query . GetSubmissionSetsQuery ( ) ; transformer . fromEbXML ( result , ebXML ) ; "<AssertPlaceHolder>" ; } fromEbXML (...
org . junit . Assert . assertEquals ( new org . openehealth . ipf . commons . ihe . xds . core . requests . query . GetSubmissionSetsQuery ( ) , result )
testPatchUser ( ) { java . lang . String name = "Fritz<sp>Fritz" ; com . vmware . admiral . auth . idm . local . LocalPrincipalService . LocalPrincipalState fritzState = new com . vmware . admiral . auth . idm . local . LocalPrincipalService . LocalPrincipalState ( ) ; fritzState . name = name ; fritzState = doPatch ( ...
org . junit . Assert . assertEquals ( name , fritzState . name )
testWriteLines_Writer_nullSeparator ( ) { final java . lang . Object [ ] data = new java . lang . Object [ ] { "hello" , "world" } ; final java . util . List < java . lang . Object > list = java . util . Arrays . asList ( data ) ; final org . apache . commons . io . output . ByteArrayOutputStream baout = new org . apac...
org . junit . Assert . assertEquals ( expected , actual )
issues_labeled_as_bug ( ) { java . util . List < java . lang . Object > bugs = com . jayway . jsonpath . JsonPath . read ( githubIssues , "$..labels[?(@.name==bug)]" ) ; com . levelup . java . jsonpath . JsonPathExample . logger . info ( bugs ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertEquals ( 1 , bugs . size ( ) )
testAddSortOptionToEmptyListAndListContainsThatSortOption ( ) { org . dspace . app . rest . model . SearchConfigurationRest . SortOption sortOption = new org . dspace . app . rest . model . SearchConfigurationRest . SortOption ( ) ; sortOption . setActualName ( "sort<sp>option" ) ; searchConfigurationRest . addSortOpti...
org . junit . Assert . assertEquals ( sortOption , searchConfigurationRest . getSortOptions ( ) . get ( 0 ) )
testMultiLayerIndex ( ) { de . vandermeer . svg2vector . applications . is . Svg2Vector_IS app = new de . vandermeer . svg2vector . applications . is . Svg2Vector_IS ( ) ; java . lang . String [ ] args = org . apache . commons . lang3 . ArrayUtils . addAll ( de . vandermeer . svg2vector . applications . is . Test_Svg2V...
org . junit . Assert . assertEquals ( 0 , app . executeApplication ( args ) )
testExpm1Definition ( ) { double epsilon = 3.0E-16 ; for ( int maxOrder = 0 ; maxOrder < 5 ; ++ maxOrder ) { for ( double x = 0.1 ; x < 1.2 ; x += 0.001 ) { org . apache . commons . math4 . analysis . differentiation . DerivativeStructure dsX = new org . apache . commons . math4 . analysis . differentiation . Derivativ...
org . junit . Assert . assertEquals ( 0 , zero . getPartialDerivative ( n ) , epsilon )
testStopEmbeddedServer ( ) { validateServerConnectivity ( ) ; cli . sendLine ( "stop-embedded-host-controller" ) ; "<AssertPlaceHolder>" ; } isConnected ( ) { return ( strategy ) != null ; }
org . junit . Assert . assertFalse ( cli . isConnected ( ) )
ifIsMonotonicIncreasingDoesNotDoAnything ( ) { int [ ] param = new int [ ] { 2 , 4 , 8 } ; int [ ] result = org . libreplan . business . planner . entities . ValleyFiller . fillValley ( param ) ; "<AssertPlaceHolder>" ; } equalTo ( T extends java . lang . Comparable ) { return org . zkoss . ganttz . data . constraint ....
org . junit . Assert . assertThat ( result , org . hamcrest . CoreMatchers . equalTo ( param ) )
testEquals_FlowFlowIdOwnerEnabledPriority ( ) { "<AssertPlaceHolder>" ; } equals ( java . lang . Object ) { if ( obj == ( this ) ) { return true ; } if ( ! ( obj instanceof org . o3project . odenos . remoteobject . event . EventSubscription ) ) { return false ; } org . o3project . odenos . remoteobject . event . EventS...
org . junit . Assert . assertThat ( target . equals ( flow ) , org . hamcrest . CoreMatchers . is ( true ) )
filterDoesntForwardWhenPathMatches ( ) { org . springframework . mock . web . MockHttpServletRequest request = new org . springframework . mock . web . MockHttpServletRequest ( "GET" , "/scripts/dojo/test.html" ) ; org . springframework . mock . web . MockHttpServletResponse response = new org . springframework . mock ...
org . junit . Assert . assertNull ( chain . getForwardURL ( ) )
testNoArgsRequestsHelp ( ) { org . esa . beam . framework . gpf . main . CommandLineArgs lineArgs = org . esa . beam . framework . gpf . main . CommandLineArgs . parseArgs ( ) ; "<AssertPlaceHolder>" ; } isHelpRequested ( ) { return helpRequested ; }
org . junit . Assert . assertEquals ( true , lineArgs . isHelpRequested ( ) )
testQuoteReceived_AllPricesInitialized_OrdersNotPlaced_AfterTradeTime ( ) { java . time . ZonedDateTime local = java . time . ZonedDateTime . of ( 2015 , 6 , 15 , 0 , 0 , 0 , 0 , java . time . ZoneId . systemDefault ( ) ) ; java . time . ZoneOffset offset = local . getOffset ( ) ; java . time . ZonedDateTime zdt = java...
org . junit . Assert . assertTrue ( strategy . ordersPlaced )
testBuildTable_02 ( ) { org . apache . jena . sparql . algebra . Op expected = org . apache . jena . sparql . algebra . op . OpTable . empty ( ) ; org . apache . jena . sparql . algebra . Op actual = org . apache . jena . sparql . sse . SSE . parseOp ( "(table<sp>empty)" ) ; "<AssertPlaceHolder>" ; } parseOp ( java . l...
org . junit . Assert . assertEquals ( expected , actual )
testNullRequestBodies ( ) { java . lang . String $ref = "#/components/requestBodies/Pet" ; org . eclipse . microprofile . openapi . models . Components component = model . getComponents ( ) ; component . setRequestBodies ( null ) ; model . setComponents ( component ) ; context = new com . ibm . ws . microprofile . open...
org . junit . Assert . assertEquals ( 1 , vh . getEventsSize ( ) )
shouldThrowSpringExpressionEvaluationFailureExceptionGivenExpressionEvaluationIsNotBoolean ( ) { org . flips . model . FeatureContext featureContext = mock ( org . flips . model . FeatureContext . class ) ; org . flips . model . FlipAnnotationAttributes flipAnnotationAttributes = mock ( org . flips . model . FlipAnnota...
org . junit . Assert . assertEquals ( false , result )
testGetFileCacheBufferSize ( ) { classUnderTest . setFileCacheBufferSize ( 10 ) ; "<AssertPlaceHolder>" ; } getFileCacheBufferSize ( ) { return fileCacheBufferSize ; }
org . junit . Assert . assertEquals ( 10 , classUnderTest . getFileCacheBufferSize ( ) )
type14_tip_eji_j2l ( ) { org . jnbis . api . model . Nist decoded = decode ( org . jnbis . AnsiReferencesTest . FILES [ 27 ] ) ; commonAssert ( decoded ) ; "<AssertPlaceHolder>" ; } getVariableResFingerprints ( ) { return variableResolutionFingerprints ; }
org . junit . Assert . assertEquals ( 5 , decoded . getVariableResFingerprints ( ) . size ( ) )
testCreate ( ) { org . apache . tajo . common . TajoDataTypes . DataType . Builder builder = TajoDataTypes . DataType . newBuilder ( ) ; builder . setType ( TajoDataTypes . Type . PROTOBUF ) ; builder . setCode ( TajoIdProtos . QueryIdProto . class . getName ( ) ) ; org . apache . tajo . datum . ProtobufDatumFactory fa...
org . junit . Assert . assertEquals ( queryId , fromJson . build ( ) )
testFetchByPrimaryKeyMissing ( ) { long pk = com . liferay . portal . kernel . test . util . RandomTestUtil . nextLong ( ) ; com . liferay . journal . model . JournalArticleLocalization missingJournalArticleLocalization = _persistence . fetchByPrimaryKey ( pk ) ; "<AssertPlaceHolder>" ; } fetchByPrimaryKey ( long ) { r...
org . junit . Assert . assertNull ( missingJournalArticleLocalization )
selectUserById ( ) { com . xkcoding . orm . mybatis . entity . User user = userMapper . selectUserById ( 1L ) ; "<AssertPlaceHolder>" ; log . debug ( "user=<sp>{}" , user ) ; }
org . junit . Assert . assertNotNull ( user )
memoryFruIDGeneration4 ( ) { com . vmware . vrack . hms . common . util . FruIdGeneratorUtilTest . logger . info ( "Testing<sp>hmsutil<sp>FruIdGeneratorUtilTest:<sp>Memory<sp>Fru<sp>ID<sp>generation" ) ; com . vmware . vrack . hms . common . servernodes . api . ComponentIdentifier componentIdentifier = new com . vmware...
org . junit . Assert . assertNotNull ( fruID )
testInsertRetrieveBigInteger ( ) { org . mongojack . mock . MockObject object = new org . mongojack . mock . MockObject ( ) ; object . bigInteger = java . math . BigInteger . valueOf ( 100 ) ; coll . insert ( object ) ; org . mongojack . mock . MockObject result = coll . findOne ( ) ; "<AssertPlaceHolder>" ; } findOne ...
org . junit . Assert . assertEquals ( object . bigInteger , result . bigInteger )
generateFromAvroEventRecordsContainerWithoutClientProfileTest ( ) { eventBuilder = new org . kaaproject . kaa . server . appenders . flume . appender . FlumeAvroEventBuilder ( ) ; org . kaaproject . kaa . server . appenders . flume . config . gen . FlumeConfig flumeConfig = new org . kaaproject . kaa . server . appende...
org . junit . Assert . assertNull ( events )